------------[ cut here ]------------ kernel BUG at fs/ext4/inode.c:2776! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 23789 Comm: syz-executor.2 Not tainted 5.10.187-syzkaller-00057-g8a427269c016 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2023 RIP: 0010:ext4_writepages+0x3bdf/0x3c00 fs/ext4/inode.c:2775 Code: da 8c ff 31 ff 89 de e8 6f da 8c ff 45 84 f6 75 27 e8 d5 d7 8c ff 49 be 00 00 00 00 00 fc ff df e9 0e f7 ff ff e8 c1 d7 8c ff <0f> 0b e8 ba d7 8c ff e8 71 c9 22 ff eb 9b e8 ae d7 8c ff e8 65 c9 RSP: 0018:ffffc9000104f740 EFLAGS: 00010293 RAX: ffffffff81ddb5df RBX: 0000008000000000 RCX: ffff888113d23b40 RDX: 0000000000000000 RSI: 0000008000000000 RDI: 0000000000000000 RBP: ffffc9000104fb30 R08: ffffffff81dd8053 R09: ffffed102c68776d R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000001 R13: ffffc9000104fca0 R14: 000000d410000000 R15: ffffc9000104fa00 FS: 0000555555616480(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2c02f000 CR3: 000000010aa90000 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:3248 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+0xbc/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:0x7efd019c89da Code: 48 3d 00 f0 ff ff 77 48 c3 0f 1f 80 00 00 00 00 48 83 ec 18 89 7c 24 0c e8 03 7f 02 00 8b 7c 24 0c 89 c2 b8 03 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 36 89 d7 89 44 24 0c e8 63 7f 02 00 8b 44 24 RSP: 002b:00007ffe6ab50d50 EFLAGS: 00000293 ORIG_RAX: 0000000000000003 RAX: 0000000000000000 RBX: 0000000000000005 RCX: 00007efd019c89da RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000004 RBP: 00007efd01aea980 R08: 0000001b2c620000 R09: 00000000000002e9 R10: 00000000818f552c R11: 0000000000000293 R12: 00000000000ed8e9 R13: ffffffffffffffff R14: 00007efd0154d000 R15: 00000000000ed5a8 Modules linked in: ---[ end trace df939027fa449642 ]--- RIP: 0010:ext4_writepages+0x3bdf/0x3c00 fs/ext4/inode.c:2775 Code: da 8c ff 31 ff 89 de e8 6f da 8c ff 45 84 f6 75 27 e8 d5 d7 8c ff 49 be 00 00 00 00 00 fc ff df e9 0e f7 ff ff e8 c1 d7 8c ff <0f> 0b e8 ba d7 8c ff e8 71 c9 22 ff eb 9b e8 ae d7 8c ff e8 65 c9 RSP: 0018:ffffc9000104f740 EFLAGS: 00010293 RAX: ffffffff81ddb5df RBX: 0000008000000000 RCX: ffff888113d23b40 RDX: 0000000000000000 RSI: 0000008000000000 RDI: 0000000000000000 RBP: ffffc9000104fb30 R08: ffffffff81dd8053 R09: ffffed102c68776d R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000001 R13: ffffc9000104fca0 R14: 000000d410000000 R15: ffffc9000104fa00 FS: 0000555555616480(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f00cecc3038 CR3: 000000010aa90000 CR4: 00000000003506b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400