🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #21687

Re: [PATCH net-next v5 9/9] tun: add rx timestamp to the vnet header

#21687
From: Steffen Trumtrar
Date: Tue, 24 Nov 2026 10:15
42 lines
12010 bytes
On 2026-11-16 at 13:55 GMT, netdev-bot+sashiko@kernel.org wrote:

> Thank you for your contribution! Sashiko AI review found 5 potential
> issue(s) to consider.
> 
> Critical: 0 · High: 0 · Medium: 4 · Low: 1
> 
> If you believe none of the issues are legitimate, please reply to each
> issue of Medium severity or higher and explain why the AI is wrong.
> If any of them are legitimate and you plan to respin, please let patchwork
> know by including "pw-bot: cr" as a separate line at the end of your reply
> (one such reply per series is enough).
> 
> - [Medium] The commit message says the TAI time is written "when a packet
>   is handed to userspace or vhost".
> - [Medium] Whether tun writes the timestamp depends only on the
>   configured header size: `vnet_hdr_sz >= offsetofend(struct…
> - [Medium] The value the device side reports as the 'TAI receive time' is
>   sampled in tun_put_user() (drivers/net/tun.c:2178,…
> - [Medium] tun cannot see the negotiated virtio features, so it guesses
>   them from vnet_hdr_sz.
> - [Low] The patch adds `sz < tun_vnet_parse_size(features)` → -EINVAL in
>   __tun_vnet_hdr_put() (drivers/net/tun_vnet.h:163-164).
> 
> --

(...)

I will fix this.

pw-bot: cr 


Steffen

-- 
Pengutronix e.K.                | Dipl.-Inform. Steffen Trumtrar |
Steuerwalder Str. 21            | https://www.pengutronix.de/    |
31137 Hildesheim, Germany       | Phone: +49-5121-206917-0       |
Amtsgericht Hildesheim, HRA 2686| Fax:   +49-5121-206917-5555    |
Technical Details
Message-ID: <87wlq2eds2.fsf@pengutronix.de>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-370215-linux-kernel-netdev=dewy.ru
References: <20261112-v6-7-topic-virtio-net-ptp-v5-9-7ab67b572f4f@pengutronix.de> <179483731174.3136.9033275454370245376@kernel.org>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-370215-linux-kernel-netdev=dewy.ru
From: s.trumtrar@pengutronix.de (Steffen Trumtrar)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net-next v5 9/9] tun: add rx timestamp to the vnet header
Date: Tue, 24 Nov 2026 11:15:25 +0100
Organization: Usenet Network
Message-ID: <87wlq2eds2.fsf@pengutronix.de>
References: <20261112-v6-7-topic-virtio-net-ptp-v5-9-7ab67b572f4f@pengutronix.de>
	<179483731174.3136.9033275454370245376@kernel.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Injection-Info: usenet.network;
	logging-data="4109391"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:QqLc8bo/xMd8SYuC5r2VWDovZjg= sha256:F+hKbNcPs7qCSQ2dKrSUmx0ZR3mXPBqRDMTrlf4bj2c=
	sha1:7g2cXNqIo3GqR3neJTBtnMUHB4Q= sha256:tw56XuKfr9xyr1JnSm221IoYi7c2Rt/b8lzDjlF5yqM=
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 886CD125DF0; Tue, 24 Nov 2026 13:15:51 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.051
X-Spam-Status: No, score=-3.051 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
	DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249,
	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=pengutronix.de
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 rnsKsh-YGapN;
	Tue, 24 Nov 2026 13:15:47 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-370215-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=none (p=none dis=none) header.from=pengutronix.de
X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
	by mail.dewy.ru (Postfix) with ESMTPS id 7F234125DEE; Tue, 24 Nov 2026 13:15:38 +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 2D6E9249A6; Tue, 24 Nov 2026 10:15:37 +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=3; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1795515331;
	b=Er1EX6rLwJcPIpIftj5sofPmiPBZAaYhw3m/+6Md7T394X1tNnp4zfjYFNboXWHmifaw
	 zVmterQVvfDKprXDooIHHmr49cK5XEJK/bb9Ayzq2tgc/0jBKQ4NC8Bu78nGNlRjEkRFu
	 yQBzLDVqk3djUus3iab49tgPiYOrD+ydce++j5Kd1mq7jNj6AuwcmXYar6HbuGeedNjig
	 RP9xpJsXiKZWJW/gfOc7Lk2EZ7LcbDRGiWd6MUriCVyMWpSjNRblpOdklm3eV13BesAjb
	 +U1IqKnSD9PthkvqYvy6FHCaFr6cY+SU+hmcMTzXxIvr6PKeJYOZhoK7IQsUGVdVvbw==
X-ARC-Message-Signature: i=3; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795515331;
	h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:From:To:
	 Cc:Subject:In-Reply-To:References:User-Agent:Date:Message-ID:
	 X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe:
	 List-Unsubscribe:List-Owner:Precedence:MIME-Version:Content-Type:
	 Content-Transfer-Encoding;
	bh=nMng3ZJa0ZitP554JNLrDGi/NFaJSSIjBBszYdhqGDA=;
	b=O9AYhdb9P4NMftLJ7a3oDSJWt5gQGNBwFzfM1TPO2r8kdm+M00s3C8dhtjlcyRS9mrCn
	 U34gRule3ZcLRk5wa7A3vwAIggv5nUH6SGT1nDrVlfdlHIoPUKp6bbYQgQLqB5ekq+HgI
	 e9ESO+JZhs5+Es9egx8C4mdwx4Len2FRvygFc6+373Cx+gMEaVtRe+hMWHe5B+c/nDa0o
	 36kr+SdAomFjSaXNY+k6zvtIkfWsCEJKt66365JUDKapRVVQhhwoa6JqsGY3/aj0BIV6S
	 a399kL0uIHeB83TKoDD7hlPEtVj4CMVwYuvuGRb7lc13u2qrK2PQNg62dV5zvT3FLfQ==
X-ARC-Authentication-Results: i=3; smtp.subspace.kernel.org; 
	dkim=pass header.d=pengutronix.de header.i=@pengutronix.de header.a=rsa-sha256 header.s=20260414 header.b=XfNReD8+;
	dmarc=none header.from=pengutronix.de;
	spf=pass smtp.mailfrom=pengutronix.de;
	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 A732E606A327;
	Tue, 24 Nov 2026 10:15:31 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=pengutronix.de header.i=@pengutronix.de header.a=rsa-sha256 header.s=20260414 header.b=XfNReD8+
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=185.203.200.13
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1795515330;
	b=uz+LfHnaSpshU6f2jk8gm7iEXXS1y+7Gn3nM1UOcRbOQQ9qG0cxAeRcm4GEypTch87Io
	 WMJKxCamedy8cOBZ6nTiLK7e9dVgF1b5oL06VaK7CCyNLIKySHl59dJ8tGuYpDHZKm05Y
	 NDUbxalRBqqUnfxyz0Xfh3OCiZTnX13hdG5AD50Z7kjm0dQ07Bi2Xzn3Bdin4o2tNeLke
	 L+++YoZvFlfKDA2wmaoI+L64YGpU5dKnbY0FlsnsE0ozjWWr6L1a1k4P2/u4gHCURFksm
	 azZv8S7WV953CMT3BW1HP9GKslu2XH46K5B4VoX8y8tHF9cS7fzyqheX4icZtib18uQ==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795515330;
	h=DMARC-Filter:Received:DKIM-Signature:From:To:Cc:Subject:In-Reply-To:
	 References:User-Agent:Date:Message-ID:MIME-Version:Content-Type:
	 Content-Transfer-Encoding;
	bh=nMng3ZJa0ZitP554JNLrDGi/NFaJSSIjBBszYdhqGDA=;
	b=JBy2RNow7iEQdwLTpXDkmYRn9On0Ca37fXNyGfDTn1uRdegBYfojBrqKFXvvYywmLDwJ
	 77jN/66lSf4tSMFa9OplGZ23kYPYfcCh8w8Uta3bq2plYUyMUslf823tjs80KNJKDMOli
	 NAARI8+gdM/+QCaHEnYsbTkvhPxXDXS9la4RRKmrA1MRoVYbPUJFClz5OwWcv/ESyVylD
	 IA5Fm/6HlhucjD/o2Ehz8FOM7LWs1WOX1bRRwZU6xc4ZJE7rY3EwuRkalgzVJ7gUuikht
	 TrTqRwu8NZEuckdtuSUQxuozwS13FAP00VdRYymj0rkVHMfUFUTgauDRRklC5EDCIZQ==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dmarc=none header.from=pengutronix.de;
	spf=pass smtp.mailfrom=pengutronix.de;
	dkim=pass header.d=pengutronix.de header.i=@pengutronix.de header.a=rsa-sha256 header.s=20260414 header.b=XfNReD8+;
	arc=pass header.oldest-pass=0 smtp.remote-ip=185.203.200.13
X-Received: from mx1.white.stw.pengutronix.de (mx1.white.stw.pengutronix.de [185.203.200.13])
	(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 7B927606A692;
	Tue, 24 Nov 2026 10:15:29 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 7B927606A692
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pengutronix.de
X-Received: from ratatoskr.pengutronix.de (unknown [IPv6:2a00:1f:f805:2b01:a03:2f4:308a:7b52])
	(Authenticated sender: str@pengutronix.de)
	by mx1.white.stw.pengutronix.de (Postfix) with ESMTPSA id E9D5C202033;
	Tue, 24 Nov 2026 11:15:26 +0100 (CET)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pengutronix.de;
	s=20260414; t=1795515327;
	h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
	 to:to:cc:cc:mime-version:mime-version:content-type:content-type:
	 content-transfer-encoding:content-transfer-encoding:
	 in-reply-to:in-reply-to:references:references;
	bh=nMng3ZJa0ZitP554JNLrDGi/NFaJSSIjBBszYdhqGDA=;
	b=XfNReD8+95LSSEuAPwKVuMxr/EScHMIyNNXm6XzrKwlVFx1LvCCY1sNZbyiYYAJjA1v9OW
	EaKYjEdBkBXbcUfeJSgZBhxVSxnZuARjYD8HgZdmem/cf3Mj4YDsMFgtFAB8fuAa+D3ntK
	aO69h5aV/Velb4B0s6QzpBKqw7irgjDu+zW4QSJE20VvCDdyeT/tGIz1eLzKAZ7ufTRftJ
	v06YRKm184FBw/py+VW5S9d8lYpkntH3blqNwnR0A7R9Aoy6HT55VTac4rNNI8lobKa0Xx
	bya6dkvAPN9rxb9TIysYwjwh5jECD3asuCSRbbc/wqAhC94ZNJKoM99haMLh2g==
X-ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=pengutronix.de;
	s=20260414; t=1795515327;
	h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
	 to:to:cc:cc:mime-version:mime-version:content-type:content-type:
	 content-transfer-encoding:content-transfer-encoding:
	 in-reply-to:in-reply-to:references:references;
	bh=nMng3ZJa0ZitP554JNLrDGi/NFaJSSIjBBszYdhqGDA=;
	b=O7wBEvRpDwTYlkQcK04uYuwllHgnINS3lAGY4NxKgRW9SkgCIUFOgZx5ox7iZTwcTTXRyo
	prNUPQ/r8KGNOlyfSLMv/BSXSvBkde3Ul+ccRX3Vr33+uzD37RQ62zEvGQsCvAmLWUnEQs
	mZKoJqrVGArR4rOo87KcKIi4gjX60vZAfyANWNBHdz89J6IUjv2BbXEJHrS6tiJOyVzo9q
	BrVCFA2lGII5lRW5MWNBzgzS3zTQzoqpuIHIFHBiLHvRwC3f97oE9IKbY45Mm4LsbSu+F4
	tmkFhjGYF1kk4/18nCI9tMuAkBDYXIRX0wBaPDYDMK5WjACOzGM39DS32VZ9KA==
X-ARC-Authentication-Results: i=1;
	ORIGINATING;
	auth=pass smtp.auth=str@pengutronix.de smtp.mailfrom=s.trumtrar@pengutronix.de
X-ARC-Seal: i=1; s=20260414; d=pengutronix.de; t=1795515327; a=rsa-sha256;
	cv=none;
	b=OiC4RMMbihANiayaaHtNtDvTSbsaj++gqSa8r0Ie1G6tFLUeS5qPXvZeRg6E0XK3sPil6J
	bklJeX2P9SQuytZYQcR0WGR8N7sPTxfKsoGrfd6fWu+7Z0Hr3kUUCOkR+6N+c/DcbTKXvZ
	LCHbXj/n+4hfM06nhYH5cyVRc/HluquGRQeVDE0Gt9Er1mPti9P7n2EDeBrME/d/Wy2JOr
	5eypMYT6XqHvRHjseFauRP+kao99cI1nYhoFvuS4J7c6axd0pMZd5s8U8XbW2CagyM144v
	mpRiOqS2E5kQCokCB7xPAyCMNbyTHTnvDYTDuw7qafA3Zvu/d2mCGMqZrG6WbQ==
X-Cc: mst@redhat.com,  xuanzhuo@linux.alibaba.com,  davem@davemloft.net,
  kuba@kernel.org,  pabeni@redhat.com,  richardcochran@gmail.com,
  willemdebruijn.kernel@gmail.com,  andrew+netdev@lunn.ch,
  eperezma@redhat.com,  jasowangio@gmail.com,  ast@kernel.org,
  daniel@iogearbox.net,  hawk@kernel.org,  john.fastabend@gmail.com,
  sdf@fomichev.me,  edumazet@kernel.org,  andrew@lunn.ch,
  horms@kernel.org,  kory.maincent@bootlin.com,  liangchen.linux@gmail.com,
  hengqi@linux.alibaba.com,  virtualization@lists.linux.dev,
  netdev@vger.kernel.org,  linux-kernel@vger.kernel.org,
  bpf@vger.kernel.org,  kvm@vger.kernel.org,  kernel@pengutronix.de
X-In-Reply-To: <179483731174.3136.9033275454370245376@kernel.org>
X-User-Agent: mu4e 1.14.4; emacs 31.1
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