Files
linux/include/linux
Eric Dumazet b7405dcf73 bonding: prevent potential infinite loop in bond_header_parse()
bond_header_parse() can loop if a stack of two bonding devices is setup,
because skb->dev always points to the hierarchy top.

Add new "const struct net_device *dev" parameter to
(struct header_ops)->parse() method to make sure the recursion
is bounded, and that the final leaf parse method is called.

Fixes: 950803f725 ("bonding: fix type confusion in bond_setup_by_slave()")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Jiayuan Chen <jiayuan.chen@shopee.com>
Tested-by: Jiayuan Chen <jiayuan.chen@shopee.com>
Cc: Jay Vosburgh <jv@jvosburgh.net>
Cc: Andrew Lunn <andrew+netdev@lunn.ch>
Link: https://patch.msgid.link/20260315104152.1436867-1-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2026-03-16 19:29:45 -07:00
..
2026-02-11 13:44:47 +01:00
2026-01-29 20:21:41 +01:00
2026-02-12 04:23:53 -07:00
2026-02-19 09:12:05 +01:00
2026-02-06 07:29:14 -07:00
2026-02-20 17:31:55 -05:00
2026-01-30 11:34:34 +00:00
2026-02-10 11:39:31 +01:00
2026-02-10 11:39:30 +01:00
2026-02-23 11:19:18 +01:00
2026-01-31 14:22:57 -08:00
2026-01-30 18:26:59 -08:00