Re: [PATCH] vfs: add d_prune dentry operation

From: Christoph Hellwig
Date: Fri Oct 28 2011 - 08:17:00 EST


This variant seems to crash btrfs in xfstests 010:

010 0s ... 0s
[ 8093.504387] BUG: unable to handle kernel NULL pointer dereference at (null)
[ 8093.505618] IP: [< (null)>] (null)
[ 8093.505930] PGD 196f5067 PUD 5507d067 PMD 0
[ 8093.505930] Oops: 0010 [#1] SMP
[ 8093.505930] CPU 0
[ 8093.505930] Modules linked in:
[ 8093.505930]
[ 8093.505930] Pid: 26328, comm: umount Not tainted 3.1.0+ #90 Bochs Bochs
[ 8093.505930] RIP: 0010:[<0000000000000000>] [< (null)>] (null)
[ 8093.505930] RSP: 0018:ffff880009f63dc0 EFLAGS: 00010206
[ 8093.505930] RAX: ffffffff81ae7780 RBX: ffff88002b93a840 RCX: 000000010023ad06
[ 8093.505930] RDX: ffff88002b93a8e0 RSI: ffffffff8114fef0 RDI: ffff88002b93a840
[ 8093.505930] RBP: ffff880009f63dd8 R08: 0000000000000000 R09: 002dffe1ea51a56d
[ 8093.505930] R10: ffff880058c7f680 R11: 0000000000000004 R12: ffff88002b93a8c0
[ 8093.505930] R13: 0000000000000000 R14: ffff88005a56d0c0 R15: ffff88001a896000
[ 8093.505930] FS: 0000000000000000(0000) GS:ffff88005d800000(0063) knlGS:00000000f75c6700
[ 8093.505930] CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033
[ 8093.505930] CR2: 0000000000000000 CR3: 0000000041ddc000 CR4: 00000000000006f0
[ 8093.505930] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[ 8093.505930] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
[ 8093.505930] Process umount (pid: 26328, threadinfo ffff880009f62000, task ffff88003abd6500)
[ 8093.505930] Stack:
[ 8093.505930] ffffffff8114efb7 ffff88002b93a840 ffff88005a3c4500 ffff880009f63e08
[ 8093.505930] ffffffff811516ea ffff880009f63f08 0000000000000000 ffff88001a896000
[ 8093.505930] ffffffff81ae40c0 ffff880009f63e28 ffffffff8115192e ffff880009f63e38
[ 8093.505930] Call Trace:
[ 8093.505930] [<ffffffff8114efb7>] ? dentry_lru_prune+0x87/0x90
[ 8093.505930] [<ffffffff811516ea>] shrink_dcache_for_umount_subtree+0x7a/0x1e0
[ 8093.505930] [<ffffffff8115192e>] shrink_dcache_for_umount+0x2e/0x60
[ 8093.505930] [<ffffffff8113d977>] generic_shutdown_super+0x27/0xd0
[ 8093.505930] [<ffffffff8113dab1>] kill_anon_super+0x11/0x20
[ 8093.505930] [<ffffffff8113de25>] deactivate_locked_super+0x45/0x70
[ 8093.505930] [<ffffffff8113e7e9>] deactivate_super+0x49/0x70
[ 8093.505930] [<ffffffff81157f7b>] mntput_no_expire+0xab/0xf0
[ 8093.505930] [<ffffffff81158c1a>] sys_umount+0x6a/0x360
[ 8093.505930] [<ffffffff81158f1b>] sys_oldumount+0xb/0x10
[ 8093.505930] [<ffffffff819e2f05>] sysenter_dispatch+0x7/0x2b
[ 8093.505930] Code: Bad RIP value.
[ 8093.505930] RIP [< (null)>] (null)

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/