Article View: linux.kernel.netdev
Article #7773[PATCH net 0/2 repost3] net/sched: sch_teql: fix header-cloned write and retry strip
From: Jamal Hadi Salim
Date: Tue, 27 Oct 2026 07:56
Date: Tue, 27 Oct 2026 07:56
39 lines
12185 bytes
12185 bytes
Two pre-existing defects on the teql transmit path, both around
teql_master_xmit() -> teql_resolve(). The first makes the slave's
header write corrupt a header-cloned skb and strips a userspace-supplied
link header on retry; the second leaves skb->dev pointing at the teql
master while the skb is parked on a slave's neighbour arp_queue.
Patch 1 makes the header private before the write and pulls back only
the header the slave added.
Patch 2 moves skb->dev = slave ahead of teql_resolve() and restores
skb->dev at the arp-queue reinjection point, so a parked skb names the
device whose neighbour took it and is delivered with a link header.
Both are follow-ups to commit dc4b95b8fee9 ("net/sched: sch_teql: restore
skb->dev on the slave failure path").
The pre-existing teql issues reported alongside this series are fixed
separately, not here. In particular, the lower-qdisc drop use-after-free
(`NETDEV_TX_OK` vs `dev_xmit_complete()`) is fixed by:
https://lore.kernel.org/netdev/QDISC-Y0BY.v2.r0.20261024060625-2@mojatatu.com/
This is repost3 of the same two patches; there is no code change. The
only changes since repost2 are the commit messages: the patch 1/2
message now says "header-cloned" instead of "shared", and the patch 2/2
commit message now describes the reinjection behaviour change for
bpf_redirect_neigh() and nft fwd ... neigh instead of claiming the
restore is an identity for every parker.
Jamal Hadi Salim (2):
net/sched: sch_teql: unshare the header before writing and fix retry
strip
net/sched: sch_teql: keep skb->dev consistent on the arp-queue path
net/core/neighbour.c | 1 +
net/sched/sch_teql.c | 34 ++++++++++++++++++++++++++++------
2 files changed, 29 insertions(+), 6 deletions(-)
--
2.43.0
Technical Details
Message-ID:
<QDISC-6HS9.v1.r3.20261027034729@mojatatu.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-352265-linux-kernel-netdev=dewy.ruShow 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-352265-linux-kernel-netdev=dewy.ru
From: jhs@mojatatu.com (Jamal Hadi Salim)
Newsgroups: linux.kernel.netdev
Subject: [PATCH net 0/2 repost3] net/sched: sch_teql: fix header-cloned write and retry strip
Date: Tue, 27 Oct 2026 03:56:41 -0400
Organization: Usenet Network
Message-ID: <QDISC-6HS9.v1.r3.20261027034729@mojatatu.com>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
logging-data="1487965"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:At5srzdPs67IBZqMzU1Dvvu4BSA= sha256:kUKNe6rJ/lY03zJbjgQMROBwpBXuKjoptsDnKXxtWDs=
sha1:SFFJ8kwSwWzCMhS/etAhegXFq8Q= sha256:OQQ46utXx1THcnAbm6Qrk86KWT1n3Z3GLkTMreIhRho=
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 335D1125BDC; Tue, 27 Oct 2026 10:59:05 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.049
X-Spam-Status: No, score=-3.049 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.25,
MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (1024-bit key)
header.d=mojatatu.com
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 O8Ff1cy3zo2x;
Tue, 27 Oct 2026 10:59:01 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-352265-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN>
X-Authentication-Results: OpenDMARC; dmarc=none (p=none dis=none) header.from=mojatatu.com
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
by mail.dewy.ru (Postfix) with ESMTPS id EB6FF125BDB; Tue, 27 Oct 2026 10:58:52 +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 5C87C28FFB; Tue, 27 Oct 2026 07:56:55 +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=1793087815;
b=fFElwewDIxYNebmcCEhuPp8vxqbaqKZYCW1TWi09qw+OBvAmFX7KqV4tCO1tHAebT3j3
QaJC8hsD6/piSIhqD6QQIO7Y6sctUAQWh/9rRTefiFLfkey8nJ3Jdwuu6ApT0WXOPNaNo
czG4X2561OTaITbKIHPJhFBzo5+VUpdXy3/fzdzw3QcpERzp9DIsN8+iBfZD93GIlSssB
nse0Ting4OLPFkt2p+xN/kzWz+pXozGh4BLcVipNgkbzKOuYjJJmGO/Wr9/rrFqgPtcjc
ajKEHHaCTVAherhPy4SvRg8LS2KbQTOGMg7o3kKuytoUBZk+xzY53SIkQPajQWeIFqg==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1793087815;
h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:
X-Google-DKIM-Signature:X-Gm-Message-State:X-Gm-Gg:X-Received:
Received:From:To:Cc:Subject:Date:Message-Id:X-Mailer:X-Mailing-List:
List-Id:List-Post:List-Help:List-Subscribe:List-Unsubscribe:
List-Owner:Precedence:MIME-Version:Content-Transfer-Encoding;
bh=1A1q98MDq9vsGC0QU9m9r9Mp0Eo1mNt5bymoPMbu+28=;
b=FNMTAiEN9Y/1GzOxsM5PhpnKulwuKYGb1W3UbuwKrjDjKvmaFIqZjHOvoP+oUSkCFY8N
0XLh+eklQHLH0GAwMhERegR5EtGm39rbERs3CRVaqrtKFX4Fx45p9VkSH4KZoUZO17v+M
kTZhsit49qITx0GEecmKRzwoxEk8jd0aCNpl3MGiJ4yDGXWWnjnRCeCnmosKviz2WiRZL
yJ8H6MmDMfv2uIA8fFrrY+cseEYOW8DC3/hqB8kAJ8DPUe3UQzQHkQZTQqO2N1i/fP0ni
86KxptPPtA1d2L9t3husX7o3TfNOZhdyPt4sjHcOT9A9jtD2PZNbdGY3VIbbSSLHIZw==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org;
dkim=pass header.d=mojatatu.com header.i=@mojatatu.com header.a=rsa-sha256 header.s=google header.b=kbAktSy4;
dmarc=none header.from=mojatatu.com;
spf=none smtp.mailfrom=mojatatu.com;
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 342B8606A325;
Tue, 27 Oct 2026 07:56:55 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
dkim=pass (1024-bit key, unprotected) header.d=mojatatu.com header.i=@mojatatu.com header.a=rsa-sha256 header.s=google header.b=kbAktSy4
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.222.172
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
t=1793087814;
b=RUZS7yq6Xf5RgOuD1QJqFNd4cahIJ77LEhofK2V+x/ns1lcRRKP+rz1qReoX+CInp7qV
9fNT3ilr4jO0th6r7XYLjuJCIst1M4foD71PHhVWU8EVnE4rH5hnJWCbJtmXeCkbGZzMe
62ozTYdbSv6D/qOCTmam2qYhlk2IMAdwWWQekl5aU1gmO0NzD+K8YXI0xorjdBTudv4tc
1zyMS/z5nNYMG4ogf7t8Rr/1vdEhGu1HuOj8PKlynS58tKP7FDl//IFByKJQJxQOQ/6BS
tNg2dNZi2YKp+a02ew0KcANxgc/kU1uM7Quqn75qq6ZfYidiY08d8kEGeZhtNJWwNIg==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1793087814;
h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature:
X-Gm-Message-State:X-Gm-Gg:X-Received:Received:From:To:Cc:Subject:
Date:Message-Id:X-Mailer:MIME-Version:Content-Transfer-Encoding;
bh=1A1q98MDq9vsGC0QU9m9r9Mp0Eo1mNt5bymoPMbu+28=;
b=XPA3/Q6os7942rm0iw6sLrq5faYq+LKS6TMa1FmfhfhEtMXer76a44RurO8Z3HoEIr44
EuTlFrRVHVaPyM7L39atVW6xCzXYZLL/OfXqtn91Nad9ewWAQET9CIn4lYCZhUq2MO77Y
ovnlAYLD1zb6eb6an1H36Dy4Tftej0fpWho6zxp+pK+O1dZCZaDTRjFh8kmW+phCQOHlr
qA+GEXD8+V2WbCbdFzkWV+Tsxqd4U4iR9iCNfJZlcwQU03ANRLuyJeK9de1Uy/PTaDo3Z
ua1M5DbMzlSa/dVK5UK1E/NtyXMHeRgnfBGfNDrvZIi1mDlz7U+mFZPAKaKcSwGZwzw==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org;
dmarc=none header.from=mojatatu.com;
spf=none smtp.mailfrom=mojatatu.com;
dkim=pass header.d=mojatatu.com header.i=@mojatatu.com header.a=rsa-sha256 header.s=google header.b=kbAktSy4;
arc=none smtp.remote-ip=209.85.222.172
X-Received: from mail-qk1-f172.google.com (mail-qk1-f172.google.com [209.85.222.172])
(using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)
key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
(No client certificate requested)
by smtp.subspace.kernel.org (Postfix) with ESMTPS id 463B5606A31B
for <netdev@vger.kernel.org>; Tue, 27 Oct 2026 07:56:53 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 463B5606A31B
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=mojatatu.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=mojatatu.com
X-Received: by mail-qk1-f172.google.com with SMTP id af79cd13be357-93cc1ab5f6cso410227085a.0
for <netdev@vger.kernel.org>; Tue, 27 Oct 2026 00:56:53 -0700 (PDT)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=mojatatu.com; s=google; t=1793087812; x=1793692612; darn=vger.kernel.org;
h=content-transfer-encoding:mime-version:message-id:date:subject:cc
:to:from:from:to:cc:subject:date:message-id:reply-to:content-type;
bh=1A1q98MDq9vsGC0QU9m9r9Mp0Eo1mNt5bymoPMbu+28=;
b=kbAktSy4Y4Ph0Zz/D3olPPlFSxivFRApKf0kf2j6SoZFtbI4KELhjoUtozjkB+Kxbt
3Xqlf2QmdyOYYnCvIcd4EmSNjsW8oOrocOgc15LG7/tQn7ZrGzR7zwL8WQjUtpiY60ts
EPZdSjMl2oJ/3UbppCs52d3cK4GyPq++1r1rQ=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1793087812; x=1793692612;
h=content-transfer-encoding:mime-version:message-id:date:subject:cc
:to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date
:message-id:reply-to:content-type;
bh=1A1q98MDq9vsGC0QU9m9r9Mp0Eo1mNt5bymoPMbu+28=;
b=HVA71lZcLlQoE3XZrd4iuZOptrfZ0ir3QpOx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gyrRcFaY7fgj7lqty+9irPLMHSfA==
X-Received: by 2002:a05:620a:4151:b0:93f:2ab9:72a0 with SMTP id af79cd13be357-940ef94cab0mr1365449285a.70.1793087812145;
Tue, 27 Oct 2026 00:56:52 -0700 (PDT)
X-Received: from mbili.tail33bf8.ts.net ([64.203.83.2])
by smtp.gmail.com with ESMTPSA id af79cd13be357-940f066629dsm906675585a.7.2026.10.27.00.56.50
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Tue, 27 Oct 2026 00:56:51 -0700 (PDT)
X-Cc: Jamal Hadi Salim <jhs@mojatatu.com>,
Victor Nogueira <victor@mojatatu.com>,
Jiri Pirko <jiri@resnulli.us>,
"David S . Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@kernel.org>,
Jakub Kicinski <kuba@kernel.org>,
Paolo Abeni <pabeni@redhat.com>,
Simon Horman <horms@kernel.org>,
stable@vger.kernel.org,
sashiko-bot@kernel.org
X-Mailer: git-send-email 2.34.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