------------[ cut here ]------------ kernel BUG at fs/ext4/ext4.h:2978! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 348 Comm: syz-execprog Not tainted 5.4.125-syzkaller-00013-g3ce13296e72d #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:ext4_get_group_info fs/ext4/ext4.h:2978 [inline] RIP: 0010:ext4_mb_load_buddy_gfp+0xdf0/0xe10 fs/ext4/mballoc.c:1116 Code: ff e8 44 f5 cc ff e9 45 f4 ff ff 89 f9 80 e1 07 80 c1 03 38 c1 0f 8c 8c f4 ff ff e8 4a f5 cc ff e9 82 f4 ff ff e8 d0 34 9e ff <0f> 0b e8 c9 34 9e ff 0f 0b e8 c2 34 9e ff 0f 0b e8 bb 34 9e ff 0f RSP: 0018:ffff8881e5f376e8 EFLAGS: 00010293 RAX: ffffffff81c71f10 RBX: 0000000000000010 RCX: ffff8881e55c0fc0 RDX: 0000000000000000 RSI: 00000000fffe8f8f RDI: 0000000000000010 RBP: ffff8881ee136000 R08: ffffffff81c711f3 R09: ffffed103d90e103 R10: ffffed103d90e103 R11: 0000000000000000 R12: 1ffff1103dc2687e R13: ffff8881ee134018 R14: 00000000fffe8f8f R15: ffff8881ee1343f0 FS: 000000c00024e890(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f88ec176000 CR3: 00000001ec247000 CR4: 00000000001406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: ext4_discard_preallocations+0x63d/0x1240 fs/ext4/mballoc.c:4091 ext4_release_file+0x160/0x300 fs/ext4/file.c:98 __fput+0x27d/0x6c0 fs/file_table.c:281 task_work_run+0x186/0x1b0 kernel/task_work.c:113 exit_task_work include/linux/task_work.h:22 [inline] do_exit+0xcb9/0x2bf0 kernel/exit.c:812 do_group_exit+0x15c/0x2c0 kernel/exit.c:910 get_signal+0x164f/0x1fc0 kernel/signal.c:2745 do_signal+0x8d/0x610 arch/x86/kernel/signal.c:793 exit_to_usermode_loop arch/x86/entry/common.c:159 [inline] prepare_exit_to_usermode+0x207/0x310 arch/x86/entry/common.c:194 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x46d823 Code: Bad RIP value. RSP: 002b:000000c000317d98 EFLAGS: 00000286 ORIG_RAX: 00000000000000ca RAX: fffffffffffffe00 RBX: 000000c00024e800 RCX: 000000000046d823 RDX: 0000000000000000 RSI: 0000000000000080 RDI: 000000c00024e948 RBP: 000000c000317de0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000286 R12: 0000000000000003 R13: 000000c0000b3500 R14: 000000c000081aa0 R15: 0000000000000000 Modules linked in: ---[ end trace 7146ab0e8b7aabc4 ]--- RIP: 0010:ext4_get_group_info fs/ext4/ext4.h:2978 [inline] RIP: 0010:ext4_mb_load_buddy_gfp+0xdf0/0xe10 fs/ext4/mballoc.c:1116 Code: ff e8 44 f5 cc ff e9 45 f4 ff ff 89 f9 80 e1 07 80 c1 03 38 c1 0f 8c 8c f4 ff ff e8 4a f5 cc ff e9 82 f4 ff ff e8 d0 34 9e ff <0f> 0b e8 c9 34 9e ff 0f 0b e8 c2 34 9e ff 0f 0b e8 bb 34 9e ff 0f RSP: 0018:ffff8881e5f376e8 EFLAGS: 00010293 RAX: ffffffff81c71f10 RBX: 0000000000000010 RCX: ffff8881e55c0fc0 RDX: 0000000000000000 RSI: 00000000fffe8f8f RDI: 0000000000000010