Re: [PATCH net] ipv6: repair fib6 tree in failure case

2017-08-20 Thread David Miller
From: Wei Wang Date: Fri, 18 Aug 2017 17:14:49 -0700 > From: Wei Wang > > In fib6_add(), it is possible that fib6_add_1() picks an intermediate > node and sets the node's fn->leaf to NULL in order to add this new > route. However, if fib6_add_rt2node() fails to add the new > route for some reas

[PATCH net] ipv6: repair fib6 tree in failure case

2017-08-18 Thread Wei Wang
From: Wei Wang In fib6_add(), it is possible that fib6_add_1() picks an intermediate node and sets the node's fn->leaf to NULL in order to add this new route. However, if fib6_add_rt2node() fails to add the new route for some reason, fn->leaf will be left as NULL and could potentially cause crash