public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH net v2 0/2] team: fix header_ops type confusion and add selftest
@ 2026-03-17 12:45 Jiayuan Chen
  2026-03-17 12:45 ` [PATCH net v2 1/2] team: fix header_ops type confusion with non-Ethernet ports Jiayuan Chen
  2026-03-17 12:45 ` [PATCH net v2 2/2] selftests: team: add non-Ethernet header_ops reproducer Jiayuan Chen
  0 siblings, 2 replies; 4+ messages in thread
From: Jiayuan Chen @ 2026-03-17 12:45 UTC (permalink / raw)
  To: netdev
  Cc: Jiayuan Chen, Jiri Pirko, Andrew Lunn, David S. Miller,
	Eric Dumazet, Jakub Kicinski, Paolo Abeni, Shuah Khan,
	linux-kernel, linux-kselftest

Hi,

This patch series fixes a panic reported by syzkaller in the team/bond/gre
stacked non-Ethernet configuration:
https://syzkaller.appspot.com/bug?extid=3d8bc31c45e11450f24c

The first patch fixes the header_ops type confusion / parse recursion context
issue in team. The second patch adds a selftest to reproduce the reported
scenario and prevent regressions in the future.

Thanks.

---
Changes in v2:
- The same fix approach was applied to bonding first, but could cause
  infinite recursion in bond_header_parse(). Eric spotted the issue and
  fixed it in:
  b7405dcf7385 ("bonding: prevent potential infinite loop in bond_header_parse()")
  After that fix landed, we continue with the same approach to fix team.

v1: https://lore.kernel.org/netdev/20260314062306.212765-1-jiayuan.chen@linux.dev/
Jiayuan Chen (2):
  team: fix header_ops type confusion with non-Ethernet ports
  selftests: team: add non-Ethernet header_ops reproducer

 drivers/net/team/team_core.c                  | 60 ++++++++++++++++++-
 .../selftests/drivers/net/team/Makefile       |  1 +
 .../testing/selftests/drivers/net/team/config |  2 +
 .../drivers/net/team/non_ether_header_ops.sh  | 40 +++++++++++++
 4 files changed, 102 insertions(+), 1 deletion(-)
 create mode 100755 tools/testing/selftests/drivers/net/team/non_ether_header_ops.sh

-- 
2.43.0


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

end of thread, other threads:[~2026-03-19  1:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-17 12:45 [PATCH net v2 0/2] team: fix header_ops type confusion and add selftest Jiayuan Chen
2026-03-17 12:45 ` [PATCH net v2 1/2] team: fix header_ops type confusion with non-Ethernet ports Jiayuan Chen
2026-03-17 12:45 ` [PATCH net v2 2/2] selftests: team: add non-Ethernet header_ops reproducer Jiayuan Chen
2026-03-19  1:18   ` Jakub Kicinski

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