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:00007fc963357048 EFLAGS: 00000246 ORIG_RAX: 0000000000000148 RAX: ffffffffffffffda RBX: 00007fc9642a1130 RCX: 00007fc9641129f9 RDX: 0000000000000001 RSI: 0000000020000240 RDI: 0000000000000005 RBP: 00007fc9633570a0 R08: 0000000000000000 R09: 0000000000000003 R10: 0000000000002000 R11: 0000000000000246 R12: 0000000000000001 R13: 000000000000006e R14: 00007fc9642a1130 R15: 00007ffce3520a68 ------------[ cut here ]------------ kernel BUG at fs/btrfs/extent_io.c:1163! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 4975 Comm: syz.1.16 Not tainted 5.15.175-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/25/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 00 5a 0e fe 0f 0b e9 cc fe ff ff e8 f4 59 0e fe e8 c7 61 8e fd eb c1 e8 e8 59 0e 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:ffffc9000352f5e0 EFLAGS: 00010293 RAX: ffffffff83722af8 RBX: 0000000000000000 RCX: ffff888074940000 RDX: 0000000000000000 RSI: ffffffff8af9efe0 RDI: ffffffff8af9efa0 RBP: ffffc9000352f718 R08: 00000000000000c8 R09: fffffbfff197ebb3 R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000002 R13: dffffc0000000000 R14: 000000000000b000 R15: dffffc0000000000 FS: 00007fc9633576c0(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020010000 CR3: 000000005f262000 CR4: 00000000003506e0 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:0x7fc9641129f9 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:00007fc963357048 EFLAGS: 00000246 ORIG_RAX: 0000000000000148 RAX: ffffffffffffffda RBX: 00007fc9642a1130 RCX: 00007fc9641129f9 RDX: 0000000000000001 RSI: 0000000020000240 RDI: 0000000000000005 RBP: 00007fc9633570a0 R08: 0000000000000000 R09: 0000000000000003 R10: 0000000000002000 R11: 0000000000000246 R12: 0000000000000001 R13: 000000000000006e R14: 00007fc9642a1130 R15: 00007ffce3520a68 Modules linked in: ---[ end trace 0646dbe30561c4be ]--- 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 00 5a 0e fe 0f 0b e9 cc fe ff ff e8 f4 59 0e fe e8 c7 61 8e fd eb c1 e8 e8 59 0e 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:ffffc9000352f5e0 EFLAGS: 00010293 RAX: ffffffff83722af8 RBX: 0000000000000000 RCX: ffff888074940000 RDX: 0000000000000000 RSI: ffffffff8af9efe0 RDI: ffffffff8af9efa0 RBP: ffffc9000352f718 R08: 00000000000000c8 R09: fffffbfff197ebb3 R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000002 R13: dffffc0000000000 R14: 000000000000b000 R15: dffffc0000000000 FS: 00007fc9633576c0(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020010000 CR3: 000000005f262000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess), 1 bytes skipped: 0: ff c3 inc %ebx 2: 66 2e 0f 1f 84 00 00 cs nopw 0x0(%rax,%rax,1) 9: 00 00 00 c: 0f 1f 40 00 nopl 0x0(%rax) 10: 48 89 f8 mov %rdi,%rax 13: 48 89 f7 mov %rsi,%rdi 16: 48 89 d6 mov %rdx,%rsi 19: 48 89 ca mov %rcx,%rdx 1c: 4d 89 c2 mov %r8,%r10 1f: 4d 89 c8 mov %r9,%r8 22: 4c 8b 4c 24 08 mov 0x8(%rsp),%r9 27: 0f 05 syscall * 29: 48 3d 01 f0 ff ff cmp $0xfffffffffffff001,%rax <-- trapping instruction 2f: 73 01 jae 0x32 31: c3 ret 32: 48 c7 c1 a8 ff ff ff mov $0xffffffffffffffa8,%rcx 39: f7 d8 neg %eax 3b: 64 89 01 mov %eax,%fs:(%rcx) 3e: 48 rex.W