From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796293806; b=a277pVgbeOA4ZIwEySxPfksAtyecZ/LhnV8fnnqbDou6OSAtkH908EYyjLJIF8uAzfU7 B1gTrM6xXAJWM0i+KppugZVuRMW3lAZwd6a/scNAJozNRIxDC+pKingLkzgnYRdxEFQAf mFdob2MSQnjeEUkkeK7GuQTSahGQKR5MI0N06mYJuAomGZAt2X2D0G8Sgytf1lt7UOpnt 7ZUF3fv0t7Kb2K1+MJWiucOXtVIxxG4ZBnZ63T9pbAGWskSHkvXJoyKBskvNFTfhGzLEM pK1Yrwi2GL5sxdLLreFfg3OQzr2lqOFvVApVFloexV4qmnO+2c/HmqxOL4OMryMUgDw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796293806; h=Received:DKIM-Signature:Received:Content-Type:MIME-Version: Content-Transfer-Encoding:Subject:From:Message-Id:Date:References: In-Reply-To:To:Cc; bh=Cvr03vrTJrj/pEvUlQEWZGJJSRQgjH7hnxIUDAziu5M=; b=WStWg3LbfyEP2tqtYBAs0iPwX1HB1/gCsPDMJiSPpgp26kn7ufoeAcJy5kyGvt8aFX3B YxQ5hj2SgTdzSy4min4fQx3IB5sRlr4s1OA4F8mYZRaYmAmKVFuKxt8BaATfySjiomWr8 pkJOeyY5TVCOgrsNdCfAKuArvRRUSNEL9wiyHWI8DzZKUgStSTvM41qbIhl3lCmSR3swK Ixk35chUbbTH0XTsh9iWp32f14IPu68KvuW1uL/zPOZRmcdzoZb0tHgMj/Em+krSmRcgq RoGbyz0oE3QSi+Lx0oHT/TeO2LRErsOgcQKk97oM5ri3P61srrGuSEhvEMWzPXuDR5g== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=HeXQ59gK; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1B573606A332; Thu, 3 Dec 2026 10:30:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=HeXQ59gK Received: by smtp.kernel.org (Postfix) with ESMTPSA id B92761F00896; Thu, 3 Dec 2026 10:30:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796293805; bh=Cvr03vrTJrj/pEvUlQEWZGJJSRQgjH7hnxIUDAziu5M=; h=Subject:From:Date:References:In-Reply-To:To:Cc; b=HeXQ59gKl/+907hAdMAfGa2EStjuomGUa5BcW0oYDObOe8tdANOpNkfNrfOcyRU/e 3hRe5mhPJj3doAF73dvhw5Noiljims3IAnBD3nsYMYI3HVeuIocLeiys4GqLf3LhS1 DAnwTGjc8lAVR+sNs5vnnl+5Wc0jH+z485MmmTvqURErY7/LeEa6BRM2uzmfK0E/3I REtG4fJzfSzM9Qp7xmNry+l/CyUJ0iUsCaaOFHAZmMovKOweCvepSi3iQ11cofN/5R lpV+4/xWeIfAXcDgNutB1ILQ4+aNf/VLN82gKg2irTZAfGbXQuUAH0K/XBWZiufN2U uMzEMWUytLwfw== Received: from [10.30.226.235] (localhost [IPv6:::1]) by aws-us-west-2-korg-oddjob-rhel9-1.codeaurora.org (Postfix) with ESMTP id AE8A33808236; Thu, 3 Dec 2026 10:30:05 +0000 (UTC) Content-Type: text/plain; charset="utf-8" X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH net v5] mctp i2c: fix double free of midev on netdev register failure From: patchwork-bot+netdevbpf@kernel.org Message-Id: <179629380451.2512186.13671013410705229055.git-patchwork-notify@kernel.org> Date: Thu, 03 Dec 2026 10:30:04 +0000 References: <20261124101237.3884438-1-kenny_hsieh@jabil.com> In-Reply-To: <20261124101237.3884438-1-kenny_hsieh@jabil.com> To: Kenny Hsieh Cc: netdev@vger.kernel.org, jk@codeconstruct.com.au, matt@codeconstruct.com.au, andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com, stable@vger.kernel.org, linux-kernel@vger.kernel.org Hello: This patch was applied to netdev/net-next.git (main) by Paolo Abeni : On Tue, 24 Nov 2026 18:12:37 +0800 you wrote: > mctp_i2c_add_netdev() frees midev if mctp_register_netdev() fails, but > register_netdevice() may already have freed it through ndo_uninit, > mctp_i2c_ndo_uninit(). midev is then freed twice: list_del() runs on a > poisoned entry, and the adapter and client lose a second reference. > > Free midev only where it was set up: in the add_netdev() error path, > and in mctp_i2c_unregister() before free_netdev(). > > [...] Here is the summary with links: - [net,v5] mctp i2c: fix double free of midev on netdev register failure https://git.kernel.org/netdev/net-next/c/c502311f8d57 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html