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 (5313) 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 BTRFS info (device loop0 state S): using free-space-tree 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 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: 5313 Comm: syz.0.0 Not tainted 6.15.0-rc3-syzkaller-00342-g5bc1018675ec #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+0x7f/0x3b0 fs/btrfs/ctree.c:193 Code: f7 44 e6 fd 48 83 c4 08 e8 7e e7 9d 07 89 c5 31 ff 89 c6 e8 33 fc 07 fe 85 ed 74 17 e8 1a 1f ef fd 84 c0 74 1c e8 e1 f7 07 fe <42> 80 3c 2b 00 75 4b eb 51 e8 d3 f7 07 fe 42 80 3c 2b 00 75 3d eb RSP: 0018:ffffc9000feaf750 EFLAGS: 00010287 RAX: ffffffff83b7c6ef RBX: 0000000000000003 RCX: 0000000000100000 RDX: ffffc9000de02000 RSI: 000000000001ad46 RDI: 000000000001ad47 RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: ffffffff83b7c6ac R12: ffffffff83b7c6ac R13: dffffc0000000000 R14: 0000000000000018 R15: ffff8880422c8840 FS: 00007f24439eb6c0(0000) GS:ffff88808d6cc000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055b46ef64338 CR3: 000000003f146000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: btrfs_read_lock_root_node+0x27/0xd0 fs/btrfs/locking.c:263 btrfs_build_ref_tree+0x112/0x12b0 fs/btrfs/ref-verify.c:1006 open_ctree+0x1d7e/0x2800 fs/btrfs/disk-io.c:3591 btrfs_fill_super+0x19d/0x2e0 fs/btrfs/super.c:972 btrfs_get_tree_super fs/btrfs/super.c:1897 [inline] btrfs_get_tree+0x107c/0x1620 fs/btrfs/super.c:2092 vfs_get_tree+0x8f/0x2b0 fs/super.c:1759 fc_mount+0x1c/0xb0 fs/namespace.c:1293 btrfs_get_tree_subvol fs/btrfs/super.c:2050 [inline] btrfs_get_tree+0x67d/0x1620 fs/btrfs/super.c:2093 vfs_get_tree+0x8f/0x2b0 fs/super.c:1759 do_new_mount+0x24a/0xa40 fs/namespace.c:3884 do_mount fs/namespace.c:4224 [inline] __do_sys_mount fs/namespace.c:4435 [inline] __se_sys_mount+0x317/0x410 fs/namespace.c:4412 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xf6/0x210 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f2442b9010a 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:00007f24439eae68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007f24439eaef0 RCX: 00007f2442b9010a RDX: 0000200000000080 RSI: 0000200000000040 RDI: 00007f24439eaeb0 RBP: 0000200000000080 R08: 00007f24439eaef0 R09: 000000000081c005 R10: 000000000081c005 R11: 0000000000000246 R12: 0000200000000040 R13: 00007f24439eaeb0 R14: 00000000000055ae R15: 00002000000002c0 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:btrfs_root_node+0x7f/0x3b0 fs/btrfs/ctree.c:193 Code: f7 44 e6 fd 48 83 c4 08 e8 7e e7 9d 07 89 c5 31 ff 89 c6 e8 33 fc 07 fe 85 ed 74 17 e8 1a 1f ef fd 84 c0 74 1c e8 e1 f7 07 fe <42> 80 3c 2b 00 75 4b eb 51 e8 d3 f7 07 fe 42 80 3c 2b 00 75 3d eb RSP: 0018:ffffc9000feaf750 EFLAGS: 00010287 RAX: ffffffff83b7c6ef RBX: 0000000000000003 RCX: 0000000000100000 RDX: ffffc9000de02000 RSI: 000000000001ad46 RDI: 000000000001ad47 RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: ffffffff83b7c6ac R12: ffffffff83b7c6ac R13: dffffc0000000000 R14: 0000000000000018 R15: ffff8880422c8840 FS: 00007f24439eb6c0(0000) GS:ffff88808d6cc000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055de575c91a8 CR3: 000000003f146000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: f7 44 e6 fd 48 83 c4 testl $0x8c48348,-0x3(%rsi,%riz,8) 7: 08 8: e8 7e e7 9d 07 call 0x79de78b d: 89 c5 mov %eax,%ebp f: 31 ff xor %edi,%edi 11: 89 c6 mov %eax,%esi 13: e8 33 fc 07 fe call 0xfe07fc4b 18: 85 ed test %ebp,%ebp 1a: 74 17 je 0x33 1c: e8 1a 1f ef fd call 0xfdef1f3b 21: 84 c0 test %al,%al 23: 74 1c je 0x41 25: e8 e1 f7 07 fe call 0xfe07f80b * 2a: 42 80 3c 2b 00 cmpb $0x0,(%rbx,%r13,1) <-- trapping instruction 2f: 75 4b jne 0x7c 31: eb 51 jmp 0x84 33: e8 d3 f7 07 fe call 0xfe07f80b 38: 42 80 3c 2b 00 cmpb $0x0,(%rbx,%r13,1) 3d: 75 3d jne 0x7c 3f: eb .byte 0xeb