Patch "netlink: avoid a double skb free in genlmsg_mcast()" has been added to the 4.4-stable tree
Subsystems (2)
This is a note to let you know that I've just added the patch titled
netlink: avoid a double skb free in genlmsg_mcast()
to the 4.4-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
netlink-avoid-a-double-skb-free-in-genlmsg_mcast.patch
and it can be found in the queue-4.4 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From foo@baz Thu Mar 29 08:33:08 CEST 2018
From: Nicolas Dichtel <[email protected]>
Date: Wed, 14 Mar 2018 21:10:23 +0100
Subject: netlink: avoid a double skb free in genlmsg_mcast()
From: Nicolas Dichtel <[email protected]>
[ Upstream commit 02a2385f37a7c6594c9d89b64c4a1451276f08eb ]
nlmsg_multicast() consumes always the skb, thus the original skb must be freed only when this function is called with a clone.
--- net/netlink/genetlink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/netlink/genetlink.c +1 -1
@@ -1143,7 +1143,7 @@ static int genlmsg_mcast(struct sk_buffif (!err) delivered = true;else if (err != -ESRCH ) - goto error; +return err;return delivered ?0 : -ESRCH ; error:kfree_skb (skb);
Patches currently in stable-queue which might be from [email protected] are
queue-4.4/netlink-avoid-a-double-skb-free-in-genlmsg_mcast.patch