aboutsummaryrefslogtreecommitdiff
path: root/lib/debugobjects.c
diff options
context:
space:
mode:
authorEric Dumazet <eric.dumazet@gmail.com>2009-09-03 22:38:59 +0300
committerGreg Kroah-Hartman <gregkh@suse.de>2009-09-15 10:45:24 -0700
commite8f23f08a0dbfbaf5e95fa77a12c8cb2b1bd97e7 (patch)
tree7c0d382c59fd283d35e4fefc75a00be2a6b28f55 /lib/debugobjects.c
parent6c135b4e133017a8aeef1534107ee4b1f11d3265 (diff)
slub: Fix kmem_cache_destroy() with SLAB_DESTROY_BY_RCU
commit d76b1590e06a63a3d8697168cd0aabf1c4b3cb3a upstream. 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. 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> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions