]> git.baikalelectronics.ru Git - kernel.git/commit
inet: fix NULL pointer Oops in fib(6)_rule_suppress
authorStefan Tomanek <stefan.tomanek@wertarbyte.de>
Tue, 10 Dec 2013 22:21:25 +0000 (23:21 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 10 Dec 2013 22:54:23 +0000 (17:54 -0500)
commitcab40fc8df21cd900657bcdf92b63cffa42b3dea
treeb0e29c809ae12246f544fa3c6552af71acd361e7
parent81fb711b4bb3fe2f9d9666641e9d78bab23aac72
inet: fix NULL pointer Oops in fib(6)_rule_suppress

This changes ensures that the routing entry investigated by the suppress
function actually does point to a device struct before following that pointer,
fixing a possible kernel oops situation when verifying the interface group
associated with a routing table entry.

According to Daniel Golle, this Oops can be triggered by a user process trying
to establish an outgoing IPv6 connection while having no real IPv6 connectivity
set up (only autoassigned link-local addresses).

Fixes: 19e67103359bb ("fib_rules: add route suppression based on ifgroup")
Reported-by: Daniel Golle <daniel.golle@gmail.com>
Tested-by: Daniel Golle <daniel.golle@gmail.com>
Signed-off-by: Stefan Tomanek <stefan.tomanek@wertarbyte.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/fib_rules.c
net/ipv6/fib6_rules.c