aboutsummaryrefslogtreecommitdiff
path: root/lib/dynamic_debug.c
diff options
context:
space:
mode:
authorArthur Gautier <[email protected]>2018-12-31 02:10:58 +0000
committerDavid S. Miller <[email protected]>2019-01-04 12:47:06 -0800
commit7c1e8a3817c55d73b27cc29b84075999c8894179 (patch)
treece97a9c897dba6c3ff7bdd93340cf4ba92b99064 /lib/dynamic_debug.c
parent1492623e837fe7ca6296f7f5411328307e242771 (diff)
netlink: fixup regression in RTM_GETADDR
This commit fixes a regression in AF_INET/RTM_GETADDR and AF_INET6/RTM_GETADDR. Before this commit, the kernel would stop dumping addresses once the first skb was full and end the stream with NLMSG_DONE(-EMSGSIZE). The error shouldn't be sent back to netlink_dump so the callback is kept alive. The userspace is expected to call back with a new empty skb. Changes from V1: - The error is not handled in netlink_dump anymore but rather in inet_dump_ifaddr and inet6_dump_addr directly as suggested by David Ahern. Fixes: d7e38611b81e ("net/ipv4: Put target net when address dump fails due to bad attributes") Fixes: 242afaa6968c ("net/ipv6: Put target net when address dump fails due to bad attributes") Cc: David Ahern <[email protected]> Cc: "David S . Miller" <[email protected]> Cc: [email protected] Signed-off-by: Arthur Gautier <[email protected]> Reviewed-by: David Ahern <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'lib/dynamic_debug.c')
0 files changed, 0 insertions, 0 deletions