VFS: Busy inodes after unmount of loop0 (btrfs) ------------[ cut here ]------------ kernel BUG at fs/super.c:503! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 5044 Comm: syz-executor167 Not tainted 6.4.0-syzkaller-12454-g1c7873e33645 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/03/2023 RIP: 0010:generic_shutdown_super+0x33d/0x340 fs/super.c:501 Code: 8b 1b 48 89 d8 48 c1 e8 03 42 80 3c 28 00 74 08 48 89 df e8 65 01 f0 ff 48 8b 13 48 c7 c7 a0 11 17 8b 4c 89 fe e8 43 58 c5 08 <0f> 0b 90 66 0f 1f 00 41 57 41 56 53 49 89 fe 49 bf 00 00 00 00 00 RSP: 0018:ffffc90003a1fce8 EFLAGS: 00010246 RAX: 000000000000002f RBX: ffffffff8d83cfe0 RCX: c3e88c05a6d5b100 RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000 RBP: 1ffff1100f3690f1 R08: ffffffff816f59ec R09: 1ffff92000743f50 R10: dffffc0000000000 R11: fffff52000743f51 R12: 0000000000000000 R13: dffffc0000000000 R14: ffffffff8b49a978 R15: ffff888079b48658 FS: 0000555556f27300(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffdbf1e2fe8 CR3: 000000007e8b0000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: kill_anon_super+0x3b/0x60 fs/super.c:1110 btrfs_kill_super+0x41/0x50 fs/btrfs/super.c:2138 deactivate_locked_super+0xa4/0x110 fs/super.c:330 cleanup_mnt+0x426/0x4c0 fs/namespace.c:1254 task_work_run+0x24a/0x300 kernel/task_work.c:179 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop+0xd9/0x100 kernel/entry/common.c:171 exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:204 __syscall_exit_to_user_mode_work kernel/entry/common.c:286 [inline] syscall_exit_to_user_mode+0x64/0x280 kernel/entry/common.c:297 do_syscall_64+0x4d/0xc0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f76ac7c8f77 Code: ff d0 48 89 c7 b8 3c 00 00 00 0f 05 48 c7 c1 b8 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffdbf1e3248 EFLAGS: 00000206 ORIG_RAX: 00000000000000a6 RAX: 0000000000000000 RBX: 00000000000e8f0e RCX: 00007f76ac7c8f77 RDX: 00007ffdbf1e3309 RSI: 000000000000000a RDI: 00007ffdbf1e3300 RBP: 00007ffdbf1e3300 R08: 00000000ffffffff R09: 00007ffdbf1e30e0 R10: 0000555556f28633 R11: 0000000000000206 R12: 00007ffdbf1e43c0 R13: 0000555556f285f0 R14: 00007ffdbf1e3270 R15: 00007ffdbf1e43e0 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:generic_shutdown_super+0x33d/0x340 fs/super.c:501 Code: 8b 1b 48 89 d8 48 c1 e8 03 42 80 3c 28 00 74 08 48 89 df e8 65 01 f0 ff 48 8b 13 48 c7 c7 a0 11 17 8b 4c 89 fe e8 43 58 c5 08 <0f> 0b 90 66 0f 1f 00 41 57 41 56 53 49 89 fe 49 bf 00 00 00 00 00 RSP: 0018:ffffc90003a1fce8 EFLAGS: 00010246 RAX: 000000000000002f RBX: ffffffff8d83cfe0 RCX: c3e88c05a6d5b100 RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000 RBP: 1ffff1100f3690f1 R08: ffffffff816f59ec R09: 1ffff92000743f50 R10: dffffc0000000000 R11: fffff52000743f51 R12: 0000000000000000 R13: dffffc0000000000 R14: ffffffff8b49a978 R15: ffff888079b48658 FS: 0000555556f27300(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffdbf1e2fe8 CR3: 000000007e8b0000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400