nfnetlink: do not ack malformed messages
authorJiri Benc <jbenc@redhat.com>
Thu, 7 Nov 2013 18:59:19 +0000 (19:59 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 8 Nov 2013 20:12:11 +0000 (15:12 -0500)
commitcdbe7c2d6d485459801838c244c409b938e32df5
treeadaff9745719732f3ff93abae3f52fa94b80db18
parent13eb2ab2d33c57ebddc57437a7d341995fc9138c
nfnetlink: do not ack malformed messages

Commit 0628b123c96d ("netfilter: nfnetlink: add batch support and use it
from nf_tables") introduced a bug leading to various crashes in netlink_ack
when netlink message with invalid nlmsg_len was sent by an unprivileged
user.

Signed-off-by: Jiri Benc <jbenc@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/netfilter/nfnetlink.c