loop0: detected capacity change from 0 to 32768 BTRFS: device fsid a6a605fc-d5f1-4e66-8595-3726e2b761d6 devid 1 transid 8 /dev/loop0 (7:0) scanned by syz.0.0 (5359) BTRFS info (device loop0 state S): first mount of filesystem a6a605fc-d5f1-4e66-8595-3726e2b761d6 BTRFS info (device loop0 state S): using blake2b (blake2b-256-generic) checksum algorithm workqueue: max_active 32767 requested for btrfs-worker is out of range, clamping between 1 and 2048 workqueue: max_active 32767 requested for btrfs-delalloc is out of range, clamping between 1 and 2048 workqueue: max_active 32767 requested for btrfs-endio is out of range, clamping between 1 and 2048 workqueue: max_active 32767 requested for btrfs-endio-meta is out of range, clamping between 1 and 2048 workqueue: max_active 32767 requested for btrfs-rmw is out of range, clamping between 1 and 2048 workqueue: max_active 32767 requested for btrfs-endio-write is out of range, clamping between 1 and 2048 workqueue: max_active 32767 requested for btrfs-compressed-write is out of range, clamping between 1 and 2048 BTRFS critical (device loop0 state S): unable to find chunk map for logical 0 length 4096 BTRFS critical (device loop0 state S): unable to find chunk map for logical 0 length 4096 BTRFS error (device loop0 state S): failed to load root extent Oops: general protection fault, probably for non-canonical address 0xdffffc0000000003: 0000 [#1] SMP KASAN NOPTI KASAN: null-ptr-deref in range [0x0000000000000018-0x000000000000001f] CPU: 0 UID: 0 PID: 5359 Comm: syz.0.0 Not tainted syzkaller #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 RIP: 0010:btrfs_root_node+0x151/0x4a0 fs/btrfs/ctree.c:193 Code: 24 e8 a3 21 00 fe c6 05 a1 eb cd 0b 01 48 c7 c7 a0 2c cd 8b be 4b 03 00 00 48 c7 c2 e0 2c cd 8b e8 a4 eb dd fd 48 8b 44 24 18 <42> 80 3c 30 00 74 08 4c 89 e7 e8 60 11 65 fe 4d 8b 2c 24 e8 f7 71 RSP: 0000:ffffc9000d44f800 EFLAGS: 00010283 RAX: 0000000000000003 RBX: ffffffff83bf9c2e RCX: 0000000000100000 RDX: ffffc9000e31a000 RSI: 000000000001a428 RDI: 000000000001a429 RBP: ffffc9000d44f8c0 R08: 0000000000000000 R09: ffffffff83bf9c2e R10: dffffc0000000000 R11: ffffed100a64180e R12: 0000000000000018 R13: ffff88803321c880 R14: dffffc0000000000 R15: 0000000000000001 FS: 00007fe1b7bf56c0(0000) GS:ffff88808d20c000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f41a89212c0 CR3: 00000000418d5000 CR4: 0000000000352ef0 Call Trace: btrfs_read_lock_root_node+0x27/0xd0 fs/btrfs/locking.c:263 btrfs_build_ref_tree+0x113/0x1680 fs/btrfs/ref-verify.c:988 open_ctree+0x2504/0x3a10 fs/btrfs/disk-io.c:3594 btrfs_fill_super fs/btrfs/super.c:977 [inline] btrfs_get_tree_super fs/btrfs/super.c:1940 [inline] btrfs_get_tree_subvol fs/btrfs/super.c:2077 [inline] btrfs_get_tree+0xf55/0x1820 fs/btrfs/super.c:2111 vfs_get_tree+0x92/0x2b0 fs/super.c:1815 do_new_mount+0x2a2/0x9e0 fs/namespace.c:3808 do_mount fs/namespace.c:4136 [inline] __do_sys_mount fs/namespace.c:4347 [inline] __se_sys_mount+0x317/0x410 fs/namespace.c:4324 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fe1b6d9038a Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 de 1a 00 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fe1b7bf4e68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007fe1b7bf4ef0 RCX: 00007fe1b6d9038a RDX: 0000200000000080 RSI: 0000200000000040 RDI: 00007fe1b7bf4eb0 RBP: 0000200000000080 R08: 00007fe1b7bf4ef0 R09: 000000000001c005 R10: 000000000001c005 R11: 0000000000000246 R12: 0000200000000040 R13: 00007fe1b7bf4eb0 R14: 00000000000055ae R15: 00002000000002c0 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:btrfs_root_node+0x151/0x4a0 fs/btrfs/ctree.c:193 Code: 24 e8 a3 21 00 fe c6 05 a1 eb cd 0b 01 48 c7 c7 a0 2c cd 8b be 4b 03 00 00 48 c7 c2 e0 2c cd 8b e8 a4 eb dd fd 48 8b 44 24 18 <42> 80 3c 30 00 74 08 4c 89 e7 e8 60 11 65 fe 4d 8b 2c 24 e8 f7 71 RSP: 0000:ffffc9000d44f800 EFLAGS: 00010283 RAX: 0000000000000003 RBX: ffffffff83bf9c2e RCX: 0000000000100000 RDX: ffffc9000e31a000 RSI: 000000000001a428 RDI: 000000000001a429 RBP: ffffc9000d44f8c0 R08: 0000000000000000 R09: ffffffff83bf9c2e R10: dffffc0000000000 R11: ffffed100a64180e R12: 0000000000000018 R13: ffff88803321c880 R14: dffffc0000000000 R15: 0000000000000001 FS: 00007fe1b7bf56c0(0000) GS:ffff88808d20c000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000056447c2a1348 CR3: 00000000418d5000 CR4: 0000000000352ef0 ---------------- Code disassembly (best guess): 0: 24 e8 and $0xe8,%al 2: a3 21 00 fe c6 05 a1 movabs %eax,0xcdeba105c6fe0021 9: eb cd b: 0b 01 or (%rcx),%eax d: 48 c7 c7 a0 2c cd 8b mov $0xffffffff8bcd2ca0,%rdi 14: be 4b 03 00 00 mov $0x34b,%esi 19: 48 c7 c2 e0 2c cd 8b mov $0xffffffff8bcd2ce0,%rdx 20: e8 a4 eb dd fd call 0xfdddebc9 25: 48 8b 44 24 18 mov 0x18(%rsp),%rax * 2a: 42 80 3c 30 00 cmpb $0x0,(%rax,%r14,1) <-- trapping instruction 2f: 74 08 je 0x39 31: 4c 89 e7 mov %r12,%rdi 34: e8 60 11 65 fe call 0xfe651199 39: 4d 8b 2c 24 mov (%r12),%r13 3d: e8 .byte 0xe8 3e: f7 .byte 0xf7 3f: 71 .byte 0x71