BTRFS info (device loop4): clearing 1 ro feature flag BTRFS info (device loop4): clearing 2 ro feature flag BTRFS info (device loop4): checking UUID tree __btrfs_alloc_chunk: found more than 0 devices ------------[ cut here ]------------ WARNING: CPU: 0 PID: 9311 at fs/btrfs/volumes.c:4726 __btrfs_alloc_chunk.cold+0x23/0x50 fs/btrfs/volumes.c:4726 Kernel panic - not syncing: panic_on_warn set ... CPU: 0 PID: 9311 Comm: kworker/u4:5 Not tainted 4.14.304-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 audit: type=1804 audit(1675287954.688:6): pid=9687 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.0" name="/root/syzkaller-testdir3162826198/syzkaller.xZJbj2/11/bus" dev="sda1" ino=13888 res=1 Workqueue: events_unbound btrfs_async_reclaim_metadata_space Call Trace: audit: type=1804 audit(1675287954.728:7): pid=9687 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="ToMToU" comm="syz-executor.0" name="/root/syzkaller-testdir3162826198/syzkaller.xZJbj2/11/bus" dev="sda1" ino=13888 res=1 __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 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 RIP: 0010:__btrfs_alloc_chunk.cold+0x23/0x50 fs/btrfs/volumes.c:4726 RSP: 0018:ffff88804b87f9c0 EFLAGS: 00010286 RAX: 000000000000002e RBX: ffff888098946940 RCX: 0000000000000000 RDX: 0000000000000000 RSI: ffffffff878bd020 RDI: ffffed100970ff2e RBP: dffffc0000000000 R08: 000000000000002e R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: ffff888093adb128 R13: 0000000001000000 R14: 00000000007e0000 R15: 0000000000720000 do_chunk_alloc+0x2fa/0x800 fs/btrfs/extent-tree.c:4707 flush_space+0x8d4/0xde0 fs/btrfs/extent-tree.c:5043 btrfs_async_reclaim_metadata_space+0x414/0xc20 fs/btrfs/extent-tree.c:5162 process_one_work+0x793/0x14a0 kernel/workqueue.c:2117 worker_thread+0x5cc/0xff0 kernel/workqueue.c:2251 kthread+0x30d/0x420 kernel/kthread.c:232 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:406 Kernel Offset: disabled Rebooting in 86400 seconds..