syzbot


BUG: Dentry still in use [unmount of erofs loop1]

Status: auto-closed as invalid on 2021/12/15 17:33
Reported-by: syzbot+b63685079fca66d684ed@syzkaller.appspotmail.com
First crash: 1149d, last: 1149d

Sample crash report:
BUG: Dentry ffff88819a66b770{i=0,n=.index}  still in use (1) [unmount of erofs loop1]
------------[ cut here ]------------
WARNING: CPU: 0 PID: 593 at fs/dcache.c:1597 umount_check+0x179/0x1c0 fs/dcache.c:1588
Modules linked in:
CPU: 0 PID: 593 Comm: syz-executor.1 Tainted: G        W         5.4.125-syzkaller-00008-ga8f2bcabf9c5 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:umount_check+0x179/0x1c0 fs/dcache.c:1588
Code: ff 4c 8b 0b 48 81 c5 20 04 00 00 48 c7 c7 a0 0b e9 84 4c 89 fe 4c 89 f2 4c 89 f9 45 89 e8 31 c0 55 e8 37 a2 af ff 48 83 c4 08 <0f> 0b e9 fd fe ff ff 89 e9 80 e1 07 80 c1 03 38 c1 0f 8c d4 fe ff
RSP: 0018:ffff8881a98a7c30 EFLAGS: 00010296
RAX: 0000000000000055 RBX: ffffffff86013400 RCX: 1962ec4cf59ac200
RDX: 0000000000000000 RSI: 0000000000000002 RDI: 0000000000000000
RBP: ffff8881e0df4420 R08: ffffffff814e90d7 R09: ffffed103edc9608
R10: ffffed103edc9608 R11: 0000000000000000 R12: dffffc0000000000
R13: 0000000000000001 R14: 0000000000000000 R15: ffff88819a66b770
FS:  000000000234d400(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000002356b38 CR3: 00000001a9a39000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 d_walk+0x2d9/0x540 fs/dcache.c:1307
 do_one_tree fs/dcache.c:1604 [inline]
 shrink_dcache_for_umount+0x8a/0x1a0 fs/dcache.c:1620
 generic_shutdown_super+0x63/0x2a0 fs/super.c:447
 kill_block_super+0x79/0xd0 fs/super.c:1444
 erofs_kill_sb+0x5b/0xc0 fs/erofs/super.c:442
 deactivate_locked_super+0xaf/0x100 fs/super.c:335
 deactivate_super+0x1b3/0x270 fs/super.c:366
 cleanup_mnt+0x432/0x4e0 fs/namespace.c:1102
 task_work_run+0x186/0x1b0 kernel/task_work.c:113
 tracehook_notify_resume include/linux/tracehook.h:188 [inline]
 exit_to_usermode_loop arch/x86/entry/common.c:163 [inline]
 prepare_exit_to_usermode+0x2b0/0x310 arch/x86/entry/common.c:194
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x467a47
Code: ff d0 48 89 c7 b8 3c 00 00 00 0f 05 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 0f 1f 44 00 00 b8 a6 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:00007ffdab9ebeb8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000467a47
RDX: 00007ffdab9ebf8c RSI: 0000000000000002 RDI: 00007ffdab9ebf80
RBP: 00007ffdab9ebf80 R08: 00000000ffffffff R09: 00007ffdab9ebd50
R10: 000000000234ebd3 R11: 0000000000000246 R12: 00000000004bee90
R13: 00007ffdab9ed050 R14: 000000000234eb00 R15: 00007ffdab9ed090
---[ end trace a1355abf4afbe64e ]---
VFS: Busy inodes after unmount of loop1. Self-destruct in 5 seconds.  Have a nice day...
----------------
Code disassembly (best guess):
   0:	ff 4c 8b 0b          	decl   0xb(%rbx,%rcx,4)
   4:	48 81 c5 20 04 00 00 	add    $0x420,%rbp
   b:	48 c7 c7 a0 0b e9 84 	mov    $0xffffffff84e90ba0,%rdi
  12:	4c 89 fe             	mov    %r15,%rsi
  15:	4c 89 f2             	mov    %r14,%rdx
  18:	4c 89 f9             	mov    %r15,%rcx
  1b:	45 89 e8             	mov    %r13d,%r8d
  1e:	31 c0                	xor    %eax,%eax
  20:	55                   	push   %rbp
  21:	e8 37 a2 af ff       	callq  0xffafa25d
  26:	48 83 c4 08          	add    $0x8,%rsp
  2a:	0f 0b                	ud2     <-- trapping instruction
  2c:	e9 fd fe ff ff       	jmpq   0xffffff2e
  31:	89 e9                	mov    %ebp,%ecx
  33:	80 e1 07             	and    $0x7,%cl
  36:	80 c1 03             	add    $0x3,%cl
  39:	38 c1                	cmp    %al,%cl
  3b:	0f                   	.byte 0xf
  3c:	8c d4                	mov    %ss,%esp
  3e:	fe                   	(bad)  
  3f:	ff                   	.byte 0xff

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/08/17 17:33 android12-5.4 a8f2bcabf9c5 a2fe1cb5 .config console log report info ci2-android-5-4-kasan BUG: Dentry still in use [unmount of erofs loop1]
2021/08/17 03:57 android12-5.4 a8f2bcabf9c5 33c26cb7 .config console log report info ci2-android-5-4-kasan BUG: Dentry still in use [unmount of erofs loop1]
* Struck through repros no longer work on HEAD.