linux/net/decnet
Vegard Nossum ab58298cf4 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>
2016-07-05 14:08:47 -07:00
..
netfilter
af_decnet.c net: add validation for the socket syscall protocol argument 2015-12-14 16:09:30 -05:00
dn_dev.c
dn_fib.c net: fix decnet rtnexthop parsing 2016-07-05 14:08:47 -07:00
dn_neigh.c
dn_nsp_in.c
dn_nsp_out.c
dn_route.c decnet: Do not build routes to devices without decnet private data. 2016-04-10 23:01:30 -04:00
dn_rules.c
dn_table.c
dn_timer.c
Kconfig
Makefile
README
sysctl_net_decnet.c
TODO

                       Linux DECnet Project
                      ======================

The documentation for this kernel subsystem is available in the
Documentation/networking subdirectory of this distribution and also
on line at http://www.chygwyn.com/DECnet/

Steve Whitehouse <SteveW@ACM.org>