------------[ cut here ]------------ kernel BUG at fs/ext4/mballoc.c:1982! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 484 Comm: syz.2.16 Not tainted 5.15.178-syzkaller-1079168-g5e1b899f19c3 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 RIP: 0010:mb_mark_used+0x1402/0x1420 fs/ext4/mballoc.c:1982 Code: 0f 0b e8 d1 c6 83 ff 0f 0b e8 ca c6 83 ff 0f 0b e8 c3 c6 83 ff 0f 0b e8 bc c6 83 ff 0f 0b e8 b5 c6 83 ff 0f 0b e8 ae c6 83 ff <0f> 0b e8 a7 c6 83 ff 0f 0b e8 a0 c6 83 ff 0f 0b 66 2e 0f 1f 84 00 RSP: 0018:ffffc900023c7590 EFLAGS: 00010293 RAX: ffffffff81eca602 RBX: 0000000000008000 RCX: ffff8881173d3b40 RDX: 0000000000000000 RSI: ffffffff80000000 RDI: 0000000000008000 RBP: ffffc900023c7650 R08: ffffffff81ec92e3 R09: ffffed1023112401 R10: 0000000000000000 R11: dffffc0000000001 R12: ffff888118897000 R13: ffffffff80000000 R14: 0000000080000000 R15: ffffc900023c7760 FS: 00007f5c38d726c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000400000015000 CR3: 000000012c156000 CR4: 00000000003506b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: ext4_trim_extent fs/ext4/mballoc.c:6459 [inline] ext4_try_to_trim_range+0x6b9/0x11d0 fs/ext4/mballoc.c:6519 ext4_trim_all_free fs/ext4/mballoc.c:6581 [inline] ext4_trim_fs+0xd9b/0x16a0 fs/ext4/mballoc.c:6672 __ext4_ioctl fs/ext4/ioctl.c:1122 [inline] ext4_ioctl+0x21ad/0x5830 fs/ext4/ioctl.c:1276 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:874 [inline] __se_sys_ioctl+0x114/0x190 fs/ioctl.c:860 __x64_sys_ioctl+0x7b/0x90 fs/ioctl.c:860 x64_sys_call+0x98/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:17 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7f5c39300169 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:00007f5c38d72038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f5c39518fa0 RCX: 00007f5c39300169 RDX: 0000400000000b40 RSI: 00000000c0185879 RDI: 0000000000000006 RBP: 00007f5c393812a0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f5c39518fa0 R15: 00007fff0e13d8d8 Modules linked in: ---[ end trace 5131c272086fe877 ]--- RIP: 0010:mb_mark_used+0x1402/0x1420 fs/ext4/mballoc.c:1982 Code: 0f 0b e8 d1 c6 83 ff 0f 0b e8 ca c6 83 ff 0f 0b e8 c3 c6 83 ff 0f 0b e8 bc c6 83 ff 0f 0b e8 b5 c6 83 ff 0f 0b e8 ae c6 83 ff <0f> 0b e8 a7 c6 83 ff 0f 0b e8 a0 c6 83 ff 0f 0b 66 2e 0f 1f 84 00 RSP: 0018:ffffc900023c7590 EFLAGS: 00010293 RAX: ffffffff81eca602 RBX: 0000000000008000 RCX: ffff8881173d3b40 RDX: 0000000000000000 RSI: ffffffff80000000 RDI: 0000000000008000 RBP: ffffc900023c7650 R08: ffffffff81ec92e3 R09: ffffed1023112401 R10: 0000000000000000 R11: dffffc0000000001 R12: ffff888118897000 R13: ffffffff80000000 R14: 0000000080000000 R15: ffffc900023c7760 FS: 00007f5c38d726c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000400000015000 CR3: 000000012c156000 CR4: 00000000003506b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400