------------[ cut here ]------------ kernel BUG at fs/ext4/inode.c:2735! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 19307 Comm: syz-executor.1 Not tainted 5.15.130-syzkaller-00623-g1317bd27a72f #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023 RIP: 0010:ext4_writepages+0x3fe6/0x4000 fs/ext4/inode.c:2734 Code: 89 de e8 9d 0a 88 ff 45 84 f6 75 2c e8 03 08 88 ff 49 be 00 00 00 00 00 fc ff df 4c 8b 64 24 50 e9 e4 c5 ff ff e8 ea 07 88 ff <0f> 0b e8 e3 07 88 ff e8 2a 94 18 ff eb 9b e8 d7 07 88 ff e8 1e 94 RSP: 0018:ffffc90000b07620 EFLAGS: 00010293 RAX: ffffffff81e7ed46 RBX: 0000008000000000 RCX: ffff888163c4a780 RDX: 0000000000000000 RSI: 0000008000000000 RDI: 0000000000000000 RBP: ffffc90000b07a30 R08: ffffffff81e7e4b6 R09: ffffed102b7532f7 R10: 0000000000000000 R11: dffffc0000000001 R12: ffffc90000b07c60 R13: 0000000000000000 R14: 000000d410000000 R15: 0000000000000001 FS: 00005555570d4480(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f31d7a37178 CR3: 0000000118208000 CR4: 00000000003506b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: do_writepages+0x40e/0x670 mm/page-writeback.c:2366 filemap_fdatawrite_wbc+0x248/0x2a0 mm/filemap.c:400 __filemap_fdatawrite_range mm/filemap.c:433 [inline] __filemap_fdatawrite mm/filemap.c:439 [inline] filemap_flush+0x10c/0x150 mm/filemap.c:466 ext4_alloc_da_blocks+0x77/0x1a0 fs/ext4/inode.c:3152 ext4_release_file+0x84/0x310 fs/ext4/file.c:143 __fput+0x3fe/0x910 fs/file_table.c:280 ____fput+0x15/0x20 fs/file_table.c:308 task_work_run+0x129/0x190 kernel/task_work.c:164 tracehook_notify_resume include/linux/tracehook.h:189 [inline] exit_to_user_mode_loop+0xc4/0xe0 kernel/entry/common.c:175 exit_to_user_mode_prepare+0x5a/0xa0 kernel/entry/common.c:208 __syscall_exit_to_user_mode_work kernel/entry/common.c:290 [inline] syscall_exit_to_user_mode+0x26/0x160 kernel/entry/common.c:301 do_syscall_64+0x49/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7f101ecca9da 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:00007ffca50e1c70 EFLAGS: 00000293 ORIG_RAX: 0000000000000003 RAX: 0000000000000000 RBX: 0000000000000005 RCX: 00007f101ecca9da RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000004 RBP: 00007f101edec980 R08: 0000001b2d360000 R09: 00007ffca51d50b0 R10: 0000000000000000 R11: 0000000000000293 R12: 000000000006137e R13: ffffffffffffffff R14: 00007f101e84f000 R15: 000000000006103d Modules linked in: ---[ end trace 6eae7257906d116b ]--- RIP: 0010:ext4_writepages+0x3fe6/0x4000 fs/ext4/inode.c:2734 Code: 89 de e8 9d 0a 88 ff 45 84 f6 75 2c e8 03 08 88 ff 49 be 00 00 00 00 00 fc ff df 4c 8b 64 24 50 e9 e4 c5 ff ff e8 ea 07 88 ff <0f> 0b e8 e3 07 88 ff e8 2a 94 18 ff eb 9b e8 d7 07 88 ff e8 1e 94 RSP: 0018:ffffc90000b07620 EFLAGS: 00010293 RAX: ffffffff81e7ed46 RBX: 0000008000000000 RCX: ffff888163c4a780 RDX: 0000000000000000 RSI: 0000008000000000 RDI: 0000000000000000 RBP: ffffc90000b07a30 R08: ffffffff81e7e4b6 R09: ffffed102b7532f7 R10: 0000000000000000 R11: dffffc0000000001 R12: ffffc90000b07c60 R13: 0000000000000000 R14: 000000d410000000 R15: 0000000000000001 FS: 00005555570d4480(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020109000 CR3: 0000000118208000 CR4: 00000000003506a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400