🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #9468

Re: [PATCH net] bpf: lwt: Free the skb when bpf_xmit() fails to expand the headroom

#9468
From: patchwork-bot+netdevbpf
Date: Mon, 02 Nov 2026 06:20
25 lines
8839 bytes
Hello:

This patch was applied to bpf/bpf.git (master)
by Alexei Starovoitov <ast@kernel.org>:

On Mon,  2 Nov 2026 02:23:43 +0800 you wrote:
> When an LWT xmit program returns BPF_OK, bpf_xmit() makes sure that
> the skb still has room for the link layer header. If
> pskb_expand_head() fails there, bpf_xmit() returns -ENOMEM without
> freeing the skb. Its callers, lwtunnel_xmit() and then
> ip_finish_output2() or ip6_finish_output2(), take any return value
> other than LWTUNNEL_XMIT_CONTINUE to mean that the skb has been
> consumed, so nothing frees it.
> 
> [...]

Here is the summary with links:
  - [net] bpf: lwt: Free the skb when bpf_xmit() fails to expand the headroom
    https://git.kernel.org/bpf/bpf/c/5e96760b25fd

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Technical Details
Message-ID: <179360040431.3799098.11662321290376218283.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-354463-linux-kernel-netdev=dewy.ru
References: <20261101182343.17991-1-izaiahsun@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-354463-linux-kernel-netdev=dewy.ru
From: patchwork-bot+netdevbpf@kernel.org
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net] bpf: lwt: Free the skb when bpf_xmit() fails to
 expand
 the headroom
