]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2f59fb56545ff181b28dd37e857b05a391eec7f3
tree821b55ebb582eff6cce845a45516f8453993b5be
parent37b46f1a19d17d851a2bd0c77323f3ed52cf03be
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:
    c61b9b5ba0a9 ("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