BTRFS: device fsid 24c7a497-3402-47dd-bef8-82358f5f30e0 devid 1 transid 8 /dev/loop5 F2FS-fs (loop3): Mounted with checkpoint version = 48b305e5 Sysenter RSP=0000000000000f80 CS:RIP=0050:0000000000002810 audit: type=1804 audit(1674027622.089:6): pid=9607 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.3" name="/root/syzkaller-testdir2462901963/syzkaller.P18Ajp/6/file0/bus" dev="loop3" ino=10 res=1 ================================================ WARNING: lock held when returning to user space! 4.14.302-syzkaller #0 Not tainted ------------------------------------------------ syz-executor.3/9607 is leaving the kernel with locks still held! 1 lock held by syz-executor.3/9607: #0: (sb_writers#14){.+.+}, at: [] sb_start_write include/linux/fs.h:1551 [inline] #0: (sb_writers#14){.+.+}, at: [] mnt_want_write_file+0xfd/0x3b0 fs/namespace.c:497 CS: sel=0x0030, attr=0x0409b, limit=0x000fffff, base=0x0000000000000000 DS: sel=0x0038, attr=0x04093, limit=0x000fffff, base=0x0000000000000000 SS: sel=0x0038, attr=0x04093, limit=0x000fffff, base=0x0000000000000000 ES: sel=0x0038, attr=0x04093, limit=0x000fffff, base=0x0000000000000000 FS: sel=0x0038, attr=0x04093, limit=0x000fffff, base=0x0000000000000000 BTRFS info (device loop5): enabling inode map caching GS: sel=0x0038, attr=0x04093, limit=0x000fffff, base=0x0000000000000000 BTRFS warning (device loop5): excessive commit interval 622039222 ------------[ cut here ]------------ WARNING: CPU: 0 PID: 8036 at fs/namespace.c:1178 cleanup_mnt+0x222/0x2c0 fs/namespace.c:1178 Kernel panic - not syncing: panic_on_warn set ... BTRFS info (device loop5): use zlib compression CPU: 0 PID: 8036 Comm: syz-executor.3 Not tainted 4.14.302-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 Call Trace: BTRFS info (device loop5): enabling ssd optimizations __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x1b2/0x281 lib/dump_stack.c:58 panic+0x1f9/0x42d kernel/panic.c:183 __warn.cold+0x20/0x44 kernel/panic.c:547 BTRFS info (device loop5): using spread ssd allocation scheme report_bug+0x208/0x250 lib/bug.c:183 fixup_bug arch/x86/kernel/traps.c:177 [inline] fixup_bug arch/x86/kernel/traps.c:172 [inline] do_error_trap+0x195/0x2d0 arch/x86/kernel/traps.c:295 invalid_op+0x1b/0x40 arch/x86/entry/entry_64.S:967 BTRFS info (device loop5): using free space tree RIP: 0010:cleanup_mnt+0x222/0x2c0 fs/namespace.c:1178 RSP: 0018:ffff888090777e18 EFLAGS: 00010297 RAX: ffff888094f1a1c0 RBX: dffffc0000000000 RCX: 0000000000000002 RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffffffff8a0939e0 RBP: 0000000000000008 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000000 R11: ffff888094f1a1c0 R12: ffff8880980ae200 R13: 0000000000000001 R14: 0000000000000007 R15: fffffbfff1412776 task_work_run+0x11f/0x190 kernel/task_work.c:113 tracehook_notify_resume include/linux/tracehook.h:191 [inline] exit_to_usermode_loop+0x1ad/0x200 arch/x86/entry/common.c:164 XFS (loop2): Mounting V4 Filesystem prepare_exit_to_usermode arch/x86/entry/common.c:199 [inline] syscall_return_slowpath arch/x86/entry/common.c:270 [inline] do_syscall_64+0x4a3/0x640 arch/x86/entry/common.c:297 entry_SYSCALL_64_after_hwframe+0x5e/0xd3 BTRFS info (device loop5): has skinny extents RIP: 0033:0x7f9345d2e537 RSP: 002b:00007ffe099a1c68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6 XFS (loop2): Ending clean mount RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007f9345d2e537 RDX: 00007ffe099a1d39 RSI: 000000000000000a RDI: 00007ffe099a1d30 RBP: 00007ffe099a1d30 R08: 00000000ffffffff R09: 00007ffe099a1b00 R10: 0000555555969903 R11: 0000000000000246 R12: 00007f9345d87b24 R13: 00007ffe099a2df0 R14: 0000555555969810 R15: 00007ffe099a2e30 Kernel Offset: disabled Rebooting in 86400 seconds..