Article View: linux.kernel.netdev
Article #9183[PATCH net 0/3 repost1] net/sched: fix short-skb metadata and namespace boundaries
From: Jamal Hadi Salim
Date: Sat, 31 Oct 2026 19:35
Date: Sat, 31 Oct 2026 19:35
40 lines
12188 bytes
12188 bytes
This series fixes three independent boundary problems in net/sched. 1/3 act_ife: encode a configured zero metadata value. ife_check_meta_u32() reserves an 8-byte TLV for a configured zero value, but the encoder returned without writing it, leaking stale skb headroom bytes. 2/3 act_ife: require a full Ethernet header on egress. An undersized linear head can make the encoder read past the end of the skb data. 3/3 sch_teql: reject qdiscs from another network namespace. The global TEQL master lives in the initial netns; a qdisc created in another netns could still mutate the master's MTU and flags. Origins: 1/3: reported by shaos <shawnq1@163.com> with a reproducer, which was reproduced and verified in our test environment. 2/3: found by Sashiko (nipa and gemini) while reviewing Victor Nogueira's parent act_ife patchset; independently reported by shaos <shawnq1@163.com> with a reproducer, which was verified in our test environment. 3/3: reported by shaos <shawnq1@163.com> with a reproducer, which was reproduced and verified in our test environment. The three patches are independent. They target net and carry a stable nomination. They are sent together because they share the short-skb and namespace-boundary review context. Jamal Hadi Salim (3): net/sched: act_ife: encode a configured zero metadata value net/sched: act_ife: require a full Ethernet header on egress net/sched: sch_teql: reject qdiscs from another network namespace net/sched/act_ife.c | 8 +++++--- net/sched/sch_teql.c | 5 +++++ 2 files changed, 10 insertions(+), 3 deletions(-) Signed-off-by: Jamal Hadi Salim <jhs@mojatatu.com> ---
Technical Details
Message-ID:
<SER-NSBD.v1.r1.20261030042947@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-354132-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-354132-linux-kernel-netdev=dewy.ru
From: jhs@mojatatu.com (Jamal Hadi Salim)
Newsgroups: linux.kernel.netdev
Subject: [PATCH net 0/3 repost1] net/sched: fix short-skb metadata and namespace boundaries
Date: Sat, 31 Oct 2026 15:35:57 -0400
Organization: Usenet Network
Message-ID: <SER-NSBD.v1.r1.20261030042947@mojatatu.com>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
logging-data="2535960"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:wIn4lZXqNCwxDQPrD99HJ1OpMe8= sha256:lvPfyzJYyRsykbPXgv3/nL1VVBCFoFlI3VouaY9ou6U=
sha1:29++5HXsi3XuPBdfDSosN0f8MSU= sha256:3coE+wIszRMrxOJGFLUe/9W5yWLBm0hrBJfo57PDAGc=
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 7E61E125CB8; Sat, 31 Oct 2026 22:37:07 +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 KGLROewCpHCg;
Sat, 31 Oct 2026 22:37:05 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-354132-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 tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
by mail.dewy.ru (Postfix) with ESMTPS id EBBCF125CBB; Sat, 31 Oct 2026 22:36:56 +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 ECAE92785B; Sat, 31 Oct 2026 19:36:09 +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=1793475368;
b=KRJ1sKg9C7WAhYUuJ3seAzgWLXXhOHLs2sTxCbClypIZudLQ+d6jy6Dlg4KLyGwHz7Fi
uXIGZ8blPVpvbAePUYQ6L0l7TDoKiYt7d3el/r5SeLw0Qvk1Vmav2gtYwSeDUHUNnPvlh
s2PvPz/u1crnJKuqccpOlHpLxFyz8Q0GhH1b3MPS8JSuhl+wI6himLe0LtQ50ANfniyOj
ZOVdOMFaOlyHP07x9fNu2seF9tzjcK6GUpmDurBAAaZ2kQ5UxMcmbk9EFZ6xFoKvKbEXg
kqeidQxdzfXA9e7n0FzJxYLfBUY7oVis/F7tzj7WXrulu+l2BkSlU2jfPBw/BQ73QiA==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1793475368;
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=VpNFSaEVPIgaitRWclY27M8HtMOzW/v4lrjfw3GGNTA=;
b=Mc3UWKoD1NmAe/V9eewbF2KbgeR3A33Sti19E+12Pq5UcQj63QkoGC396wd1MEHIUJ5u
gVqiJncyrJHBFN4fVzs34GUBgGJonaTGqCW55PAxd6IYvSwM2f1x9feWMQrt8Q/YDTCF2
/Hmuggi8qutgbTgttiD7+jnHEYkKS9EYF+lWtS6X7QKF6TiYgBgVJ12L/9xxOW2HteSPF
dB1p4d3Zl91QHJ6wJTUCfFbY4wgDvBWTnH5ZV4V9VnojQRwTUlyLSEX6VW4yGKWvzXeN+
9jXJPkd/TwYjHSl4PO32SOUxckkers5NIUnW9Kxwh2sr1sA1ue615bRiV6MhcSLBeNg==
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=eBCqAneR;
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 BBE37606A33A;
Sat, 31 Oct 2026 19:36:08 +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=eBCqAneR
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.222.174
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
t=1793475367;
b=3EF7pWIBZ1CSxjMu+i7sZ8kpjQXYOK58bYN9OzkEq8kNC6/8lJ9xLAvN/Ko8MUhSbkFO
9GeF68HQB0DLuFyYc1hjSZpgo2lwBAzsQP5w51r2+1bGpXR+9hoA3x5zvBRW8SeqJBk3H
9uT86+htJl7a/IGmMTsuHuw+KmyOQqMkzCVnz1T7q2HLSogShYxOlwebsTMQYk3my4hXA
Mjokj1wI4nBPOiZKeO4zZiUBSbq1KzW0MHaGtsRk3+aE1axHHXx8WQPeoTWspsza3Wb38
LrFIHma11PeHJvKs32IhjIYQOafv4CpisCjch4U0AxAQhldms6YiyaOHECEPhDqrznA==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1793475367;
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=VpNFSaEVPIgaitRWclY27M8HtMOzW/v4lrjfw3GGNTA=;
b=VPt7G4+fdeF2fqbXFN1LpuGOqRCqxrGUq5v3k0nbUXqRU6PwNsWp+ZR1yKnZEiGzU1Tc
godz3c3Vcdr/OhAIkkZR+XufdTP+oyJl4E6NYDmGn/Y8dfR9Plo1IkSeE+SoHDth6fyj3
OUCaP6lXLq2rO1yWSth+I/87GLc0u9m7KfonOlypLKmMRiW14Z7bLuCFAQSmcNoPL8M11
6TGJQrnPIDuwc/uEctFZv/mOHjU+ro3Werm0BqjdhiymjVcmj8Ae4Q0PFvrIlfJX/KTpO
o7sXXYbnClrJIVA2xSA1mG1kpKfqOtmSenE85xQYPqODk9ig1lTWN7AjBdHtMRzWWkQ==
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=eBCqAneR;
arc=none smtp.remote-ip=209.85.222.174
X-Received: from mail-qk1-f174.google.com (mail-qk1-f174.google.com [209.85.222.174])
(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 A83D8606A32C
for <netdev@vger.kernel.org>; Sat, 31 Oct 2026 19:36:06 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org A83D8606A32C
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-f174.google.com with SMTP id af79cd13be357-93efc0452b5so118671585a.0
for <netdev@vger.kernel.org>; Sat, 31 Oct 2026 12:36:06 -0700 (PDT)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=mojatatu.com; s=google; t=1793475365; x=1794080165; 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=VpNFSaEVPIgaitRWclY27M8HtMOzW/v4lrjfw3GGNTA=;
b=eBCqAneRFI+RfXKoey8DrqbVsgcPFCFEbextDqCDUvKwj+iI1EAeacEigL8Mj/lE56
WsZU40Yg0muBrXpN3yHg7WGeJvagMn3vyhKVV7ULktWsY/FxsDMpsWPQKz0rwzlkt9LB
YffDbH3m5WfEAITuyigOC8Mayjc8OgBWQHAjs=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1793475365; x=1794080165;
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=VpNFSaEVPIgaitRWclY27M8HtMOzW/v4lrjfw3GGNTA=;
b=RRG6kaml0rPnv2fWbYvYStYOi/+jWcGmfMb/jK6ooexOhmLq0eKNcK2HdX9mF08fZF
nAldygszz79OghvfJ4f0i2Mw/en7lir01taOm32dzqjqL/npYP/WxiaswqXpTLiJMD0W
/e4I/IA2R4humYw0H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428 with SMTP id af79cd13be357-944216b0c4bmr918024685a.22.1793475365487;
Sat, 31 Oct 2026 12:36:05 -0700 (PDT)
X-Received: from mbili.tail33bf8.ts.net ([64.203.83.2])
by smtp.gmail.com with ESMTPSA id af79cd13be357-94425abd317sm446917585a.36.2026.10.31.12.36.03
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Sat, 31 Oct 2026 12:36:04 -0700 (PDT)
X-Cc: Jamal Hadi Salim <jhs@mojatatu.com>,
stable@vger.kernel.org,
shaos <shawnq1@163.com>,
"David S . Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@kernel.org>,
Simon Horman <horms@kernel.org>,
Jiri Pirko <jiri@resnulli.us>,
Jakub Kicinski <kuba@kernel.org>,
Paolo Abeni <pabeni@redhat.com>,
Victor Nogueira <victor@mojatatu.com>,
Sashiko <sashiko-bot@kernel.org>,
Vega <vega@nebusec.ai>
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