syzbot


BUG: Dentry ADDR{i=0,n=/} still in use (-128) [unmount of erofs loop2]

Status: auto-closed as invalid on 2021/09/29 00:32
Reported-by: syzbot+fb90508319c4b4a83e6f@syzkaller.appspotmail.com
First crash: 1440d, last: 1282d

Sample crash report:
CPU: 0 PID: 18001 Comm: syz-executor.3 Not tainted 4.19.192-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x1fc/0x2ef lib/dump_stack.c:118
 fail_dump lib/fault-inject.c:51 [inline]
 should_fail.cold+0xa/0xf lib/fault-inject.c:149
BUG: Dentry 00000000a3c07dc1{i=0,n=/}  still in use (-128) [unmount of erofs loop2]
 __should_failslab+0x115/0x180 mm/failslab.c:32
 should_failslab+0x5/0x10 mm/slab_common.c:1588
 slab_pre_alloc_hook mm/slab.h:424 [inline]
 slab_alloc mm/slab.c:3383 [inline]
 __do_kmalloc mm/slab.c:3725 [inline]
 __kmalloc+0x2ab/0x3c0 mm/slab.c:3736
 kmalloc include/linux/slab.h:520 [inline]
 __do_sys_memfd_create mm/memfd.c:295 [inline]
 __se_sys_memfd_create+0xf8/0x440 mm/memfd.c:268
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x4665d9
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48
------------[ cut here ]------------
RSP: 002b:00007f693dbebf48 EFLAGS: 00000246 ORIG_RAX: 000000000000013f
WARNING: CPU: 1 PID: 17980 at fs/dcache.c:1518 umount_check fs/dcache.c:1518 [inline]
WARNING: CPU: 1 PID: 17980 at fs/dcache.c:1518 umount_check.cold+0xf2/0x116 fs/dcache.c:1499
RAX: ffffffffffffffda RBX: 0000000020000200 RCX: 00000000004665d9
Kernel panic - not syncing: panic_on_warn set ...

RDX: 000000000000004a RSI: 0000000000000000 RDI: 00000000004bee66
RBP: 000000000000000a R08: 0000000000000025 R09: ffffffffffffffff
R10: 000000000000000a R11: 0000000000000246 R12: 0000000008100000
R13: 0000000020000100 R14: 0000000000087e20 R15: 0000000020010200
CPU: 1 PID: 17980 Comm: syz-executor.2 Not tainted 4.19.192-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x1fc/0x2ef lib/dump_stack.c:118
 panic+0x26a/0x50e kernel/panic.c:186
 __warn.cold+0x20/0x5a kernel/panic.c:541
 report_bug+0x262/0x2b0 lib/bug.c:183
 fixup_bug arch/x86/kernel/traps.c:178 [inline]
 fixup_bug arch/x86/kernel/traps.c:173 [inline]
 do_error_trap+0x1d7/0x310 arch/x86/kernel/traps.c:296
 invalid_op+0x14/0x20 arch/x86/entry/entry_64.S:1038
RIP: 0010:umount_check fs/dcache.c:1518 [inline]
RIP: 0010:umount_check.cold+0xf2/0x116 fs/dcache.c:1499
Code: f9 4d 89 f1 45 89 e0 48 89 e9 41 55 4c 89 fa 48 89 ee 48 c7 c7 00 a5 74 88 e8 3b f0 fe ff 48 c7 c7 00 a4 74 88 e8 2f f0 fe ff <0f> 0b 58 e9 ed ec b4 f9 e8 19 9b a4 f9 e9 22 ff ff ff 48 89 df e8
RSP: 0018:ffff88803f647a98 EFLAGS: 00010286
RAX: 0000000000000024 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000040000 RSI: ffffffff814df6b1 RDI: ffffed1007ec8f45
RBP: ffff88808e76a460 R08: 0000000000000024 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: 00000000ffffff80
R13: ffff888042377350 R14: ffffffff893f8da0 R15: 0000000000000000
 d_walk+0x196/0x990 fs/dcache.c:1253
 do_one_tree fs/dcache.c:1525 [inline]
 shrink_dcache_for_umount+0x87/0x330 fs/dcache.c:1541
 generic_shutdown_super+0x68/0x370 fs/super.c:441
 kill_block_super+0x97/0xf0 fs/super.c:1185
 deactivate_locked_super+0x94/0x160 fs/super.c:329
 mount_bdev+0x373/0x3b0 fs/super.c:1160
 erofs_mount+0x8c/0xc0 drivers/staging/erofs/super.c:512
 mount_fs+0xa3/0x310 fs/super.c:1261
 vfs_kern_mount.part.0+0x68/0x470 fs/namespace.c:961
 vfs_kern_mount fs/namespace.c:951 [inline]
 do_new_mount fs/namespace.c:2469 [inline]
 do_mount+0x113c/0x2f10 fs/namespace.c:2799
 ksys_mount+0xcf/0x130 fs/namespace.c:3015
 __do_sys_mount fs/namespace.c:3029 [inline]
 __se_sys_mount fs/namespace.c:3026 [inline]
 __x64_sys_mount+0xba/0x150 fs/namespace.c:3026
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x467afa
Code: 48 c7 c2 bc ff ff ff f7 d8 64 89 02 b8 ff ff ff ff eb d2 e8 b8 04 00 00 0f 1f 84 00 00 00 00 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f0309763fa8 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 0000000020000200 RCX: 0000000000467afa
RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007f0309764000
RBP: 00007f0309764040 R08: 00007f0309764040 R09: 0000000020000000
R10: 0000000000000000 R11: 0000000000000202 R12: 0000000020000000
R13: 0000000020000100 R14: 00007f0309764000 R15: 0000000020000080
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/06/01 00:31 linux-4.19.y 6b7b0056defc 032639db .config console log report info ci2-linux-4-19 BUG: Dentry ADDR{i=0,n=/} still in use (-128) [unmount of erofs loop2]
2021/05/20 10:36 linux-4.19.y 3c8c23092588 a343ba6b .config console log report info ci2-linux-4-19 BUG: Dentry ADDR{i=0,n=/} still in use (-128) [unmount of erofs loop2]
2021/02/03 20:49 linux-4.19.y 811218eceeaa 624dad51 .config console log report info ci2-linux-4-19 BUG: Dentry ADDR{i=0,n=/} still in use (-128) [unmount of erofs loop2]
2020/12/25 03:50 linux-4.19.y 13d2ce42de8c c2c1d1dd .config console log report info ci2-linux-4-19
* Struck through repros no longer work on HEAD.