Patch "drop_monitor: consider inserted data in genlmsg_end" has been added to the 4.9-stable tree
Subsystems (3)
This is a note to let you know that I've just added the patch titled
drop_monitor: consider inserted data in genlmsg_end
to the 4.9-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:
drop_monitor-consider-inserted-data-in-genlmsg_end.patch
and it can be found in the queue-4.9 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 Jan 12 21:37:26 CET 2017
From: Reiter Wolfgang <[email protected]>
Date: Tue, 3 Jan 2017 01:39:10 +0100
Subject: drop_monitor: consider inserted data in genlmsg_end
From: Reiter Wolfgang <[email protected]>
[ Upstream commit 3b48ab2248e61408910e792fe84d6ec466084c1a ]
Final nlmsg_len field update must reflect inserted net_dm_drop_point data.
This patch depends on previous patch:
"drop_monitor: add missing call to genlmsg_end"
--- net/core/drop_monitor.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)
net/core/drop_monitor.c +7 -1
@@ -107,7 +107,6 @@ static struct sk_buff *reset_per_cpu_dat } msg =nla_data (nla);memset (msg,0 , al); -genlmsg_end (skb, msg_header); goto out; err:
@@ -117,6 +116,13 @@ out:swap (data->skb, skb);spin_unlock_irqrestore (&data->lock, flags); +if (skb) { +struct nlmsghdr *nlh = (struct nlmsghdr *)skb->data; +struct genlmsghdr *gnlh = (struct genlmsghdr *)nlmsg_data (nlh); + +genlmsg_end (skb,genlmsg_data (gnlh)); + } +return skb; }
Patches currently in stable-queue which might be from [email protected] are
queue-4.9/drop_monitor-add-missing-call-to-genlmsg_end.patch queue-4.9/drop_monitor-consider-inserted-data-in-genlmsg_end.patch