Re: [PATCH net] nexthop: Fix nexthop_num_path for blackhole nexthops

2019-08-25 Thread David Miller
From: David Ahern Date: Sun, 25 Aug 2019 07:47:30 -0700 > From: David Ahern > > Donald reported this sequence: > ip next add id 1 blackhole > ip next add id 2 blackhole > ip ro add 1.1.1.1/32 nhid 1 > ip ro add 1.1.1.2/32 nhid 2 > > would cause a crash. Backtrace is: ... > fib_dump_in

[PATCH net] nexthop: Fix nexthop_num_path for blackhole nexthops

2019-08-25 Thread David Ahern
From: David Ahern Donald reported this sequence: ip next add id 1 blackhole ip next add id 2 blackhole ip ro add 1.1.1.1/32 nhid 1 ip ro add 1.1.1.2/32 nhid 2 would cause a crash. Backtrace is: [ 151.302790] general protection fault: [#1] SMP DEBUG_PAGEALLOC KASAN PTI [ 151.30404