Thread (2 messages) flat view 2 messages, 2 authors, 2016-07-05

Re: [PATCH] net: fix decnet rtnexthop parsing

From: David Miller <davem@davemloft.net>
Date: 2016-07-05 21:09:01

From: Vegard Nossum <redacted>
Date: Tue,  5 Jul 2016 21:12:53 +0200
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 <redacted>
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