------------[ cut here ]------------ kernel BUG at fs/ext4/inode.c:2766! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 30209 Comm: syz-executor.2 Tainted: G W 5.10.208-syzkaller-00133-g1a7db4583e18 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 RIP: 0010:ext4_writepages+0x3bdf/0x3c00 fs/ext4/inode.c:2765 Code: 8e 8c ff 31 ff 89 de e8 cf 8e 8c ff 45 84 f6 75 27 e8 35 8c 8c ff 49 be 00 00 00 00 00 fc ff df e9 0e f7 ff ff e8 21 8c 8c ff <0f> 0b e8 1a 8c 8c ff e8 31 65 22 ff eb 9b e8 0e 8c 8c ff e8 25 65 RSP: 0018:ffffc90004957740 EFLAGS: 00010283 RAX: ffffffff81de1a1f RBX: 0000008000000000 RCX: 0000000000040000 RDX: ffffc90003821000 RSI: 000000000000036d RDI: 000000000000036e RBP: ffffc90004957b30 R08: ffffffff81dde493 R09: ffffed102a8d7536 R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000001 R13: ffffc90004957ca0 R14: 000000d410000000 R15: ffffc90004957a00 FS: 00007f3c090f66c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000000 CR3: 000000014cb14000 CR4: 00000000003506b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: do_writepages+0x12e/0x270 mm/page-writeback.c:2358 __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:3238 ext4_release_file+0x84/0x310 fs/ext4/file.c:144 __fput+0x309/0x760 fs/file_table.c:281 ____fput+0x15/0x20 fs/file_table.c:314 task_work_run+0x129/0x190 kernel/task_work.c:164 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+0xc5/0x1d0 kernel/entry/common.c:274 do_syscall_64+0x40/0x70 arch/x86/entry/common.c:56 entry_SYSCALL_64_after_hwframe+0x61/0xc6 RIP: 0033:0x7f3c0a395da9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 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:00007f3c090f60c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000021 RAX: 0000000000000004 RBX: 00007f3c0a4c4050 RCX: 00007f3c0a395da9 RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000006 RBP: 00007f3c0a3e247a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000006e R14: 00007f3c0a4c4050 R15: 00007ffc7c47d0d8 Modules linked in: ---[ end trace 133df69d8d1817f1 ]--- RIP: 0010:ext4_writepages+0x3bdf/0x3c00 fs/ext4/inode.c:2765 Code: 8e 8c ff 31 ff 89 de e8 cf 8e 8c ff 45 84 f6 75 27 e8 35 8c 8c ff 49 be 00 00 00 00 00 fc ff df e9 0e f7 ff ff e8 21 8c 8c ff <0f> 0b e8 1a 8c 8c ff e8 31 65 22 ff eb 9b e8 0e 8c 8c ff e8 25 65 RSP: 0018:ffffc90004957740 EFLAGS: 00010283 RAX: ffffffff81de1a1f RBX: 0000008000000000 RCX: 0000000000040000 RDX: ffffc90003821000 RSI: 000000000000036d RDI: 000000000000036e RBP: ffffc90004957b30 R08: ffffffff81dde493 R09: ffffed102a8d7536 R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000001 R13: ffffc90004957ca0 R14: 000000d410000000 R15: ffffc90004957a00 FS: 00007f3c090f66c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000000 CR3: 000000014cb14000 CR4: 00000000003506b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400