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 (5109) BTRFS info (device loop0): first mount of filesystem a6a605fc-d5f1-4e66-8595-3726e2b761d6 BTRFS info (device loop0): using blake2b (blake2b-256-generic) checksum algorithm BTRFS info (device loop0): using free-space-tree Oops: general protection fault, probably for non-canonical address 0xdffffc0000000041: 0000 [#1] PREEMPT SMP KASAN NOPTI KASAN: null-ptr-deref in range [0x0000000000000208-0x000000000000020f] CPU: 0 UID: 0 PID: 5109 Comm: syz.0.0 Not tainted 6.12.0-rc3-syzkaller-00420-g715ca9dd687f #0 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_search_slot+0xc5/0x30d0 fs/btrfs/ctree.c:2013 Code: 08 43 c7 44 2c 10 04 f2 04 f3 e8 f6 ed e6 fd 48 89 5c 24 38 48 81 c3 08 02 00 00 48 89 d8 48 c1 e8 03 48 89 84 24 d0 00 00 00 <42> 80 3c 28 00 74 08 48 89 df e8 5c b2 50 fe 48 8b 03 48 89 84 24 RSP: 0018:ffffc90002dbf9e0 EFLAGS: 00010206 RAX: 0000000000000041 RBX: 0000000000000208 RCX: 0000000000040000 RDX: ffffc9000b829000 RSI: 00000000000003c5 RDI: 00000000000003c6 RBP: ffffc90002dbfbb0 R08: 0000000000000000 R09: 0000000000000000 R10: dffffc0000000000 R11: ffffed1009a0d80e R12: 1ffff920005b7f58 R13: dffffc0000000000 R14: 0000000000000000 R15: ffff888041061bb0 FS: 00007fba591206c0(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fba58525178 CR3: 0000000041302000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: extent_from_logical+0x1c8/0x880 fs/btrfs/backref.c:2216 iterate_inodes_from_logical+0x13b/0x330 fs/btrfs/backref.c:2560 btrfs_ioctl_logical_to_ino+0x133/0x2a0 fs/btrfs/ioctl.c:3489 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:907 [inline] __se_sys_ioctl+0xf9/0x170 fs/ioctl.c:893 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fba5837dff9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 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:00007fba59120038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007fba58535f80 RCX: 00007fba5837dff9 RDX: 0000000020000080 RSI: 00000000c0389424 RDI: 0000000000000004 RBP: 00007fba583f0296 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fba58535f80 R15: 00007ffd67370798 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:btrfs_search_slot+0xc5/0x30d0 fs/btrfs/ctree.c:2013 Code: 08 43 c7 44 2c 10 04 f2 04 f3 e8 f6 ed e6 fd 48 89 5c 24 38 48 81 c3 08 02 00 00 48 89 d8 48 c1 e8 03 48 89 84 24 d0 00 00 00 <42> 80 3c 28 00 74 08 48 89 df e8 5c b2 50 fe 48 8b 03 48 89 84 24 RSP: 0018:ffffc90002dbf9e0 EFLAGS: 00010206 RAX: 0000000000000041 RBX: 0000000000000208 RCX: 0000000000040000 RDX: ffffc9000b829000 RSI: 00000000000003c5 RDI: 00000000000003c6 RBP: ffffc90002dbfbb0 R08: 0000000000000000 R09: 0000000000000000 R10: dffffc0000000000 R11: ffffed1009a0d80e R12: 1ffff920005b7f58 R13: dffffc0000000000 R14: 0000000000000000 R15: ffff888041061bb0 FS: 00007fba591206c0(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000558c0ad14058 CR3: 0000000041302000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 08 43 c7 or %al,-0x39(%rbx) 3: 44 2c 10 rex.R sub $0x10,%al 6: 04 f2 add $0xf2,%al 8: 04 f3 add $0xf3,%al a: e8 f6 ed e6 fd call 0xfde6ee05 f: 48 89 5c 24 38 mov %rbx,0x38(%rsp) 14: 48 81 c3 08 02 00 00 add $0x208,%rbx 1b: 48 89 d8 mov %rbx,%rax 1e: 48 c1 e8 03 shr $0x3,%rax 22: 48 89 84 24 d0 00 00 mov %rax,0xd0(%rsp) 29: 00 * 2a: 42 80 3c 28 00 cmpb $0x0,(%rax,%r13,1) <-- trapping instruction 2f: 74 08 je 0x39 31: 48 89 df mov %rbx,%rdi 34: e8 5c b2 50 fe call 0xfe50b295 39: 48 8b 03 mov (%rbx),%rax 3c: 48 rex.W 3d: 89 .byte 0x89 3e: 84 .byte 0x84 3f: 24 .byte 0x24