Article View: linux.kernel.netdev
Article #6951Re: [PATCH net] net: fix frag_list leak in skb_segment_list() error path
From: patchwork-bot+netdevbpf
Date: Fri, 23 Oct 2026 21:30
Date: Fri, 23 Oct 2026 21:30
27 lines
8852 bytes
8852 bytes
Hello:
This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@kernel.org>:
On Wed, 21 Oct 2026 18:18:58 +0200 you wrote:
> skb_segment_list() detaches the frag_list from the head skb and moves
> its members one by one to the skb->next chain. On error, err_linearize
> frees that chain with kfree_skb_list(skb->next), relying on the members
> not yet processed to still be linked after the current one.
>
> This does not hold when the current member was shared: it is replaced
> by skb_clone(), and __skb_clone() clears ->next. If __skb_linearize()
> then fails on that clone, the remaining members are no longer reachable
> from skb->next nor from skb_shinfo(skb)->frag_list, and they leak.
>
> [...]
Here is the summary with links:
- [net] net: fix frag_list leak in skb_segment_list() error path
https://git.kernel.org/netdev/net/c/546daf344420
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Technical Details
Message-ID:
<179279100856.1280672.18020190075774323559.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-351252-linux-kernel-netdev=dewy.ruReferences:
<20261021161858.761205-1-edumazet@kernel.org>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-351252-linux-kernel-netdev=dewy.ru From: patchwork-bot+netdevbpf@kernel.org Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net] net: fix frag_list leak in skb_segment_list() error path Date: Fri, 23 Oct 2026 21:30:08 +0000 Organization: Usenet Network Message-ID: <179279100856.1280672.18020190075774323559.git-patchwork-notify@kernel.org> References: <20261021161858.761205-1-edumazet@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="617420"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:0jnif01g+wuVMIVy99gn3kmibYs= sha256:+CH24GkeQxOZNvDV6y2dPk6WJIGT2aUyATbgDlgMbdw= sha1:ldLKcuXDB0j/CJB1QaiXcmZ1NSM= sha256:8MdBRNX0oC5KasYCkzIPhDAxW1BT8dDp90F1zuLmcuk= 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 14F6B111588; Sat, 24 Oct 2026 00:30:28 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.739 X-Spam-Status: No, score=-3.739 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.339, 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 3iI3G38zaclr; Sat, 24 Oct 2026 00:30:25 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-351252-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 tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114]) by mail.dewy.ru (Postfix) with ESMTPS id BF12D11149D; Sat, 24 Oct 2026 00:30:16 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by tor.lore.kernel.org (Postfix) with ESMTP id C4381315CD; Fri, 23 Oct 2026 21:30:11 +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=1792791011; b=zLiAf+7LMgen2JGZinMgIN02GeDaMr5KGqg7QZVD44mLFLuwY4w0+Urpw5dJtO8yQzg7 WMAQqp3SHTayunnEfGVJPLZaFhN4E7VJxs8PMfn4w3T3HkJYPa7waqh7UMFI9Tc3wdcxq 78PrVjIJzgHVvDfaYhY2//ypA0ml8axiSdRJCAZ/tRwa5GU33jqvr/9KMkooHfQoUm1QG eRmxgUhjr4jecHRE8OLmCssF0COMtE2/6HIdUDUonqlGNFKsSygtziMLobho/MavTjCBv KA3swAfgI8x0gyfWGQPJnx70dtCiLtJiKiKYayeidAD4HglZKEZmjTfg0THVgexpBmg== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792791011; 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=DjlM6/UrYHg+dCLl5Cy7wR5C/08/JMqh+pVApowh4YM=; b=X26Byw9eo9YvnEsVSgWp2B3lnEqHTM+6d7on81xVbGE5b6c0QmmtVHNGJ0oSpqaW1smF PpFM1+u9JhR0VCXE2z0hiqz3QhDRC/uwIhSbGI2rAg9RzbWesMBiLroFIgca3jl5hly6Q duhouZnP2A1+l2yezgXgUhVef6fvAEXZQFPUDV6fBH6o/sKJ+tdK/o2NOkPNlQaHqeIBo HBam2N6p4Xt0yGPgiCrqYS/pI5mDaNwVYkEMUUq4Qag/85HSj67BhnWfxxhOJ4jGh8tHc esdzYdpsk+fSJbd/xbPUtwx4G6ys0IRLlQkn3ePxUt51OvVl5TnxwWQFaJyriZazLFg== 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=mNcXhBaD; 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 873DF606A329; Fri, 23 Oct 2026 21:30:11 +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=mNcXhBaD 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=1792791010; b=Vcw497j8cz1YkDklOFQah86Wbv5Mj598DVXIjQ87DK5D3TaExfLWHr5X156+G/do/ZDV MPJJ97tHZAzSAJl7ybtnK7my8Si3jXvN6QiR005S2N1p88eDqe5OO2YWUJQue0ceHfx6C JGe3Ml8VMgGhezGMwIMVMju8OcpihV6JicNIGGgswWd8Q9+f44D3kiTlRPgkCLX26VzgU Vsw2K+gNghioDwcIkEx72xWr6bpCGTt8w0IWqGJ+wFM1utzn0oVSixBC88vvHYPD4Yhdf wGPSSuuxG+Z/FeWwU4p03/Z6jhhs+hUXkZBehh4egfwneDr6WMQro89y/1UeyHugdjw== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792791010; h=Received:DKIM-Signature:Received:Content-Type:MIME-Version: Content-Transfer-Encoding:Subject:From:Message-Id:Date:References: In-Reply-To:To:Cc; bh=DjlM6/UrYHg+dCLl5Cy7wR5C/08/JMqh+pVApowh4YM=; b=BAdKs3oJBzI3mysyWUWvwbLEphcsJwFo0t1ZUih6TLj4bhoDRhpIbkQwVOgu3oRybDY0 ge/saB7slXo2G107032ZLErxf1dpvEqtjMFT9+0EP+nbhp9vSPVtXHiJQpTHDMLheqopv 9H74RXU6SaoQIchlqRhT1r82YBl5AtqdXRQ/gPG0y7v4W2305CAYqINTezT5ciYMGiPga 6MOd4WThAj2ZSlMs6dWqmAK8G9kl1IM3AQbaLp7sI82cqj6wIRcOdApUKkU1MBxR+cpag 3uQfkABgVmlBpuyMK5lZvAjfTeR2qkjANbeAbAPaNRtSCg4tetawnKsLycBbeb2FR6w== 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=mNcXhBaD; 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 6B710606A31B for <netdev@vger.kernel.org>; Fri, 23 Oct 2026 21:30:10 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0EA931F01825; Fri, 23 Oct 2026 21:30:10 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1792791010; bh=DjlM6/UrYHg+dCLl5Cy7wR5C/08/JMqh+pVApowh4YM=; h=Subject:From:Date:References:In-Reply-To:To:Cc; b=mNcXhBaDqCrVpOl31CJy0XRcv86WASzn/bI2J2ZOdjl/AbNO3Fw07z0A7wpFWz73M dJhqvDcT6AmJogI7gGvc7PKdxVn/6LVlxnoB2juzRuG6AhB2RJMiY3GvEifyrDHbLa 0fsCQDyXPv0/FciWRPZ9zKBqYZt9yrW63Q1/2rJlRbT/CzEla+IbVbNnMFtas9of2G 3G4qiwo3teRVTM4Rg2X3FbSX2X/t/zfs3RL9UEDfBLu60JSnCiz7E6iwrrbHHk9JbE Br5PmtOUCFwyoPQWhd7biZFqjKVzqPKAuMLb3bYZikwRoRosvKiwFAcONAQVsvHa// CoyXNk8LU9ykA== 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 07303391B157; Fri, 23 Oct 2026 21:30:10 +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: <20261021161858.761205-1-edumazet@kernel.org> X-Cc: davem@davemloft.net, kuba@kernel.org, pabeni@redhat.com, willemb@google.com, horms@kernel.org, netdev@vger.kernel.org, spolack+git@mailbox.org