Netdev List
 help / color / mirror / Atom feed
* [PATCH net 0/5] net: reject short linear Ethernet headers from tc actions, tun and OVS
@ 2026-10-22  9:22 Jamal Hadi Salim
  2026-10-22  9:22 ` [PATCH net 1/5] net/sched: act_vlan: reject short linear Ethernet headers after POP_ETH Jamal Hadi Salim
  0 siblings, 1 reply; 19+ messages in thread
From: Jamal Hadi Salim @ 2026-10-22  9:22 UTC (permalink / raw)
  To: netdev
  Cc: Jamal Hadi Salim, Jiri Pirko, Victor Nogueira, Vega, Andrew Lunn,
	David S . Miller, Eric Dumazet, Guillaume Nault, Simon Horman,
	Paolo Abeni, Jakub Kicinski, Herbert Xu, Jason Wang,
	Willem de Bruijn, Ren Wei, Aaron Conole, Eelco Chaudron,
	Ilya Maximets, Martin Varghese, Eric Garver, Yi Yang, Jiri Benc,
	dev

A recent flurry of bug fixes for dealing with kernel crashes around
eth_type_trans() showed up on the list. The earliest attempt to fix
this came from Ren Wei <n05ec@lzu.edu.cn>. There are many others
(but i lost track of them). Ren Wei's latest attempt hit a roadblock
with a NACK from Eric[1] asking to fix at the "producers"

These producers can hand a packet to a shared consumer with less than a
full Ethernet header in the linear area.
This series identifies and fixes the following producers:

  1. act_vlan POP_ETH rejects a short linear Ethernet header at the tc
     action boundary.
  2. act_mpls POP does the same, standalone or chained after POP_ETH.
  3. tun keeps the no-offload copy hint safe (raising a short hint instead
     of rejecting a valid write) while guaranteeing a linear Ethernet
     header for the redirected consumer.
  4. OVS pop_mpls(ETH_P_TEB) pulls the inner Ethernet header before
     restoring MAC_PROTO_ETHERNET.
  5. OVS pop_nsh(TUN_P_ETHERNET) does the same for the NSH producer.

1: https://lore.kernel.org/netdev/e85fa16e-df3c-43dd-bb3a-9edca07200ea@kernel.org/
Signed-off-by: Jamal Hadi Salim <jhs@mojatatu.com>

Jamal Hadi Salim (5):
  net/sched: act_vlan: reject short linear Ethernet headers after POP_ETH
  net/sched: act_mpls: reject short linear Ethernet headers after pop
  net: tun: keep TUN short linear copy hints safe
  net: openvswitch: ensure a linear inner Ethernet header on TEB pop
  net: openvswitch: ensure a linear inner Ethernet header on NSH pop

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

end of thread, other threads:[~2026-10-22 20:18 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-22  9:22 [PATCH net 0/5] net: reject short linear Ethernet headers from tc actions, tun and OVS Jamal Hadi Salim
2026-10-22  9:22 ` [PATCH net 1/5] net/sched: act_vlan: reject short linear Ethernet headers after POP_ETH Jamal Hadi Salim
2026-10-22  9:22   ` [PATCH net 2/5] net/sched: act_mpls: reject short linear Ethernet headers after pop Jamal Hadi Salim
2026-10-22  9:22     ` [PATCH net 3/5] net: tun: keep TUN short linear copy hints safe Jamal Hadi Salim
2026-10-22  9:22       ` [PATCH net 4/5] net: openvswitch: ensure a linear inner Ethernet header on TEB pop Jamal Hadi Salim
2026-10-22  9:22         ` [PATCH net 5/5] net: openvswitch: ensure a linear inner Ethernet header on NSH pop Jamal Hadi Salim
2026-10-22  9:54           ` Jiri Benc
2026-10-22 12:42           ` Ilya Maximets
2026-10-22 17:47             ` Eric Dumazet
2026-10-22 12:41         ` [PATCH net 4/5] net: openvswitch: ensure a linear inner Ethernet header on TEB pop Ilya Maximets
2026-10-22 17:47           ` Eric Dumazet
2026-10-22 15:22       ` [PATCH net 3/5] net: tun: keep TUN short linear copy hints safe Willem de Bruijn
2026-10-22 16:17         ` Jamal Hadi Salim
2026-10-22 18:00           ` Eric Dumazet
2026-10-22 20:18             ` Jamal Hadi Salim
2026-10-22 17:52     ` [PATCH net 2/5] net/sched: act_mpls: reject short linear Ethernet headers after pop Eric Dumazet
2026-10-22 15:21   ` [PATCH net 1/5] net/sched: act_vlan: reject short linear Ethernet headers after POP_ETH Willem de Bruijn
2026-10-22 16:01     ` Jamal Hadi Salim
2026-10-22 17:57       ` Eric Dumazet

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