Article View: linux.kernel.netdev
Article #8515Re: [PATCH net] net: mctp: free reassembly head skb when key_add fails on SOM
From: patchwork-bot+netdevbpf
Date: Thu, 29 Oct 2026 10:20
Date: Thu, 29 Oct 2026 10:20
29 lines
8955 bytes
8955 bytes
Hello:
This patch was applied to netdev/net.git (main)
by Paolo Abeni <pabeni@redhat.com>:
On Sat, 24 Oct 2026 19:04:28 -0300 you wrote:
> When a start-of-message fragment creates a new reassembly key on the
> broadcast/bind path, mctp_frag_queue() stores the skb as
> key->reasm_head before the key is made observable with mctp_key_add().
>
> If mctp_key_add() fails (a race with another SOM packet for the same
> source/dest/tag, or the receiving socket going away), the error path
> only drops the key reference via mctp_key_unref(). The final key
> destructor frees the key itself but not key->reasm_head, and since the
> key was never added to any list, neither the expiry worker nor socket
> teardown can reach it to release the queued fragment. The skb is
> leaked.
>
> [...]
Here is the summary with links:
- [net] net: mctp: free reassembly head skb when key_add fails on SOM
https://git.kernel.org/netdev/net/c/d2bfe74a8fe2
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Technical Details
Message-ID:
<179326920806.1737402.15204469071401829479.git-patchwork-notify@kernel.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-353233-linux-kernel-netdev=dewy.ruReferences:
<179287946888.17431.11219154409333681184@gmail.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-353233-linux-kernel-netdev=dewy.ru From: patchwork-bot+netdevbpf@kernel.org Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net] net: mctp: free reassembly head skb when key_add fails on SOM Date: Thu, 29 Oct 2026 10:20:08 +0000 Organization: Usenet Network Message-ID: <179326920806.1737402.15204469071401829479.git-patchwork-notify@kernel.org> References: <179287946888.17431.11219154409333681184@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="1983773"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:CeehmyYH14WT6t0GWycK5AI9GcY= sha256:mJrrmsDkOHU9j4NEMHid3gwLaUA+xwheDlKXuYlvqlI= sha1:0RBQlDqzQhzEjRSfbyEySoP18Xc= sha256:+svrHlYapgDYoU9gM8VLu35uiiwjzI3DLAqbzjBjAEw= List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id 54AE3125C60; Thu, 29 Oct 2026 13:25:20 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.401 X-Spam-Status: No, score=-3.401 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key) header.d=kernel.org X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id r8OuRHjy448S; Thu, 29 Oct 2026 13:25:17 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-353233-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id 3DC6712580F; Thu, 29 Oct 2026 13:25:08 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sea.lore.kernel.org (Postfix) with ESMTP id 5C6F530B85; Thu, 29 Oct 2026 10:20:43 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1793269210; b=1dYKE6SwUKk2zn3+REIKglkaMWWk29gYpI4WI8Uj+cBJ078GIBlrYqV7gh1ICFSwUIoO 9UgTsSrQu8Qt2N2mK1lb0pZDZzX2Io7J7vSiDP6CPQpqj5hfZJ5KDjAldYromH0CAqSGR Tg1S0lTpc9LTZe9YHbFqBF8QvC/fErt9ulqXtLXne8dYaDzCoam8JPp6ymxlwN4ScfmkY 4NWfhf8ilCf4k+HAwawSu4gSzU4U/owTznHwLXpiHChN/pgKOHkHCKCIH9SNAUCOA8J9u mS800aimQB0xlnbzp58dxg3VVmNGzKQ+Nz6NzJ+r9WP9JHpd4GxsbWi/57QQLe02Ovw== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793269210; h=X-Original-To:Received:Received:DKIM-Signature:Received:Content-Type: X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe: List-Unsubscribe:List-Owner:Precedence:MIME-Version: Content-Transfer-Encoding:Subject:From:Message-Id:Date:References: In-Reply-To:To:Cc; bh=OF2QB9cgRpekb1TO5KWZK492f7aBogRyKJ8KyPEWbeE=; b=zskanRb+I1c1XM65Enxhp5hheO5KyGhA4rhcowJF3sxB6VoouxKymgU0PNHwyDkzq+9V 4aqqIDa+BFufrW4V34m4A3Fa8UOJ/azERprV4HoL9/pRqxczA+PUApkxgRiJAsXDTjJ06 TS1u6WgTtJZC0u5hdeoPqoLzgbe4kxnRbPpFu0FU/h3Zi99UsnzZV2g/1NcOkkgxAT5cb fm4BrtuHuC+f+6/FocYsTsDDWU9IB19Rj8N2v9IOE1BIxzPvVqM9TuiNl987X2ASKawlH 2I4oSAK4qyhdxQuY+tWx/sqaPHxwn9vw0/4oOkYmHeRlrOme/fUnJ+2voojO9ckAUHA== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=K0phUkTR; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DA129606B7BF; Thu, 29 Oct 2026 10:20:10 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=K0phUkTR X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1793269210; b=mkT5SHW7rpHX2pZCzEvvpcFvMnQ4OzRDQgsba9It4g6PyoHjFIZoB1ItOGjCFgGagryL zg4PKOwbai1jnOVHRQFVwBapHKHRWaNrt7wKfbzK/v2YIwzO/ZDS+RoHMwuRabOy+P9u+ zofyGCfByFeFg2sW7TygkvVfMtpmWqEpp4ZVF3ZtiVYOyTy9A0/lLndxbpT/FFvOS9sZD e7yth/IcvLjf6nqim4clXPrw9Ve6siSAv0bzElYzUqUDUJeB8BXc51sGZNciF5tXp32Oz PYZmDvWikViHlhqnvhOF2afLVHFhwqibXT8TI8UB4R83GGeC8D1UJbS5GJM2pNTyNLQ== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793269210; h=Received:DKIM-Signature:Received:Content-Type:MIME-Version: Content-Transfer-Encoding:Subject:From:Message-Id:Date:References: In-Reply-To:To:Cc; bh=OF2QB9cgRpekb1TO5KWZK492f7aBogRyKJ8KyPEWbeE=; b=osbpMNrbvCP8o5Rwe/xHEckD32gqe7Edi3fjrHxCb2ohfcXMWj5B0hDt/8szy2ipOSSo 0vpSJo/33d2/W+ZFY3jFJQc2fbsdpfMP6ZJ7FF2nARcoTFJGWbyOn1nMbR0LaRGW+khIE 6uH5GjFoerm3BDmlkcCAIn8UExq1wC0qSyEmI0Idk1koLH/i3DGCH0B5xXCwoh4gEKfft fUbZBHaoPDgaATwL2VO6zKk/eWMqIKmFpspu8GHi6WG1tRrg5pQLlOLW2UpDVpFuRaWj+ tlwDpCVjZL95YU9AV5vgOXZRHvt3+1W56w9GEzi8ZBO8g+eSi0TJ8bSX76lrcwi23Ng== X-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=K0phUkTR; arc=none smtp.remote-ip=100.103.45.18 X-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 B7354606A31C; Thu, 29 Oct 2026 10:20:09 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8BD251F01825; Thu, 29 Oct 2026 10:20:09 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1793269209; bh=OF2QB9cgRpekb1TO5KWZK492f7aBogRyKJ8KyPEWbeE=; h=Subject:From:Date:References:In-Reply-To:To:Cc; b=K0phUkTRT3DQ6MPEfP9WuRYonjs2BmKz75jIGpzhBsM0ty2cRL9FToxn0CJdqX3Zp QrCi1RglMLuWc9AviuLqywP0CxBYZY8g0KQsW2gnn3OnaQiW47bI8BnlmYoIGzZRrQ z3JK2eg6DkvCPjO6x+uTA/CgRQahnofr+4U4I346L9SN5lM3bZ71pJ9pEwWxVMWree 4lqmD8HeySxbJVwhPut3N0xmnI54a4+q+bw0nHHkRPgiA+krQtdEr5ylOFQEjmwkdl b5gsWszkwsgvU5KAOjWdPGT5WKQsUe2ctNARaKBQDf31FUm1nELZ21HhvL8P926pex yxKORZlpoYXYg== X-Received: from [10.30.226.235] (localhost [IPv6:::1]) by aws-us-west-2-korg-oddjob-rhel9-1.codeaurora.org (Postfix) with ESMTP id 815173AB8A8A; Thu, 29 Oct 2026 10:20:09 +0000 (UTC) X-Mailing-List: netdev@vger.kernel.org X-List-Post: <mailto:netdev@vger.kernel.org> X-List-Help: <mailto:netdev+help@vger.kernel.org> X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-List-Owner: <mailto:netdev+owner@vger.kernel.org> X-Precedence: list X-In-Reply-To: <179287946888.17431.11219154409333681184@gmail.com> X-Cc: jk@codeconstruct.com.au, matt@codeconstruct.com.au, davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org