bisecting fixing commit since 31acccdc877486a649a86d37725a15175fcd5ed6 building syzkaller on 1bf9a662c66aa432ff2fe3bf2562578cef626c09 testing commit 31acccdc877486a649a86d37725a15175fcd5ed6 with gcc (GCC) 8.1.0 kernel signature: 6ecffd935ec9f8f29eeabb234a56cf0f3e2ce86e8cd416287f68e7324c2bd618 all runs: crashed: kernel BUG at fs/ext4/ext4.h:LINE! testing current HEAD 13d2ce42de8cb98ff952f8de6307f896203854c2 testing commit 13d2ce42de8cb98ff952f8de6307f896203854c2 with gcc (GCC) 8.1.0 kernel signature: fb11ebf972eeafcb6f997715a686e8bcb53e9153c8a4fed15b92145969769116 all runs: crashed: kernel BUG at fs/ext4/ext4.h:LINE! revisions tested: 2, total time: 34m10.638335201s (build: 16m36.182757391s, test: 16m56.932305899s) the crash still happens on HEAD commit msg: Linux 4.19.163 crash: kernel BUG at fs/ext4/ext4.h:LINE! EXT4-fs (loop3): mounted filesystem without journal. Opts: ,errors=continue EXT4-fs error (device loop1) in ext4_reserve_inode_write:5939: Out of memory EXT4-fs warning (device loop1): ext4_evict_inode:294: couldn't mark inode dirty (err -12) ------------[ cut here ]------------ kernel BUG at fs/ext4/ext4.h:2870! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 19658 Comm: syz-executor746 Not tainted 4.19.163-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 6f 68 a1 ff e9 93 fc ff ff e9 3d fa ff ff e9 9f f7 ff ff 4c 89 e7 e8 b8 19 a7 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:ffff8881c2b0fbd8 EFLAGS: 00010286 RAX: dffffc0000000000 RBX: ffff8881c2b0fd50 RCX: 1ffff1103e891470 RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff8881f448a380 RBP: ffff8881c2b0fc48 R08: 1ffff1103b334530 R09: ffffed103821ad30 R10: ffffed103821ad30 R11: ffff8881c10d6983 R12: 00000000fffcef43 R13: ffff8881f448a340 R14: ffff8881d1640a00 R15: ffff8881d1640380 FS: 0000000000a10880(0000) GS:ffff8881f6500000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fcbdf2fbe78 CR3: 00000001e5f69002 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:0x406571 Code: 75 14 b8 03 00 00 00 0f 05 48 3d 01 f0 ff ff 0f 83 64 19 00 00 c3 48 83 ec 08 e8 6a fc ff ff 48 89 04 24 b8 03 00 00 00 0f 05 <48> 8b 3c 24 48 89 c2 e8 b3 fc ff ff 48 89 d0 48 83 c4 08 48 3d 01 RSP: 002b:00007fffa765a630 EFLAGS: 00000293 ORIG_RAX: 0000000000000003 RAX: 0000000000000000 RBX: 0000000000000007 RCX: 0000000000406571 RDX: fffffffffffffff7 RSI: 0000000000000000 RDI: 0000000000000006 RBP: 00000000006dec7c R08: 0000000000000001 R09: 0000000000000001 R10: 0000000000000001 R11: 0000000000000293 R12: 000000000007f8cd R13: 0000000000000001 R14: 20c49ba5e353f7cf R15: 0000000000000009 Modules linked in: ---[ end trace 718ca52e65d2cf37 ]--- 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 6f 68 a1 ff e9 93 fc ff ff e9 3d fa ff ff e9 9f f7 ff ff 4c 89 e7 e8 b8 19 a7 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:ffff8881c2b0fbd8 EFLAGS: 00010286 RAX: dffffc0000000000 RBX: ffff8881c2b0fd50 RCX: 1ffff1103e891470 RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff8881f448a380 RBP: ffff8881c2b0fc48 R08: 1ffff1103b334530 R09: ffffed103821ad30 R10: ffffed103821ad30 R11: ffff8881c10d6983 R12: 00000000fffcef43 R13: ffff8881f448a340 R14: ffff8881d1640a00 R15: ffff8881d1640380 FS: 0000000000a10880(0000) GS:ffff8881f6500000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fcbdf31ce78 CR3: 00000001e5f69002 CR4: 00000000001606e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400