RAX: ffffffffffffffda RBX: 00007f4a3454d130 RCX: 00007f4a343be9f9 RDX: 0000000000000001 RSI: 0000000020000240 RDI: 0000000000000005 RBP: 00007f4a336030a0 R08: 0000000000000000 R09: 0000000000000003 R10: 0000000000002000 R11: 0000000000000246 R12: 0000000000000001 R13: 000000000000006e R14: 00007f4a3454d130 R15: 00007ffd769ce168 ------------[ cut here ]------------ kernel BUG at fs/btrfs/extent_io.c:1163! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 5495 Comm: syz.0.20 Not tainted 5.15.169-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 RIP: 0010:set_extent_bit+0x15e8/0x15f0 fs/btrfs/extent_io.c:1163 Code: fe 48 8b 7c 24 18 89 de e8 65 e4 ff ff e8 20 c9 18 fe 0f 0b e9 cc fe ff ff e8 14 c9 18 fe e8 e7 e1 98 fd eb c1 e8 08 c9 18 fe <0f> 0b 66 0f 1f 44 00 00 55 41 57 41 56 41 55 41 54 53 48 83 ec 28 RSP: 0018:ffffc900036a75e0 EFLAGS: 00010293 RAX: ffffffff8367aad8 RBX: 0000000000000000 RCX: ffff88801eab3b80 RDX: 0000000000000000 RSI: ffffffff8ad90460 RDI: ffffffff8ad90420 RBP: ffffc900036a7718 R08: 00000000000000c8 R09: fffffbfff193eb87 R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000002 R13: dffffc0000000000 R14: 0000000000015000 R15: dffffc0000000000 FS: 00007f4a336036c0(0000) GS:ffff8880b9000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f4a33602fa8 CR3: 000000005f139000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: lock_extent_bits+0xc9/0x1e0 fs/btrfs/extent_io.c:1465 lock_and_cleanup_extent_if_need+0x10b/0x6f0 fs/btrfs/file.c:1458 btrfs_buffered_write+0x768/0x1270 fs/btrfs/file.c:1779 btrfs_direct_write fs/btrfs/file.c:2046 [inline] btrfs_file_write_iter+0x73f/0xd00 fs/btrfs/file.c:2094 do_iter_readv_writev+0x594/0x7a0 do_iter_write+0x1e6/0x760 fs/read_write.c:855 vfs_writev fs/read_write.c:928 [inline] do_pwritev+0x219/0x360 fs/read_write.c:1025 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7f4a343be9f9 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:00007f4a33603048 EFLAGS: 00000246 ORIG_RAX: 0000000000000148 RAX: ffffffffffffffda RBX: 00007f4a3454d130 RCX: 00007f4a343be9f9 RDX: 0000000000000001 RSI: 0000000020000240 RDI: 0000000000000005 RBP: 00007f4a336030a0 R08: 0000000000000000 R09: 0000000000000003 R10: 0000000000002000 R11: 0000000000000246 R12: 0000000000000001 R13: 000000000000006e R14: 00007f4a3454d130 R15: 00007ffd769ce168 Modules linked in: ---[ end trace a2c000456405aa90 ]--- RIP: 0010:set_extent_bit+0x15e8/0x15f0 fs/btrfs/extent_io.c:1163 Code: fe 48 8b 7c 24 18 89 de e8 65 e4 ff ff e8 20 c9 18 fe 0f 0b e9 cc fe ff ff e8 14 c9 18 fe e8 e7 e1 98 fd eb c1 e8 08 c9 18 fe <0f> 0b 66 0f 1f 44 00 00 55 41 57 41 56 41 55 41 54 53 48 83 ec 28 RSP: 0018:ffffc900036a75e0 EFLAGS: 00010293 RAX: ffffffff8367aad8 RBX: 0000000000000000 RCX: ffff88801eab3b80 RDX: 0000000000000000 RSI: ffffffff8ad90460 RDI: ffffffff8ad90420 RBP: ffffc900036a7718 R08: 00000000000000c8 R09: fffffbfff193eb87 R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000002 R13: dffffc0000000000 R14: 0000000000015000 R15: dffffc0000000000 FS: 00007f4a336036c0(0000) GS:ffff8880b9000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f4a33602fa8 CR3: 000000005f139000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400