OSDN Git Service

nexthops: Add selftests for cleanup of known bad route add
authorDavid Ahern <dsahern@kernel.org>
Sat, 12 Jun 2021 16:32:15 +0000 (10:32 -0600)
committerDavid S. Miller <davem@davemloft.net>
Mon, 14 Jun 2021 19:29:06 +0000 (12:29 -0700)
commit2d7ff2d83cac1ca8742aa02cac0516e58e8c65c8
tree821b55ebb582eff6cce845a45516f8453993b5be
parenta212d9f33ed0b8399bd9829a779c4024068742a2
nexthops: Add selftests for cleanup of known bad route add

Test cleanup path for routes usinig nexthop objects before the
reference is taken on the nexthop. Specifically, bad metric for
ipv4 and ipv6 and source routing for ipv6.

Selftests that correspond to the recent bug fix:
    821bbf79fe46 ("ipv6: Fix KASAN: slab-out-of-bounds Read in fib6_nh_flush_exceptions")

Signed-off-by: David Ahern <dsahern@kernel.org>
Cc: Coco Li <lixiaoyan@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/fib_nexthops.sh