]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: Fix slab corruption.
authorLinus Torvalds <torvalds@linux-foundation.org>
Tue, 11 Oct 2016 05:39:04 +0000 (22:39 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 11 Oct 2016 08:44:37 +0000 (04:44 -0400)
commitb3ae28f76e9fd03d79c48083491845d6af4508c9
treeed93fc7163fd447c104c23c3238cd919524dac59
parentd4a900d3cc3084d6ff20e79f4a68a8bef244e4bc
netfilter: Fix slab corruption.

Use the correct pattern for singly linked list insertion and
deletion.  We can also calculate the list head outside of the
mutex.

Fixes: b788bbf51085 ("netfilter: replace list_head with single linked list")
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Reviewed-by: Aaron Conole <aconole@bytheb.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/netfilter/core.c | 108 ++++++++++++++++-----------------------------------
 1 file changed, 33 insertions(+), 75 deletions(-)
net/netfilter/core.c