Netdev List
 help / color / mirror / Atom feed
* [PATCH net 0/3] net/sched: fix short-skb metadata and namespace boundaries
@ 2026-10-29 23:27 Jamal Hadi Salim
  2026-10-29 23:27 ` [PATCH net 1/3] net/sched: act_ife: encode configured zero metadata values Jamal Hadi Salim
  2026-10-29 23:59 ` [PATCH net 0/3] net/sched: fix short-skb metadata and namespace boundaries Jakub Kicinski
  0 siblings, 2 replies; 6+ messages in thread
From: Jamal Hadi Salim @ 2026-10-29 23:27 UTC (permalink / raw)
  To: netdev
  Cc: Jamal Hadi Salim, stable, shaos, David S . Miller, Eric Dumazet,
	Simon Horman, Jiri Pirko, Jakub Kicinski, Paolo Abeni,
	Victor Nogueira, Sashiko, Vega

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>
---

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-10-30  0:07 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-29 23:27 [PATCH net 0/3] net/sched: fix short-skb metadata and namespace boundaries Jamal Hadi Salim
2026-10-29 23:27 ` [PATCH net 1/3] net/sched: act_ife: encode configured zero metadata values Jamal Hadi Salim
2026-10-29 23:27   ` [PATCH net 2/3] net/sched: act_ife: require a full Ethernet header on egress Jamal Hadi Salim
2026-10-29 23:27     ` [PATCH net 3/3] net/sched: sch_teql: reject qdiscs from another network namespace Jamal Hadi Salim
2026-10-29 23:59 ` [PATCH net 0/3] net/sched: fix short-skb metadata and namespace boundaries Jakub Kicinski
2026-10-30  0:07   ` Jamal Hadi Salim

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox