------------[ cut here ]------------ kernel BUG at fs/ext4/inode.c:2777! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 2390 Comm: syz.3.315 Not tainted 5.10.226-syzkaller-1003431-ge5e5644ea27f #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 RIP: 0010:ext4_writepages+0x3bdf/0x3c00 fs/ext4/inode.c:2776 Code: 3a 8c ff 31 ff 89 de e8 ff 39 8c ff 45 84 f6 75 27 e8 65 37 8c ff 49 be 00 00 00 00 00 fc ff df e9 0e f7 ff ff e8 51 37 8c ff <0f> 0b e8 4a 37 8c ff e8 71 06 22 ff eb 9b e8 3e 37 8c ff e8 65 06 RSP: 0018:ffffc90002aa7740 EFLAGS: 00010293 RAX: ffffffff81de759f RBX: 0000008000000000 RCX: ffff88811245cf00 RDX: 0000000000000000 RSI: 0000008000000000 RDI: 0000000000000000 RBP: ffffc90002aa7b30 R08: ffffffff81de4013 R09: ffffed102571b3bc R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000001 R13: ffffc90002aa7ca0 R14: 000000d410000000 R15: ffffc90002aa7a00 FS: 0000555583fc1500(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000200000c0 CR3: 000000010eb90000 CR4: 00000000003506a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: do_writepages+0x12e/0x270 mm/page-writeback.c:2380 __filemap_fdatawrite_range+0x33c/0x3f0 mm/filemap.c:427 __filemap_fdatawrite mm/filemap.c:435 [inline] filemap_flush+0x23/0x30 mm/filemap.c:462 ext4_alloc_da_blocks+0x77/0x1a0 fs/ext4/inode.c:3249 ext4_release_file+0x84/0x310 fs/ext4/file.c:144 __fput+0x33d/0x7b0 fs/file_table.c:281 ____fput+0x15/0x20 fs/file_table.c:314 task_work_run+0x129/0x190 kernel/task_work.c:189 tracehook_notify_resume include/linux/tracehook.h:188 [inline] exit_to_user_mode_loop+0xbf/0xd0 kernel/entry/common.c:172 exit_to_user_mode_prepare kernel/entry/common.c:199 [inline] syscall_exit_to_user_mode+0xa2/0x1a0 kernel/entry/common.c:274 do_syscall_64+0x40/0x70 arch/x86/entry/common.c:56 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7f559bc82ff9 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:00007fff95861608 EFLAGS: 00000246 ORIG_RAX: 00000000000001b4 RAX: 0000000000000000 RBX: 0000000000018273 RCX: 00007f559bc82ff9 RDX: 0000000000000000 RSI: 000000000000001e RDI: 0000000000000003 RBP: 00007f559be3ca80 R08: 0000000000000001 R09: 00007fff958618ff R10: 00007f559bb05000 R11: 0000000000000246 R12: 00000000000183f8 R13: 00007fff95861710 R14: 0000000000000032 R15: ffffffffffffffff Modules linked in: ---[ end trace ca6b3ba9c9aa0e21 ]--- RIP: 0010:ext4_writepages+0x3bdf/0x3c00 fs/ext4/inode.c:2776 Code: 3a 8c ff 31 ff 89 de e8 ff 39 8c ff 45 84 f6 75 27 e8 65 37 8c ff 49 be 00 00 00 00 00 fc ff df e9 0e f7 ff ff e8 51 37 8c ff <0f> 0b e8 4a 37 8c ff e8 71 06 22 ff eb 9b e8 3e 37 8c ff e8 65 06 RSP: 0018:ffffc90002aa7740 EFLAGS: 00010293 RAX: ffffffff81de759f RBX: 0000008000000000 RCX: ffff88811245cf00 RDX: 0000000000000000 RSI: 0000008000000000 RDI: 0000000000000000 RBP: ffffc90002aa7b30 R08: ffffffff81de4013 R09: ffffed102571b3bc R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000001 R13: ffffc90002aa7ca0 R14: 000000d410000000 R15: ffffc90002aa7a00 FS: 0000555583fc1500(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020000380 CR3: 000000010eb90000 CR4: 00000000003506a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400