🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #5373

Re: [PATCH net-next v3] tun: use pskb_may_pull_reason() and remove SKB_DROP_REASON_HDR_TRUNC

#5373
From: patchwork-bot+netdevbpf
Date: Tue, 20 Oct 2026 09:10
29 lines
9122 bytes
Hello:

This patch was applied to netdev/net-next.git (main)
by Paolo Abeni <pabeni@redhat.com>:

On Wed, 14 Oct 2026 08:46:15 +0300 you wrote:
> tun_get_user() is the only user of SKB_DROP_REASON_HDR_TRUNC. It sets
> it when pskb_may_pull() fails to pull the Ethernet header of a frame
> written to a TAP device.
> 
> pskb_may_pull_reason() reports why the pull failed: PKT_TOO_SMALL if
> the packet is shorter than requested, NOMEM if pulling the data into
> the linear area fails. Use it for both header pulls in tun_get_user(),
> on TAP and on TUN devices, and remove the now unused
> SKB_DROP_REASON_HDR_TRUNC. The pull of the IP version byte on a TUN
> device with IFF_NO_PI was reported as NOT_SPECIFIED and now reports
> PKT_TOO_SMALL, for example when only the virtio-net header is written.
> 
> [...]

Here is the summary with links:
  - [net-next,v3] tun: use pskb_may_pull_reason() and remove SKB_DROP_REASON_HDR_TRUNC
    https://git.kernel.org/netdev/net-next/c/47b393b997ae

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Technical Details
Message-ID: <179248740778.3599760.15657338483590300771.git-patchwork-notify@kernel.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-349131-linux-kernel-netdev=dewy.ru
References: <20261014054615.1656074-1-littlesmilingcloud@gmail.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-349131-linux-kernel-netdev=dewy.ru
From: patchwork-bot+netdevbpf@kernel.org
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net-next v3] tun: use pskb_may_pull_reason() and remove
 SKB_DROP_REASON_HDR_TRUNC
