BTRFS info (device loop5): using free space tree BTRFS info (device loop5): has skinny extents BTRFS critical (device loop5): unable to find logical 5263360 length 4096 BTRFS critical (device loop5): unable to find logical 5271552 length 4096 BTRFS critical (device loop5): unable to find logical 5271552 length 4096 BUG: unable to handle kernel NULL pointer dereference at 0000000000000138 PGD 0 P4D 0 Oops: 0000 [#1] PREEMPT SMP CPU: 1 PID: 30445 Comm: btrfs-ino-cache Not tainted 4.20.0-rc6-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023 RIP: 0010:__lock_acquire.isra.11+0x305/0x650 kernel/locking/lockdep.c:3222 Code: c7 c7 a0 ce 21 83 e8 b3 1f 01 00 65 48 8b 3c 25 00 4f 01 00 e8 4d 10 00 00 e8 da 13 00 00 e8 28 cf 4c 01 45 31 e4 eb a8 89 f0 <48> 8b 44 c7 08 48 85 c0 0f 85 48 fd ff ff e9 22 fd ff ff 44 89 4d RSP: 0018:ffffc9000100fbe0 EFLAGS: 00010097 RAX: 0000000000000000 RBX: 0000000000000001 RCX: 0000000000000000 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000130 RBP: ffffc9000100fc10 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: ffff88813a7f0870 R12: 0000000000000000 R13: 0000000000000000 R14: ffff88813a7f0000 R15: 0000000000000130 FS: 0000000000000000(0000) GS:ffff88813bb00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000138 CR3: 000000012bd48000 CR4: 00000000003406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: lock_acquire+0xaf/0x150 kernel/locking/lockdep.c:3844 __raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline] _raw_spin_lock+0x2d/0x40 kernel/locking/spinlock.c:144 spin_lock include/linux/spinlock.h:329 [inline] btrfs_release_extent_buffer_pages+0xf2/0x2a0 fs/btrfs/extent_io.c:4655 release_extent_buffer fs/btrfs/extent_io.c:5081 [inline] release_extent_buffer+0x42/0xc0 fs/btrfs/extent_io.c:5061 free_extent_buffer fs/btrfs/extent_io.c:5127 [inline] free_extent_buffer+0x46/0x90 fs/btrfs/extent_io.c:5096 btrfs_release_path+0x2c/0x80 fs/btrfs/ctree.c:82 read_block_for_search.isra.12+0x1c7/0x360 fs/btrfs/ctree.c:2430 btrfs_search_slot+0x529/0xa70 fs/btrfs/ctree.c:2838 caching_kthread+0xce/0x330 fs/btrfs/inode-map.c:46 kthread+0x119/0x130 kernel/kthread.c:246 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:352 Modules linked in: CR2: 0000000000000138 ---[ end trace f152c9d1e57c84dd ]--- RIP: 0010:__lock_acquire.isra.11+0x305/0x650 kernel/locking/lockdep.c:3222 Code: c7 c7 a0 ce 21 83 e8 b3 1f 01 00 65 48 8b 3c 25 00 4f 01 00 e8 4d 10 00 00 e8 da 13 00 00 e8 28 cf 4c 01 45 31 e4 eb a8 89 f0 <48> 8b 44 c7 08 48 85 c0 0f 85 48 fd ff ff e9 22 fd ff ff 44 89 4d RSP: 0018:ffffc9000100fbe0 EFLAGS: 00010097 RAX: 0000000000000000 RBX: 0000000000000001 RCX: 0000000000000000 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000130 RBP: ffffc9000100fc10 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: ffff88813a7f0870 R12: 0000000000000000 R13: 0000000000000000 R14: ffff88813a7f0000 R15: 0000000000000130 FS: 0000000000000000(0000) GS:ffff88813bb00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000138 CR3: 000000012bd48000 CR4: 00000000003406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: c7 c7 a0 ce 21 83 mov $0x8321cea0,%edi 6: e8 b3 1f 01 00 call 0x11fbe b: 65 48 8b 3c 25 00 4f mov %gs:0x14f00,%rdi 12: 01 00 14: e8 4d 10 00 00 call 0x1066 19: e8 da 13 00 00 call 0x13f8 1e: e8 28 cf 4c 01 call 0x14ccf4b 23: 45 31 e4 xor %r12d,%r12d 26: eb a8 jmp 0xffffffd0 28: 89 f0 mov %esi,%eax * 2a: 48 8b 44 c7 08 mov 0x8(%rdi,%rax,8),%rax <-- trapping instruction 2f: 48 85 c0 test %rax,%rax 32: 0f 85 48 fd ff ff jne 0xfffffd80 38: e9 22 fd ff ff jmp 0xfffffd5f 3d: 44 rex.R 3e: 89 .byte 0x89 3f: 4d rex.WRB