------------[ cut here ]------------ kernel BUG at fs/ext4/inode.c:5246! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 705 Comm: syz.0.103 Not tainted 5.10.222-syzkaller-01494-gfd58936f3c1f #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024 RIP: 0010:ext4_do_update_inode fs/ext4/inode.c:5245 [inline] RIP: 0010:ext4_mark_iloc_dirty+0x3e51/0x3e60 fs/ext4/inode.c:5841 Code: 6d ca ff e9 0f f1 ff ff 89 d9 80 e1 07 80 c1 03 38 c1 0f 8c 21 f1 ff ff 48 89 df e8 79 6e ca ff e9 14 f1 ff ff e8 1f d6 8c ff <0f> 0b 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 55 48 89 e5 41 57 41 RSP: 0018:ffffc90000e06f00 EFLAGS: 00010287 RAX: ffffffff81ddd2e1 RBX: 0000000000000000 RCX: 0000000000040000 RDX: ffffc9000136c000 RSI: 000000000000090e RDI: 000000000000090f RBP: ffffc90000e07010 R08: ffffffff81ddaefd R09: ffffed102485c4ce R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000 R13: 00000000ffffffff R14: 0000000000000000 R15: ffff88811aac8000 FS: 00007fc27579c6c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020001240 CR3: 0000000112d82000 CR4: 00000000003506b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __ext4_mark_inode_dirty+0x4fc/0x7b0 fs/ext4/inode.c:6043 ext4_dirty_inode+0xdd/0x120 fs/ext4/inode.c:6079 __mark_inode_dirty+0xd0/0x9d0 fs/fs-writeback.c:2252 ext4_mb_new_blocks+0x2c19/0x43e0 ext4_alloc_branch fs/ext4/indirect.c:340 [inline] ext4_ind_map_blocks+0x11cf/0x2ab0 fs/ext4/indirect.c:633 ext4_map_blocks+0xa0d/0x1d10 fs/ext4/inode.c:646 ext4_getblk+0x19f/0x660 fs/ext4/inode.c:841 ext4_bread+0x2f/0x1b0 fs/ext4/inode.c:893 ext4_append+0x29a/0x4d0 fs/ext4/namei.c:83 ext4_add_entry+0xbbc/0x1280 fs/ext4/namei.c:2418 __ext4_link+0x4e9/0x790 fs/ext4/namei.c:3601 ext4_link+0x1f3/0x290 fs/ext4/namei.c:3642 vfs_link+0x68f/0x890 fs/namei.c:4213 do_linkat+0x471/0x8b0 fs/namei.c:4281 __do_sys_link fs/namei.c:4310 [inline] __se_sys_link fs/namei.c:4308 [inline] __x64_sys_link+0x68/0x80 fs/namei.c:4308 do_syscall_64+0x34/0x70 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7fc276b1c299 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:00007fc27579c048 EFLAGS: 00000246 ORIG_RAX: 0000000000000056 RAX: ffffffffffffffda RBX: 00007fc276caaf80 RCX: 00007fc276b1c299 RDX: 0000000000000000 RSI: 0000000020000bc0 RDI: 0000000020001240 RBP: 00007fc276b898e6 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007fc276caaf80 R15: 00007fff273a4cb8 Modules linked in: ---[ end trace 348ee3082ae6d459 ]--- RIP: 0010:ext4_do_update_inode fs/ext4/inode.c:5245 [inline] RIP: 0010:ext4_mark_iloc_dirty+0x3e51/0x3e60 fs/ext4/inode.c:5841 Code: 6d ca ff e9 0f f1 ff ff 89 d9 80 e1 07 80 c1 03 38 c1 0f 8c 21 f1 ff ff 48 89 df e8 79 6e ca ff e9 14 f1 ff ff e8 1f d6 8c ff <0f> 0b 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 55 48 89 e5 41 57 41 RSP: 0018:ffffc90000e06f00 EFLAGS: 00010287 RAX: ffffffff81ddd2e1 RBX: 0000000000000000 RCX: 0000000000040000 RDX: ffffc9000136c000 RSI: 000000000000090e RDI: 000000000000090f RBP: ffffc90000e07010 R08: ffffffff81ddaefd R09: ffffed102485c4ce R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000 R13: 00000000ffffffff R14: 0000000000000000 R15: ffff88811aac8000 FS: 00007fc27579c6c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020001240 CR3: 0000000112d82000 CR4: 00000000003506b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400