Date: Tue, 20 Oct 2026 09:10:07 +0000
Organization: Usenet Network
Message-ID: <179248740778.3599760.15657338483590300771.git-patchwork-notify@kernel.org>
References: <20261014054615.1656074-1-littlesmilingcloud@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="3818908"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:BbLaEE82zHSYqVSlaSDNENmAtU8= sha256:9ftt67Ox9SnS4qdTa6UAncUUIqVfkBwRrPbtV8+VtY0=
	sha1:F40UIwork5NHOJXVEJJbm6WSuYI= sha256:bodRogdGyZA8cJ2pd6WVLQalzrlsMW+uE0/POFnEk5A=
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 04FE1110C55; Tue, 20 Oct 2026 12:15:00 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.729
X-Spam-Status: No, score=-3.729 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.329, 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 4yve2mDEEdTr;
	Tue, 20 Oct 2026 12:14:56 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-349131-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 8B6C3110C50; Tue, 20 Oct 2026 12:14:48 +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 5EF644348C; Tue, 20 Oct 2026 09:10:25 +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=1792487420;
	b=nhBOInePEMdZeH74vToKrxfwKNb/6xKYd5ULvRIz9t43C88rLBNo7xcQewgY72qaYjSI
	 IOlt1iwDoOqtufkR6Te8i3Xwsa1j2fufoeFNH7vSQmrqFrHTXawt7hLY2F409Lh8R2Gt+
	 MPfEl0W0nURLUh3h9LHBT1ym2ETrgrkuaTN1HwVifKPZiH8yhcLcpm70OehdO+VAAl/Ch
	 +BE7eqiq1I4WhCD+jFhWDpQS2e0dF8KRuNQM+DCiag9RelBSX/DJRAXsvglkDgjIaqCcc
	 Z0nZaNArHLsPsx9FnFYeBvFhE/W3fV9W0t7yqLaFlfW8AxcjRA3hoM+KzlgMaKNiE4w==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1792487420;
	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=fU9U0uIRH8WBIkNkp2Lbc2R5Qf6sT3RKPiKH0b8/2Vs=;
	b=BhRIgdI+KCuVRIpsn6AY0aU/Fd+jM+ZqJCfOsnSACY8r1pIJvTBo+9WHGgYGEj9lFfJL
	 qUz8/C/w9xUzo48pSZR4Y0qBSq91+KlvFxZrw79RrUhH0k6x2F4l/SRbNDJ23g07b5OCO
	 kqf2QJgqKaOzcy7j3nbS9NDBBlLHRHFPa4cmOlFlpfQoWuJnNYEU6H9dIhzRDmKaw51T8
	 EbXVLtElC5rvtAGpW3EQGVjkMrHy48C0OJyYOzNQPf9zT+b1LHIdg6m/GVsZXSetEaYaT
	 VFnRvMkE4ochmbFGF08VEVgfEaQ6mErV5FDqCOJVMolOKwu7fb6d64L2cZOyzyyPPTQ==
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=WciBHmUQ;
	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 85D7C606A334;
	Tue, 20 Oct 2026 09:10:20 +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=WciBHmUQ
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=1792487409;
	b=A1nXFuoCJgRWcAezduSVSSQoHkOmerGx53y0TQSfr+Hgm495dQpNADIWCHUJneu8dCOH
	 jx/RUU4Lea6xoZ8hbkQARGzXjMWFvcwpuiqHpPAap+y7IrSUOsi5bwuqBRQeqr6VGqMYe
	 gDrDGO9Ezgp8zdOEQ2cv3KQR+e33lHAG5w6jiVF3coSeyIGB2PCQ1xI+BAogzI1g46mSE
	 4bIbtBcedcueVWiQm7TUMZvCzajoMdor8amMt6nppO8yexBBnz0W4tRzY+vfoGpFSvwFx
	 kmORgDNTyvoXIT2lD1AuGtv9Vryrr8eB+QkA2tgt0o/QRTpacveIBdX/j3+Ve4nEbxw==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1792487409;
	h=Received:DKIM-Signature:Received:Content-Type:MIME-Version:
	 Content-Transfer-Encoding:Subject:From:Message-Id:Date:References:
	 In-Reply-To:To:Cc;
	bh=fU9U0uIRH8WBIkNkp2Lbc2R5Qf6sT3RKPiKH0b8/2Vs=;
	b=vRPjnMUr++a45/N4FtPBmQ8FVIQCdtXSfVh9Tdgy2yhfpwq3wzWX8Ifx8XEnJlkaA31X
	 qimAcJn6T5o5WCvcORPqz6RtuNWj5qKJplXuCBX/spkHJB8Fm5/YxXpeOYeKUXafLwqS+
	 fdmR1lugt0wz89Tc14XUzoOtMMWhbr5lfdapdz6ukoXib+lacal8zfOPJKb2GYbahJhmL
	 W50tkSeKX3TgJ91lDobt6FkyFriOsmKL/Z7KnV2rYwV8Tc+xYfaxnBjzd5cmsIYzKqDLK
	 h7VWfZ8c1c1k8XTemAUWfrY3qplAqqAMKA5foH99DI4Wvb5X5AmpB0ofqc/gruxA0SQ==
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=WciBHmUQ;
	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 69804606A321;
	Tue, 20 Oct 2026 09:10:09 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 06C271F000C8;
	Tue, 20 Oct 2026 09:10:09 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1792487409;
	bh=fU9U0uIRH8WBIkNkp2Lbc2R5Qf6sT3RKPiKH0b8/2Vs=;
	h=Subject:From:Date:References:In-Reply-To:To:Cc;
	b=WciBHmUQqiu0nh62RO0RHj3LQpuTIqMpjvLXuY8JNdeZgPgZImvIBf9mwKavTHsA/
	 tXkiXW8lOr8MJTYGnPhC7WMHWn5vA56Q5Tu57sGHY9nxT9eogVm27Ht+m8Q31Rmnk2
	 WkLWwWuQB5RQ5H0RR/i/cn6SuJCAh63oTN6PGH9ORKB7Fsd3yQAtSE+Y0iNIr9nqzv
	 djJvT4BFK5glKfeGGmnXuiSX7GcxYu0mGabOOnN0XW0ZL2qpPhLwSB4hyr35Dhyi4S
	 wqfmA1JSH29xmdp5zwxPBHs9mWei9PD0G/jXXZtx2HoEceQIJ4GnSlabs628lDP1bD
	 crM5BJPrzKboA==
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 F160D3808209;
	Tue, 20 Oct 2026 09:10:08 +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: <20261014054615.1656074-1-littlesmilingcloud@gmail.com>
X-Cc: netdev@vger.kernel.org, willemdebruijn.kernel@gmail.com,
 jasowangio@gmail.com, andrew+netdev@lunn.ch, davem@davemloft.net,
 edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com, horms@kernel.org,
 idosch@nvidia.com, linux-kernel@vger.kernel.org, willemb@google.com