linux/net/netlink
Nicolas Dichtel 335079e853 netlink: avoid a double skb free in genlmsg_mcast()
[ Upstream commit 02a2385f37 ]

nlmsg_multicast() consumes always the skb, thus the original skb must be
freed only when this function is called with a clone.

Fixes: cb9f7a9a5c ("netlink: ensure to loop over all netns in genlmsg_multicast_allns()")
Reported-by: Ben Hutchings <ben.hutchings@codethink.co.uk>
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-03-31 18:12:33 +02:00
..
af_netlink.c netlink: Add netns check on taps 2018-01-02 20:33:24 +01:00
af_netlink.h af_netlink: ensure that NLMSG_DONE never fails in dumps 2017-11-24 08:32:24 +01:00
diag.c netlink: remove mmapped netlink support 2017-03-22 12:04:13 +01:00
genetlink.c netlink: avoid a double skb free in genlmsg_mcast() 2018-03-31 18:12:33 +02:00
Kconfig netlink: remove mmapped netlink support 2017-03-22 12:04:13 +01:00
Makefile netlink: Diag core and basic socket info dumping (v2) 2013-03-21 12:38:03 -04:00