diff options
author | 2009-09-03 22:38:59 +0300 | |
---|---|---|
committer | 2009-09-03 22:38:59 +0300 | |
commit | d76b1590e06a63a3d8697168cd0aabf1c4b3cb3a (patch) | |
tree | 276a0323e0b25192fdb837475b816db3b3052cad /scripts/selinux/genheaders/genheaders.c | |
parent | Linux 2.6.31-rc8 (diff) | |
download | wireguard-linux-d76b1590e06a63a3d8697168cd0aabf1c4b3cb3a.tar.xz wireguard-linux-d76b1590e06a63a3d8697168cd0aabf1c4b3cb3a.zip |
slub: Fix kmem_cache_destroy() with SLAB_DESTROY_BY_RCU
kmem_cache_destroy() should call rcu_barrier() *after* kmem_cache_close() and
*before* sysfs_slab_remove() or risk rcu_free_slab() being called after
kmem_cache is deleted (kfreed).
rmmod nf_conntrack can crash the machine because it has to kmem_cache_destroy()
a SLAB_DESTROY_BY_RCU enabled cache.
Cc: <stable@kernel.org>
Reported-by: Zdenek Kabelac <zdenek.kabelac@gmail.com>
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Acked-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
Diffstat (limited to 'scripts/selinux/genheaders/genheaders.c')
0 files changed, 0 insertions, 0 deletions