summaryrefslogtreecommitdiff
path: root/scripts/mod
diff options
context:
space:
mode:
authorJiayuan Chen <jiayuan.chen@linux.dev>2026-04-13 14:45:20 +0300
committerPaolo Abeni <pabeni@redhat.com>2026-04-16 14:48:30 +0300
commit104f082f5ed6d19c5d85ca905ccd4e4d01aef66e (patch)
tree26dcbf0472ec884e9b8a53c597bb1086002190ff /scripts/mod
parent29c95185ba32b621fbc3800fb86e7dc3edf5c2be (diff)
downloadlinux-104f082f5ed6d19c5d85ca905ccd4e4d01aef66e.tar.xz
selftests: fib_nexthops: test stale has_v4 on nexthop replace
Add test cases that exercise the scenario where an IPv6 nexthop is replaced with an IPv4 nexthop while being part of a group. The group's has_v4 flag must be updated so that subsequent IPv6 route additions are properly rejected. Two cases are covered: 1. Gateway nexthop replaced across families with an existing IPv6 route on the group (rejected by fib6_check_nh_list). 2. Blackhole nexthop replaced across families with no existing IPv6 route on the group (fib6_check_nh_list returns early) — this is the path that triggers a NULL ptr deref without the kernel fix. Signed-off-by: Jiayuan Chen <jiayuan.chen@linux.dev> Reviewed-by: David Ahern <dsahern@kernel.org> Link: https://patch.msgid.link/20260413114522.147784-2-jiayuan.chen@linux.dev Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'scripts/mod')
0 files changed, 0 insertions, 0 deletions