Matthias Schiffer ec13ad1d70 ipv6: fix crash on ICMPv6 redirects with prohibited/blackholed source
There are other error values besides ip6_null_entry that can be returned by
ip6_route_redirect(): fib6_rule_action() can also result in
ip6_blk_hole_entry and ip6_prohibit_entry if such ip rules are installed.

Only checking for ip6_null_entry in rt6_do_redirect() causes ip6_ins_rt()
to be called with rt->rt6i_table == NULL in these cases, making the kernel
crash.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
2015-11-02 16:30:15 -05:00
..
2015-08-30 18:12:36 -04:00
2015-03-02 16:43:41 -05:00
2015-10-22 19:39:25 -07:00
2015-03-06 21:50:02 -05:00
2015-10-23 03:05:19 -07:00
2015-08-31 12:45:09 -07:00
2015-09-23 14:33:55 -07:00
2015-10-15 13:44:35 -07:00
2015-10-22 18:26:29 -07:00