bisecting fixing commit since 31acccdc877486a649a86d37725a15175fcd5ed6 building syzkaller on 1bf9a662c66aa432ff2fe3bf2562578cef626c09 testing commit 31acccdc877486a649a86d37725a15175fcd5ed6 with gcc (GCC) 8.4.1 20210217 kernel signature: e5a638370dcf32a4d9b28b5808dc0e824d6399a01b03374fbb7abd03a33a57c0 all runs: crashed: kernel BUG in ext4_mb_load_buddy_gfp testing current HEAD 97a8651cadce7c2b7c4d8f108b392eff31fe2c08 testing commit 97a8651cadce7c2b7c4d8f108b392eff31fe2c08 with gcc (GCC) 8.4.1 20210217 kernel signature: 0736dc1eaaa2a0d7e4e63155b9edea06b0d58873fb56cb0d644c4b1ad05e387c all runs: crashed: kernel BUG in ext4_mb_load_buddy_gfp revisions tested: 2, total time: 37m51.891355604s (build: 18m54.846482635s, test: 18m31.764932514s) the crash still happens on HEAD commit msg: Linux 4.19.189 crash: kernel BUG in ext4_mb_load_buddy_gfp EXT4-fs warning (device loop5): ext4_evict_inode:301: couldn't mark inode dirty (err -12) EXT4-fs error (device loop1) in ext4_reserve_inode_write:5947: Corrupt filesystem EXT4-fs warning (device loop1): ext4_evict_inode:301: couldn't mark inode dirty (err -117) ------------[ cut here ]------------ kernel BUG at fs/ext4/ext4.h:2870! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 30857 Comm: syz-executor.3 Not tainted 4.19.189-syzkaller #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:2870 [inline] RIP: 0010:ext4_mb_load_buddy_gfp+0xfdd/0x1560 fs/ext4/mballoc.c:1116 Code: 0f 87 3c fc ff ff 4c 89 e7 e8 4f b6 a2 ff e9 93 fc ff ff e9 3d fa ff ff e9 9f f7 ff ff 4c 89 e7 e8 98 2e a8 ff e9 bd fb ff ff <0f> 0b 8b 55 bc 44 89 e6 4c 89 ff e8 53 de ff ff 85 c0 41 89 c5 0f RSP: 0018:ffff8881dfca7bd8 EFLAGS: 00010286 RAX: dffffc0000000000 RBX: ffff8881dfca7d50 RCX: 1ffff1103a01f450 RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff8881d00fa280 RBP: ffff8881dfca7c48 R08: 1ffff1103e805950 R09: ffffed1038c2ccd8 R10: ffffed1038c2ccd8 R11: ffff8881c61666c3 R12: 00000000fffcef43 R13: ffff8881d00fa240 R14: ffff8881d3e5c880 R15: ffff8881d3e5c200 FS: 0000000002608400(0000) GS:ffff8881f6500000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f4a636bad58 CR3: 00000001e3911006 CR4: 00000000001606e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: ext4_discard_preallocations+0x9f1/0xe70 fs/ext4/mballoc.c:4089 ext4_release_file+0x236/0x2b0 fs/ext4/file.c:98 __fput+0x249/0x7f0 fs/file_table.c:278 ____fput+0x9/0x10 fs/file_table.c:309 task_work_run+0x108/0x180 kernel/task_work.c:113 tracehook_notify_resume include/linux/tracehook.h:193 [inline] exit_to_usermode_loop+0x185/0x1e0 arch/x86/entry/common.c:167 prepare_exit_to_usermode arch/x86/entry/common.c:198 [inline] syscall_return_slowpath arch/x86/entry/common.c:271 [inline] do_syscall_64+0x413/0x4e0 arch/x86/entry/common.c:296 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x418b9b Code: 0f 05 48 3d 00 f0 ff ff 77 45 c3 0f 1f 40 00 48 83 ec 18 89 7c 24 0c e8 63 fc ff ff 8b 7c 24 0c 41 89 c0 b8 03 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 35 44 89 c7 89 44 24 0c e8 a1 fc ff ff 8b 44 RSP: 002b:00007ffd3ed459a0 EFLAGS: 00000293 ORIG_RAX: 0000000000000003 RAX: 0000000000000000 RBX: 0000000000000007 RCX: 0000000000418b9b RDX: 0000000000000001 RSI: 0000000000562498 RDI: 0000000000000006 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 00007ffd3ed45a90 R11: 0000000000000293 R12: 00000000000003e8 R13: 0000000000060f57 R14: 000000000055bf00 R15: 000000000055c050 Modules linked in: ---[ end trace 10dfd7f5e174b0af ]--- RIP: 0010:ext4_get_group_info fs/ext4/ext4.h:2870 [inline] RIP: 0010:ext4_mb_load_buddy_gfp+0xfdd/0x1560 fs/ext4/mballoc.c:1116 Code: 0f 87 3c fc ff ff 4c 89 e7 e8 4f b6 a2 ff e9 93 fc ff ff e9 3d fa ff ff e9 9f f7 ff ff 4c 89 e7 e8 98 2e a8 ff e9 bd fb ff ff <0f> 0b 8b 55 bc 44 89 e6 4c 89 ff e8 53 de ff ff 85 c0 41 89 c5 0f RSP: 0018:ffff8881dfca7bd8 EFLAGS: 00010286 RAX: dffffc0000000000 RBX: ffff8881dfca7d50 RCX: 1ffff1103a01f450 RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff8881d00fa280 RBP: ffff8881dfca7c48 R08: 1ffff1103e805950 R09: ffffed1038c2ccd8 R10: ffffed1038c2ccd8 R11: ffff8881c61666c3 R12: 00000000fffcef43 R13: ffff8881d00fa240 R14: ffff8881d3e5c880 R15: ffff8881d3e5c200 FS: 0000000002608400(0000) GS:ffff8881f6500000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fd078038018 CR3: 00000001e3911006 CR4: 00000000001606e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400