aboutsummaryrefslogtreecommitdiff
path: root/fs/jbd/commit.c
diff options
context:
space:
mode:
authorPekka Enberg <[email protected]>2010-09-14 23:21:12 +0300
committerPekka Enberg <[email protected]>2010-10-02 10:24:29 +0300
commit84c1cf62465e2fb0a692620dcfeb52323ab03d48 (patch)
tree704f4c7f7f0403aadd62be42d2e9d87abf2926fc /fs/jbd/commit.c
parentdb210e70e5f191710a3b1d09f653b44885d397ea (diff)
SLUB: Fix merged slab cache names
As explained by Linus "I'm Proud to be an American" Torvalds: Looking at the merging code, I actually think it's totally buggy. If you have something like this: - load module A: create slab cache A - load module B: create slab cache B that can merge with A - unload module A - "cat /proc/slabinfo": BOOM. Oops. exactly because the name is not handled correctly, and you'll have module B holding open a slab cache that has a name pointer that points to module A that no longer exists. This patch fixes the problem by using kstrdup() to allocate dynamic memory for ->name of "struct kmem_cache" as suggested by Christoph Lameter. Acked-by: Christoph Lameter <[email protected]> Cc: David Rientjes <[email protected]> Reported-by: Linus Torvalds <[email protected]> Signed-off-by: Pekka Enberg <[email protected]> Conflicts: mm/slub.c
Diffstat (limited to 'fs/jbd/commit.c')
0 files changed, 0 insertions, 0 deletions