]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0f3349db0b66d2d369caa95f72338ff796c064c2
treecc240b0d3ae203c7132a52f532fdd77dbd3e023a
parent12cec07279bc6882753c72deb32b74c77cfb1699
netfilter: nfnetlink: use original skbuff when acking batches

Since 90dd23ae79d3 ("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: 90dd23ae79d3 ("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