RAX: ffffffffffffffda RBX: 00007f326f5da718 RCX: 00007f326f5552b9 RDX: 0000000000000001 RSI: 0000000020000240 RDI: 0000000000000004 RBP: 00007f326f5da710 R08: 0000000000000000 R09: 0000000000000003 R10: 0000000000002000 R11: 0000000000000246 R12: 00007f326f5a7880 R13: 00007f326f4e9210 R14: 0000000000000001 R15: 0030656c69662f2e ------------[ cut here ]------------ kernel BUG at fs/btrfs/extent_io.c:1163! invalid opcode: 0000 [#1] SMP CPU: 0 PID: 19130 Comm: syz-executor421 Not tainted 5.15.166-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 RIP: 0010:set_extent_bit+0x69d/0x6c0 fs/btrfs/extent_io.c:1163 Code: 48 39 1c 24 0f 82 eb fc ff ff e9 66 fc ff ff e8 79 d8 f0 00 bf 20 0a 00 00 e8 3f cd ff ff 48 85 c0 49 89 c5 0f 85 ec fc ff ff <0f> 0b 48 8b 44 24 28 bb ef ff ff ff 4c 89 20 e9 aa fe ff ff 66 66 RSP: 0018:ffffc90000cefb30 EFLAGS: 00010246 RAX: 0000000000000000 RBX: 0000000000051000 RCX: 0000000000000088 RDX: 0000000000000000 RSI: ffffffff81650138 RDI: 0000000000000001 RBP: ffff88817d7ed400 R08: 0000000000000088 R09: 0000000000000003 R10: ffffffff8349c580 R11: 3fffffffffffffff R12: 0000000000051000 R13: 0000000000000000 R14: ffffc90000cefcc8 R15: ffff888174cd4dd0 FS: 00007f326f4e96c0(0000) GS:ffff888237c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020040000 CR3: 000000017c52b000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: lock_extent_bits+0x5f/0x90 fs/btrfs/extent_io.c:1465 lock_and_cleanup_extent_if_need+0xe0/0x200 fs/btrfs/file.c:1458 btrfs_buffered_write+0x290/0x790 fs/btrfs/file.c:1779 btrfs_direct_write fs/btrfs/file.c:2056 [inline] btrfs_file_write_iter+0x3bc/0x5b0 fs/btrfs/file.c:2104 call_write_iter include/linux/fs.h:2172 [inline] do_iter_readv_writev+0x14d/0x1a0 fs/read_write.c:729 do_iter_write+0x7a/0x1c0 fs/read_write.c:855 vfs_writev+0xa1/0x180 fs/read_write.c:928 do_pwritev+0x8a/0xd0 fs/read_write.c:1025 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x33/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7f326f5552b9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 61 1b 00 00 90 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 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f326f4e91f8 EFLAGS: 00000246 ORIG_RAX: 0000000000000148 RAX: ffffffffffffffda RBX: 00007f326f5da718 RCX: 00007f326f5552b9 RDX: 0000000000000001 RSI: 0000000020000240 RDI: 0000000000000004 RBP: 00007f326f5da710 R08: 0000000000000000 R09: 0000000000000003 R10: 0000000000002000 R11: 0000000000000246 R12: 00007f326f5a7880 R13: 00007f326f4e9210 R14: 0000000000000001 R15: 0030656c69662f2e Modules linked in: ---[ end trace 734c0add00a99065 ]--- RIP: 0010:set_extent_bit+0x69d/0x6c0 fs/btrfs/extent_io.c:1163 Code: 48 39 1c 24 0f 82 eb fc ff ff e9 66 fc ff ff e8 79 d8 f0 00 bf 20 0a 00 00 e8 3f cd ff ff 48 85 c0 49 89 c5 0f 85 ec fc ff ff <0f> 0b 48 8b 44 24 28 bb ef ff ff ff 4c 89 20 e9 aa fe ff ff 66 66 RSP: 0018:ffffc90000cefb30 EFLAGS: 00010246 RAX: 0000000000000000 RBX: 0000000000051000 RCX: 0000000000000088 RDX: 0000000000000000 RSI: ffffffff81650138 RDI: 0000000000000001 RBP: ffff88817d7ed400 R08: 0000000000000088 R09: 0000000000000003 R10: ffffffff8349c580 R11: 3fffffffffffffff R12: 0000000000051000 R13: 0000000000000000 R14: ffffc90000cefcc8 R15: ffff888174cd4dd0 FS: 00007f326f4e96c0(0000) GS:ffff888237c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020040000 CR3: 000000017c52b000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400