Re: [PATCH net-next] ipv6: add ip6_null_entry check in rt6_select()

2017-10-24 Thread David Miller
From: Wei Wang Date: Mon, 23 Oct 2017 14:59:35 -0700 > From: Wei Wang > > In rt6_select(), fn->leaf could be pointing to net->ipv6.ip6_null_entry. > In this case, we should directly return instead of trying to carry on > with the rest of the process. > If not, we could crash at: > spin_lock_b

Re: [PATCH net-next] ipv6: add ip6_null_entry check in rt6_select()

2017-10-23 Thread Martin KaFai Lau
On Mon, Oct 23, 2017 at 09:59:35PM +, Wei Wang wrote: > From: Wei Wang > > In rt6_select(), fn->leaf could be pointing to net->ipv6.ip6_null_entry. > In this case, we should directly return instead of trying to carry on > with the rest of the process. > If not, we could crash at: > spin_loc

[PATCH net-next] ipv6: add ip6_null_entry check in rt6_select()

2017-10-23 Thread Wei Wang
From: Wei Wang In rt6_select(), fn->leaf could be pointing to net->ipv6.ip6_null_entry. In this case, we should directly return instead of trying to carry on with the rest of the process. If not, we could crash at: spin_lock_bh(&leaf->rt6i_table->rt6_lock); because net->ipv6.ip6_null_entry does