------------[ cut here ]------------ kernel BUG at fs/ext4/inode.c:5505! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 413 Comm: syz-executor.2 Not tainted 5.4.292-syzkaller-05062-gcd8e74fa0fa3 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 RIP: 0010:ext4_do_update_inode fs/ext4/inode.c:5504 [inline] RIP: 0010:ext4_mark_iloc_dirty+0x33cb/0x33d0 fs/ext4/inode.c:6074 Code: cf ff e9 89 f0 ff ff 44 89 f1 80 e1 07 80 c1 03 38 c1 0f 8c 9f f0 ff ff 4c 89 f7 e8 8f 99 cf ff e9 92 f0 ff ff e8 d5 9e a1 ff <0f> 0b 0f 1f 00 55 48 89 e5 41 57 41 56 41 55 41 54 53 48 83 ec 10 RSP: 0018:ffff8881e8c77120 EFLAGS: 00010293 RAX: ffffffff81bde00b RBX: ffff8881e932f000 RCX: ffff8881ed8b0000 RDX: 0000000000000000 RSI: 0000000000000005 RDI: 0000000000000000 RBP: ffff8881e8c77270 R08: dffffc0000000000 R09: ffffed103b960995 R10: ffffed103b960995 R11: 1ffff1103b960994 R12: ffff8881dcb04b78 R13: dffffc0000000000 R14: ffff8881e9161401 R15: 0000000000000005 FS: 00007f7d7f0e26c0(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f7d7f0c1d58 CR3: 00000001ea061000 CR4: 00000000003406a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: ext4_mark_inode_dirty+0x3ea/0x620 fs/ext4/inode.c:6276 __ext4_ext_dirty+0x126/0x1e0 fs/ext4/extents.c:179 ext4_ext_rm_leaf fs/ext4/extents.c:2932 [inline] ext4_ext_remove_space+0x254e/0x5850 fs/ext4/extents.c:3142 ext4_ext_truncate+0x157/0x1e0 fs/ext4/extents.c:4689 ext4_truncate+0xa8f/0x1270 fs/ext4/inode.c:4641 ext4_setattr+0xebe/0x14f0 fs/ext4/inode.c:5860 notify_change+0xab4/0xe70 fs/attr.c:354 do_truncate+0x186/0x210 fs/open.c:64 handle_truncate fs/namei.c:3154 [inline] do_last fs/namei.c:3571 [inline] path_openat+0x2e76/0x35c0 fs/namei.c:3683 do_filp_open+0x1ae/0x3f0 fs/namei.c:3713 do_sys_open+0x2bb/0x5d0 fs/open.c:1123 ksys_open include/linux/syscalls.h:1388 [inline] __do_sys_creat fs/open.c:1181 [inline] __se_sys_creat fs/open.c:1179 [inline] __x64_sys_creat+0x65/0x70 fs/open.c:1179 do_syscall_64+0xcf/0x170 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x5c/0xc1 RIP: 0033:0x7f7d7f581ea9 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:00007f7d7f0e20c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000055 RAX: ffffffffffffffda RBX: 00007f7d7f6b0050 RCX: 00007f7d7f581ea9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000140 RBP: 00007f7d7f5ce4a4 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000006e R14: 00007f7d7f6b0050 R15: 00007ffc42b3bea8 Modules linked in: ---[ end trace 06705519e24d974a ]--- RIP: 0010:ext4_do_update_inode fs/ext4/inode.c:5504 [inline] RIP: 0010:ext4_mark_iloc_dirty+0x33cb/0x33d0 fs/ext4/inode.c:6074 Code: cf ff e9 89 f0 ff ff 44 89 f1 80 e1 07 80 c1 03 38 c1 0f 8c 9f f0 ff ff 4c 89 f7 e8 8f 99 cf ff e9 92 f0 ff ff e8 d5 9e a1 ff <0f> 0b 0f 1f 00 55 48 89 e5 41 57 41 56 41 55 41 54 53 48 83 ec 10 RSP: 0018:ffff8881e8c77120 EFLAGS: 00010293 RAX: ffffffff81bde00b RBX: ffff8881e932f000 RCX: ffff8881ed8b0000 RDX: 0000000000000000 RSI: 0000000000000005 RDI: 0000000000000000 RBP: ffff8881e8c77270 R08: dffffc0000000000 R09: ffffed103b960995 R10: ffffed103b960995 R11: 1ffff1103b960994 R12: ffff8881dcb04b78 R13: dffffc0000000000 R14: ffff8881e9161401 R15: 0000000000000005 FS: 00007f7d7f0e26c0(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f7d7f0c1d58 CR3: 00000001ea061000 CR4: 00000000003406a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400