Article View: linux.kernel.netdev
Article #7751Re: [PATCH net 1/3] igc: pad preemptible packets before reserving TX timestamps
From: Eric Dumazet
Date: Tue, 27 Oct 2026 06:41
Date: Tue, 27 Oct 2026 06:41
22 lines
10059 bytes
10059 bytes
Le lun. 26 oct. 2026 ร 10:16, Paul Moses <p@1g4.org> a รฉcrit :
>
> Preemptible queues require software padding so hardware includes the
> padding bytes in the mCRC. Padding currently runs after TX timestamp
> reservation takes an extra skb reference. If padding needs to expand
> the skb, pskb_expand_head() rejects the shared skb.
>
> Commit c7d8bc3dd511 ("net: skbuff: don't BUG() on bad arguments to
> pskb_expand_head()") replaced the BUG_ON() with -EINVAL, exposing the
> padding error path. skb_padto() drops one reference on failure, and
> out_drop drops another. This can free the skb while the pending TX
> timestamp still holds its pointer.
>
> Move padding before TX timestamp reservation and use __skb_put_padto()
> with free_on_error set to false so out_drop handles the skb release.
> Preserve the VLAN flags in first->tx_flags when adding timestamp flags.
>
> Fixes: 17643482e9ff ("igc: add preemptible queue support in taprio")
> Signed-off-by: Paul Moses <p@1g4.org>
Reviewed-by: Eric Dumazet <edumazet@kernel.org>
Technical Details
Message-ID:
<CAL4WiirG9+kP8vTNgSC=NfWA7eqnoDHZ6UMJ4bBEYOF7oNg4NQ@mail.gmail.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-352238-linux-kernel-netdev=dewy.ruReferences:
<20261026091549.605810-1-p@1g4.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-352238-linux-kernel-netdev=dewy.ru
From: edumazet@kernel.org (Eric Dumazet)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net 1/3] igc: pad preemptible packets before reserving TX timestamps
Date: Tue, 27 Oct 2026 07:41:55 +0100
Organization: Usenet Network
Message-ID: <CAL4WiirG9+kP8vTNgSC=NfWA7eqnoDHZ6UMJ4bBEYOF7oNg4NQ@mail.gmail.com>
References: <20261026091549.605810-1-p@1g4.org>
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Injection-Info: usenet.network;
logging-data="1479369"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:+varuz/8B48dQ7OU7suh2hze8Qk= sha256:krK37rZlZ3w2K7Z74VaPE4XGgoNpDJLD6O1/rbqLNgw=
sha1:twhaQbNDOtO2RJbbofP8szidEnA= sha256:miZx8DoEcNwtZVgAci3OOS8ipBZVqS1A26STJ5T6bBA=
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 1B4BD125BDE; Tue, 27 Oct 2026 09:42:31 +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 SQltvhWA2NDE;
Tue, 27 Oct 2026 09:42:27 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=104.64.211.4; helo=sin.lore.kernel.org; envelope-from=netdev+bounces-352238-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 sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4])
by mail.dewy.ru (Postfix) with ESMTPS id 522F5125BDB; Tue, 27 Oct 2026 09:42:18 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
by sin.lore.kernel.org (Postfix) with ESMTP id B5D9923155; Tue, 27 Oct 2026 06:42: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=1793083329;
b=iaKsiTI7YfxZjlMIUv42XuNYLvUS53Uj0Lpy+IkXD1uaz4mP3aNarHinaeMeU9pdLQW5
E7o6sxeHbZewupjZ957F3LpXsMvUkPy4/jMXHCI1pHCZJgsF/Yv/KkBITIYdrQdDEmK0m
tFfvlX7ieDqOpxLYjQIv/9OOB+T9vqCk2I/WN4HU/qSDBhb4NVnmgCK0NPabgwp9zJlza
BeLJjBm3HFsnLUoSQqXHz6EYjNPM6zuwhrDrnzF2NdA1WcWiCCnJqGcpzROICLAMSxHRK
bGppfRYmjzZoiyGq3iZWn+m3zrPTi4z1rUb3gVr9n0wCCw82/+PP56yyBtgBB2wxCsA==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1793083329;
h=X-Original-To:Received:Received:DKIM-Signature:Received:
X-Forwarded-Encrypted:X-Gm-Message-State:X-Received:X-Mailing-List:
List-Id:List-Post:List-Help:List-Subscribe:List-Unsubscribe:
List-Owner:Precedence:MIME-Version:References:In-Reply-To:From:Date:
X-Gmail-Original-Message-ID:X-Gm-Features:Message-ID:Subject:To:Cc:
Content-Type:Content-Transfer-Encoding;
bh=yhV6Qi8oP3wsBHx8AcQx+K7PgSHJp9dJD4R1lrCW+YM=;
b=1OaxI5JuGbpZTW6f9UI27o2bCPWoT9WvWWFtA/b4mc4QHlNhLwWBo/Sh8T4+Mt3Fr6OF
glC8hGQwRUXidqOTC0vtORV94CLQoBPyvchaEIdivH4RkNG6nfns8vTPFS0BJdkgGjMmC
eE4ve9WzhR3WNrNTX8NVUwRYRpzzlxXtaG8J6OfbaXr05YCfaF0e5TPA8tT4lkU1swW+A
KYgBTjRmlCoywfHApu094hohvANMop+lIZSfEPGd9BHIU58LzMoUvhe8rhuVKJrBiLSW7
hBCmxvM/J0eAfOPO2SeC0abPeaUaFZg+wTpF0WHWnNPGpsjUM9ktS3UarJsnRQ2upqA==
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=MNplFQEp;
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 190D8606A323;
Tue, 27 Oct 2026 06:42:09 +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=MNplFQEp
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=1793083328;
b=Crl7RxE8vA4N3sShWD+ur6t/v7ddIudcUQCr81RobGFK70/ZAQlu2y+9a5ORh/jvqCfh
0ZEU5SGQERQaMUcB17y1IAkxYL65ZqkA/hk2/wjlF3+JNVKZ8wdwjen16VtFgXjM3SVNz
A2PQkPro/d1Ro7XOkp6O9LhFDbv5EW1UJ3746j1R/l7dDay/9ttm3CAjezsZTtp29oOOP
rAECLCfv+S4x71da6If99T6fUZ7UMgjn+HIK36PekbRiTAcz1dxWE6smqf4Srb5eH8zJX
GLD0Z5BNF6tSgSVNR1H4jAcxZ6Xf5/m+LOilcUZ7lpH6tdxbDRNBax/Wsbn9NPewbrQ==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1793083328;
h=Received:DKIM-Signature:Received:X-Forwarded-Encrypted:
X-Gm-Message-State:X-Received:MIME-Version:References:In-Reply-To:
From:Date:X-Gmail-Original-Message-ID:X-Gm-Features:Message-ID:
Subject:To:Cc:Content-Type:Content-Transfer-Encoding;
bh=yhV6Qi8oP3wsBHx8AcQx+K7PgSHJp9dJD4R1lrCW+YM=;
b=aVI8OYakcpyupDF0Zdgk5RxC9kqV8gH4VPfl0kbLUg+HwcPFWIt1XGytPdCqr5pIkLeW
7W7eefj6FQ+ostXWc0me8APydT5nRIEJA1T2qYkFlLabf9Z0EAM3FkmhaaWT16B+/cRn+
4rBaKTrFZvZFZWy5KwmMPb4SIUQ3Y7HiR8gJ3t6mGwZAAFvO52MPCqsZvPTuoaH457tDP
pSOM75mxcziOp/nS6j+fbZkz1Q8fnYr6L4rMET93FipIA5sXRm6q47nxpxUTfP3JnhIdL
KKWbQwrChxB+jSBP9cGOpdRtlQgLgXDSV8pmo6joNoxBpQF0ZVrgRmupz0EmgIA7hzA==
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=MNplFQEp;
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 ECBCF606A31B
for <netdev@vger.kernel.org>; Tue, 27 Oct 2026 06:42:07 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8EEF31F031E5
for <netdev@vger.kernel.org>; Tue, 27 Oct 2026 06:42:07 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
s=k20260515; t=1793083327;
bh=yhV6Qi8oP3wsBHx8AcQx+K7PgSHJp9dJD4R1lrCW+YM=;
h=References:In-Reply-To:From:Date:Subject:To:Cc;
b=MNplFQEptICEhgYJEua7ll4vbpkZ3U4mW5gzoB9k9tFiKtGPh1NUtHH2yKlqtqje6
4CnEPm810ZP/xLDxZChQFFgEJk9TNsENn9fiq1yStPJcuTzBRMbVv02wuqRBwVbnBV
HiQVkd8JF4JH9pigNWgf8Pw4QjW6+S1crroRxGUuHxY7LXqkK2LJY/vsSTgnG7U7BY
KP+qDId99WGr3qW7C+BVHAD6hVzZ9BGYu/naGz1QCmLr2P2QY47yeVMvw6JN7ENQWK
VZEvJl/PJE9HewuNCjAjnWdES2f0IOHTpcPoxcU3qjIxqgDIMIthmtfZAFk3eDoyKN
4zvTgKXDoktrg==
X-Received: by mail-oo1-f51.google.com with SMTP id 006d021491bc7-70059e4dab6so2670258eaf.3
for <netdev@vger.kernel.org>; Mon, 26 Oct 2026 23:42:07 -0700 (PDT)
X-Forwarded-Encrypted: i=1; AKwUvBy4rjjEw/8aNTxAV2dFLMRhbaScjDrO6JR2qBQw77ICLn9BV8NLx0VE0pHKQXrU0X9elEE0sLo=@vger.kernel.org
X-Gm-Message-State: AFq9FYKhEmyQIV5ckWib4pKbF/oO+ZJTesj/bhns90QFuBDCzvs7Np81
vg6NbQK8yoEyg0pOwkd0WURXk9KvNoVoOcTrerR9VpLsUAX6HWF5J4ELEfnNhLEkJrvdQc4A8Ts
3NH7rbEfXM5zc2LsSZJcO+4azaZbndFs=
X-Received: by 2002:a05:6820:616:b0:70b:a4a8:a32d with SMTP id
006d021491bc7-70ba4a8b55amr4429661eaf.30.1793083326837; Mon, 26 Oct 2026
23:42:06 -0700 (PDT)
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: <20261026091549.605810-1-p@1g4.org>
X-Gmail-Original-Message-ID: <CAL4WiirG9+kP8vTNgSC=NfWA7eqnoDHZ6UMJ4bBEYOF7oNg4NQ@mail.gmail.com>
X-Gm-Features: AclHuK-_ZepuWsPA_tB9v5pjt92BBzYdY9sMEaBbm3_-uA4NkNald1VGOO5yyE8
X-Cc: anthony.l.nguyen@intel.com, przemyslaw.kitszel@intel.com,
intel-wired-lan@lists.osuosl.org, netdev@vger.kernel.org,
linux-kernel@vger.kernel.org, andrew+netdev@lunn.ch, davem@davemloft.net,
kuba@kernel.org, pabeni@redhat.com, aleksandr.loktionov@intel.com,
chwee.lin.choong@intel.com, faizal.abdul.rahim@linux.intel.com,
horms@kernel.org, vinicius.gomes@intel.com, sasha.neftin@intel.com,
matthew.vick@intel.com, aduyck@mirantis.com