selftests: team: add non-Ethernet header_ops reproducer
authorJiayuan Chen <jiayuan.chen@shopee.com>
Fri, 20 Mar 2026 07:21:27 +0000 (15:21 +0800)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 24 Mar 2026 10:26:32 +0000 (11:26 +0100)
commit56063823b9f0e2acdca4d621face5c6a7a1f4c99
tree0bf0cd079fd547ad2f8b7d2a065869374d9bf8fa
parent425000dbf17373a4ab8be9428f5dc055ef870a56
selftests: team: add non-Ethernet header_ops reproducer

Add a team selftest that sets up:
  g0 (gre) -> b0 (bond) -> t0 (team)

and triggers IPv6 traffic on t0. This reproduces the non-Ethernet
header_ops confusion scenario and protects against regressions in stacked
team/bond/gre configurations.

Using this script, the panic reported by syzkaller can be reproduced [1].

After the fix:

  # ./non_ether_header_ops.sh
  PASS: non-Ethernet header_ops stacking did not crash

[1] https://syzkaller.appspot.com/bug?extid=3d8bc31c45e11450f24c

Cc: Jiayuan Chen <jiayuan.chen@linux.dev>
Signed-off-by: Jiayuan Chen <jiayuan.chen@shopee.com>
Link: https://patch.msgid.link/20260320072139.134249-3-jiayuan.chen@linux.dev
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
tools/testing/selftests/drivers/net/team/Makefile
tools/testing/selftests/drivers/net/team/config
tools/testing/selftests/drivers/net/team/non_ether_header_ops.sh [new file with mode: 0755]