]> git.baikalelectronics.ru Git - kernel.git/commit
slub: Fix a crash during slabinfo -v
authorTero Roponen <tero.roponen@gmail.com>
Wed, 1 Dec 2010 18:04:20 +0000 (20:04 +0200)
committerPekka Enberg <penberg@kernel.org>
Sat, 4 Dec 2010 07:40:16 +0000 (09:40 +0200)
commit1c1bb1cf020a94b2e048962132232558dbefd348
treeb4322432ad62529a7eee6b9621473a9e1b58be3c
parent252f21c11e9f47f2bdc58dffd4522149d819e18e
slub: Fix a crash during slabinfo -v

Commit 89e2585653525d897dcac01147222084473d1789 ("SLUB: Pass active
and inactive redzone flags instead of boolean to debug functions")
missed two instances of check_object(). This caused a lot of warnings
during 'slabinfo -v' finally leading to a crash:

  BUG ext4_xattr: Freepointer corrupt
  ...
  BUG buffer_head: Freepointer corrupt
  ...
  BUG ext4_alloc_context: Freepointer corrupt
  ...
  ...
  BUG: unable to handle kernel NULL pointer dereference at 0000000000000008
  IP: [<ffffffff810a291f>] file_sb_list_del+0x1c/0x35
  PGD 79d78067 PUD 79e67067 PMD 0
  Oops: 0002 [#1] SMP
  last sysfs file: /sys/kernel/slab/:t-0000192/validate

This patch fixes the problem by converting the two missed instances.

Acked-by: Christoph Lameter <cl@linux.com>
Signed-off-by: Tero Roponen <tero.roponen@gmail.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
mm/slub.c