R10: 0000000000002000 R11: 0000000000000246 R12: 0000000000000001 R13: 000000000000006e R14: 00007f7b12058130 R15: 00007fffba259898 ------------[ cut here ]------------ kernel BUG at fs/btrfs/extent_io.c:1163! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 5422 Comm: syz.2.22 Not tainted 5.15.172-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/30/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 90 a1 18 fe 0f 0b e9 cc fe ff ff e8 84 a1 18 fe e8 97 ba 98 fd eb c1 e8 78 a1 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:ffffc900037175e0 EFLAGS: 00010293 RAX: ffffffff8367d228 RBX: 0000000000000000 RCX: ffff888026b71dc0 RDX: 0000000000000000 RSI: ffffffff8ad90520 RDI: ffffffff8ad904e0 RBP: ffffc90003717718 R08: 00000000000000c8 R09: fffffbfff193eb8b R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000002 R13: dffffc0000000000 R14: 000000000001f000 R15: dffffc0000000000 FS: 00007f7b1110e6c0(0000) GS:ffff8880b9100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f7b1110dfa8 CR3: 000000006eb68000 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:0x7f7b11ec99f9 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:00007f7b1110e048 EFLAGS: 00000246 ORIG_RAX: 0000000000000148 RAX: ffffffffffffffda RBX: 00007f7b12058130 RCX: 00007f7b11ec99f9 RDX: 0000000000000001 RSI: 0000000020000240 RDI: 0000000000000005 RBP: 00007f7b1110e0a0 R08: 0000000000000000 R09: 0000000000000003 R10: 0000000000002000 R11: 0000000000000246 R12: 0000000000000001 R13: 000000000000006e R14: 00007f7b12058130 R15: 00007fffba259898 Modules linked in: ---[ end trace 944f06a0566e78ec ]--- 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 90 a1 18 fe 0f 0b e9 cc fe ff ff e8 84 a1 18 fe e8 97 ba 98 fd eb c1 e8 78 a1 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:ffffc900037175e0 EFLAGS: 00010293 RAX: ffffffff8367d228 RBX: 0000000000000000 RCX: ffff888026b71dc0 RDX: 0000000000000000 RSI: ffffffff8ad90520 RDI: ffffffff8ad904e0 RBP: ffffc90003717718 R08: 00000000000000c8 R09: fffffbfff193eb8b R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000002 R13: dffffc0000000000 R14: 000000000001f000 R15: dffffc0000000000 FS: 00007f7b1110e6c0(0000) GS:ffff8880b9100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f7b1110dfa8 CR3: 000000006eb68000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400