summaryrefslogtreecommitdiffstats
path: root/net/ipv6/ip6_fib.c
diff options
context:
space:
mode:
authorVegard Nossum2016-07-05 21:12:53 +0200
committerDavid S. Miller2016-07-05 23:08:47 +0200
commitab58298cf459fcd4f588a401d36abf0bd2215b51 (patch)
tree58c77416b58a2b50ff681d1e3fde2444d17fdc98 /net/ipv6/ip6_fib.c
parentcxgb4: update latest firmware version supported (diff)
downloadkernel-qcow2-linux-ab58298cf459fcd4f588a401d36abf0bd2215b51.tar.gz
kernel-qcow2-linux-ab58298cf459fcd4f588a401d36abf0bd2215b51.tar.xz
kernel-qcow2-linux-ab58298cf459fcd4f588a401d36abf0bd2215b51.zip
net: fix decnet rtnexthop parsing
dn_fib_count_nhs() could enter an infinite loop if nhp->rtnh_len == 0 (i.e. if userspace passes a malformed netlink message). Let's use the helpers from net/nexthop.h which take care of all this stuff. We can do exactly the same as e.g. fib_count_nexthops() and fib_get_nhs() from net/ipv4/fib_semantics.c. This fixes the softlockup for me. Cc: Thomas Graf <tgraf@suug.ch> Signed-off-by: Vegard Nossum <vegard.nossum@oracle.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/ip6_fib.c')
0 files changed, 0 insertions, 0 deletions