Date: Mon, 02 Nov 2026 06:20:04 +0000
Organization: Usenet Network
Message-ID: <179360040431.3799098.11662321290376218283.git-patchwork-notify@kernel.org>
References: <20261101182343.17991-1-izaiahsun@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="2860292"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:sqBIbTwIOWffl32ikM015cycXMs= sha256:uG7VncZeiExQ3YefkvBlLkgfc8npC1zWRarTJoMcSSU=
	sha1:QTDmFAF/ALZhXNqKWIxcuIwLE6g= sha256:gR9CZU6V0/RYkHdxStjVZd4qQFefu80SRVOVnT2iXJU=
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 CE1C4125CC6; Mon,  2 Nov 2026 09:22:06 +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 DM1Jpfapg4Ct;
	Mon,  2 Nov 2026 09:22:04 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-354463-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 A77B1125CC5; Mon,  2 Nov 2026 09:21:54 +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 2B9D5391D1; Mon,  2 Nov 2026 06:20:19 +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=1793600419;
	b=bVfRtnka4DdsVX/TASAKv5N38vuYagGPAlMAblMM1MdpmGrV8LN+D298KbHNdNCPElWf
	 H7u4+vUD0YsjIhcxzShGss4AqxLjzajw3EptBUGKguG6eDinqZoCPIaBzr4qjpeKyTczh
	 EAbdBcgBcuRzYRHZOCctUiHhZ/k6xuKAMRR0PbApXgXcv1PP9WUdGZKSlLpA6JJbd/2/z
	 T4wkk5J0Z5Vh7N8fpvZ9ValMQYo1LGG2j8QpRi0EqZ/GSUr6QYqD2zswCLaa7ObFiaXyN
	 862MNydb30asw8shsFASa8LiJzs1agCPgyebIcFoKHXD1NayBjRnyMXAPoRJ2Cn7isw==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793600419;
	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=LXyWg33upMW65/HmtZ46qnH2orkC6Dp4INq2qjqF2WE=;
	b=jEo/+NaHqf5YXB+aA9Kvh6MoiSznDefcIqRzUXNBwwwzZMQ4vUTrzTbvOef2VwMrT/UP
	 IF5PjrsQyhvMr8beK9SC2uFxJygXWqkpqPzkU0ncOvMkD1Gv3RBWCf3J2Py+T/F1zRnTG
	 QhfbyimFxUyCDgs68lKQNNM1MjeGspOE9Rz4oqa8rCq6z66b5ffTHRuWhCv95iq4kcP7p
	 o/p4HQDTzds7qOsEoU6O8uBkAS4SUawSc/8sgW/Bd5crO01/RVBpmhIUo72vhSLXMMcuG
	 PN3Yfdt+hau0OKa3gySIaYdwVoxMnM64f4b0BtkswHgQwxz1VKcA+5mdlLdc/LXyIMw==
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=CopKWGU2;
	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 01BAD606A337;
	Mon,  2 Nov 2026 06:20:19 +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=CopKWGU2
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=1793600406;
	b=pMA7haJwmScKKpqqOL8ew6AfoUyIyJY/wFFW75UIpn/WlkPJuWWuXsXO86VK9avNRZSP
	 eP+c4BCMbQu9TSbeY93sk+cD2MThYaDB9IBSFRjTvNh1c5LIYJyzb8BhSxmTi0ft9St82
	 AnSiy+5vgQBZA1iWul0NsSrGpubehE6KpYcUd2/mD8+fd5Pn8wSmOtqzp4Uh6Zv+ASbij
	 9P/Dlf6bUOYjZC0yxK8aqhFozJX5vaKON+212+vFI6+cnPqhfOQIGEsujEHGCfKqlhUOu
	 duPk2NKw1D9rCi2U+cYSWffYydfsxy606bIFm9CGlNwlmagDBd5TDqNy/dxIK2vOFzQ==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793600406;
	h=Received:DKIM-Signature:Received:Content-Type:MIME-Version:
	 Content-Transfer-Encoding:Subject:From:Message-Id:Date:References:
	 In-Reply-To:To:Cc;
	bh=LXyWg33upMW65/HmtZ46qnH2orkC6Dp4INq2qjqF2WE=;
	b=Ym2sdA6eXGwdNOV/8OQH0PX0FcEDC5A3uw2K6yfvvGZFnol7E/XfqjReC88kqa+ekNGt
	 nEWMwtyVuRoXtCbqJBfD9GBqPqL7X9temGuQ7w40Ok40cAB0QaV0Pklx+k6eZsNg6BWXX
	 YwMfESMjsjimgMfO/1rN87pwEb3UHTvvVp0D9GBq6+I/ChPH3RCzY5x3mFQaWwSthexiC
	 DMMUfYmrQVj5gAmLNeedhtpDsUoCZW7e+UeYz7pI7rchkG9lVWXhy4XUg2YumOkuEwsvF
	 sCh6oY1pS7rzqCvSKlwpOfr61zW9OWVPBaG2qiohV87UToc/F9+QzvaWwZxfsssLqiw==
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=CopKWGU2;
	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 18699606A32D;
	Mon,  2 Nov 2026 06:20:05 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 88FF01F0093A;
	Mon,  2 Nov 2026 06:20:05 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1793600405;
	bh=LXyWg33upMW65/HmtZ46qnH2orkC6Dp4INq2qjqF2WE=;
	h=Subject:From:Date:References:In-Reply-To:To:Cc;
	b=CopKWGU2zYFWcKIPDV/S/gqmkRilp1iyux9ZshWqTS7AYJ2MDlz5PjVjV7rjip/nb
	 OFTwQ/XHuF0MDX5jrVYw0Ow99L0GGOEqjaqQXxVSyNZlGtmHgamWXcXdhQYHgliozr
	 WBiilr9JrL94vhRtR7xA+aA/EFw69yMKpXA0PDYTXrURmikd3+DgDnovpmyNMFp9+W
	 fQtRfNUQIkULbFXTktpcvcK6gtj9HNqeNLU7GXHyDZwa1Ja8tlE2H8YYBM/V+TMCpJ
	 ot4cwNj6WougQqXxVE1OgrBGZaB2mk1vrODZgfb8WpRHoh4hVy/cXHuZktP2UaEQeE
	 dyq3aiTI7032Q==
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 7D1EF391AFF2;
	Mon,  2 Nov 2026 06:20:05 +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: <20261101182343.17991-1-izaiahsun@gmail.com>
X-Cc: davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org,
 pabeni@redhat.com, horms@kernel.org, daniel@iogearbox.net,
 martin.lau@kernel.org, ast@kernel.org, tgraf@suug.ch, zirajs7@gmail.com,
 bpf@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
 stable@vger.kernel.org