Thread (3 messages) flat view 3 messages, 3 authors, 2017-10-24

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

From: David Miller <davem@davemloft.net>
Date: 2017-10-24 09:52:11

From: Wei Wang <redacted>
Date: Mon, 23 Oct 2017 14:59:35 -0700
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.
 ...
Fixes: 66f5d6ce53e6 ("ipv6: replace rwlock with rcu and spinlock in fib6_table")
Signed-off-by: Wei Wang <redacted>
Acked-by: Eric Dumazet <edumazet@google.com>
Applied, thanks.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help