netfilter: nfnetlink: use original skbuff when acking batches
authorPablo Neira Ayuso <pablo@netfilter.org>
Sun, 24 Jan 2016 22:08:39 +0000 (23:08 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Sun, 31 Jan 2016 23:15:27 +0000 (00:15 +0100)
commit7c7bdf35991bb8f7cfaeaf22ea3a2f2d1967c166
treecc240b0d3ae203c7132a52f532fdd77dbd3e023a
parentd93c6258ee4255749c10012c50a31c08f4e9fb16
netfilter: nfnetlink: use original skbuff when acking batches

Since bd678e09dc17 ("netfilter: nfnetlink: fix splat due to incorrect
socket memory accounting in skbuff clones"), we don't manually attach
the sk to the skbuff clone anymore, so we have to use the original
skbuff from netlink_ack() which needs to access the sk pointer.

Fixes: bd678e09dc17 ("netfilter: nfnetlink: fix splat due to incorrect socket memory accounting in skbuff clones")
Reported-by: Dmitry Vyukov <dvyukov@google.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nfnetlink.c