On Mon, Oct 23, 2017 at 09:59:35PM +0000, Wei Wang wrote:
From: Wei Wang <redacted>
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 not have rt6i_table set.
Make sense. leaf->rt6i_table->rt6_lock is only needed after the rcu work.
Thanks for fixing it!
Acked-by: Martin KaFai Lau <redacted>