Skip to content
Commit 673498b8 authored by Stefan Tomanek's avatar Stefan Tomanek Committed by David S. Miller
Browse files

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: 6ef94cfa ("fib_rules: add route suppression based on ifgroup")

Reported-by: default avatarDaniel Golle <daniel.golle@gmail.com>
Tested-by: default avatarDaniel Golle <daniel.golle@gmail.com>
Signed-off-by: default avatarStefan Tomanek <stefan.tomanek@wertarbyte.de>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent d323e92c
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment