bisecting fixing commit since 97a8651cadce7c2b7c4d8f108b392eff31fe2c08 building syzkaller on 77e2b66864e69c17416614228723a1ebd3581ddc testing commit 97a8651cadce7c2b7c4d8f108b392eff31fe2c08 compiler: gcc version 8.4.1 20210217 (GCC) kernel signature: 8646f5e67492e82745dfe4ebe9ddc222abe718550114792fa7dfe2975d70d915 run #0: crashed: kernel BUG in ext4_mb_load_buddy_gfp run #1: crashed: kernel BUG in corrupted run #2: crashed: kernel BUG in ext4_mb_load_buddy_gfp run #3: crashed: kernel BUG in ext4_mb_load_buddy_gfp run #4: crashed: kernel BUG in ext4_mb_load_buddy_gfp run #5: crashed: kernel BUG in ext4_mb_load_buddy_gfp run #6: crashed: kernel BUG in ext4_mb_load_buddy_gfp run #7: crashed: kernel BUG in ext4_mb_load_buddy_gfp run #8: crashed: kernel BUG in corrupted run #9: crashed: kernel BUG in ext4_mb_load_buddy_gfp run #10: crashed: kernel BUG in ext4_mb_load_buddy_gfp run #11: crashed: kernel BUG in ext4_mb_load_buddy_gfp run #12: crashed: kernel BUG in ext4_mb_load_buddy_gfp run #13: crashed: kernel BUG in ext4_mb_load_buddy_gfp run #14: crashed: kernel BUG in ext4_mb_load_buddy_gfp run #15: crashed: kernel BUG in corrupted run #16: crashed: kernel BUG in ext4_mb_load_buddy_gfp run #17: crashed: kernel BUG in ext4_mb_load_buddy_gfp run #18: crashed: kernel BUG in ext4_mb_load_buddy_gfp run #19: crashed: kernel BUG in ext4_mb_load_buddy_gfp testing current HEAD addba38e7c3bc19036a05c83bcce7878dc644d87 testing commit addba38e7c3bc19036a05c83bcce7878dc644d87 compiler: gcc version 8.4.1 20210217 (GCC) kernel signature: 1a33756cdc4e8bd13f4ce4c6d22b78d9adfba1f8c8926b2aec696b784bfeec59 run #0: crashed: kernel BUG in ext4_mb_load_buddy_gfp run #1: crashed: kernel BUG in ext4_mb_load_buddy_gfp run #2: crashed: kernel BUG in ext4_mb_load_buddy_gfp run #3: crashed: kernel BUG in corrupted run #4: crashed: kernel BUG in ext4_mb_load_buddy_gfp run #5: crashed: kernel BUG in ext4_mb_load_buddy_gfp run #6: crashed: kernel BUG in ext4_mb_load_buddy_gfp run #7: crashed: kernel BUG in ext4_mb_load_buddy_gfp run #8: crashed: kernel BUG in ext4_mb_load_buddy_gfp run #9: crashed: kernel BUG in corrupted revisions tested: 2, total time: 24m8.912969039s (build: 16m50.183702795s, test: 6m50.414807612s) the crash still happens on HEAD commit msg: Linux 4.19.203 crash: kernel BUG in corrupted EXT4-fs warning (device sda1): htree_dirblock_to_tree:995: inode #16704: lblock 0: comm modprobe: error -117 reading directory block EXT4-fs warning (device sda1): htree_dirblock_to_tree:995: inode #16704: lblock 0: comm modprobe: error -117 reading directory block ------------[ cut here ]------------ ------------[ cut here ]------------ kernel BUG at fs/ext4/ext4.h:2870! kernel BUG at fs/ext4/ext4.h:2870! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 9843 Comm: syz-executor.2 Not tainted 4.19.203-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 5f bf a2 ff e9 93 fc ff ff e9 3d fa ff ff e9 9f f7 ff ff 4c 89 e7 e8 08 36 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:ffff88809da4fbd8 EFLAGS: 00010286 RAX: dffffc0000000000 RBX: ffff88809da4fd50 RCX: 1ffff110147e88e0 RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff8880a3f44700 RBP: ffff88809da4fc48 R08: 1ffff11012eca978 R09: ffffed1010198d48 R10: ffffed1010198d48 R11: ffff888080cc6a43 R12: 00000000fffec515 R13: ffff8880a3f446c0 R14: ffff8880a3f42d00 R15: ffff8880a3f42680 FS: 0000000002be5400(0000) GS:ffff8880ba200000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000210009bf CR3: 0000000097b81000 CR4: 00000000001406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: ext4_discard_preallocations+0x9f1/0xe70 fs/ext4/mballoc.c:4090 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:0x41940b 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:00007ffc2d5d4460 EFLAGS: 00000293 ORIG_RAX: 0000000000000003 RAX: 0000000000000000 RBX: 0000000000000004 RCX: 000000000041940b RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000003 RBP: 0000000000000001 R08: 0000000000000000 R09: 0000001b2c720134 R10: 0000000000000000 R11: 0000000000000293 R12: 000000000056c9e0 R13: 000000000056c9e0 R14: 000000000056bf60 R15: 000000000000b482 Modules linked in: invalid opcode: 0000 [#2] PREEMPT SMP KASAN ---[ end trace aec7b11c8a086c52 ]--- CPU: 1 PID: 9838 Comm: syz-executor.3 Tainted: G D 4.19.203-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 5f bf a2 ff e9 93 fc ff ff e9 3d fa ff ff e9 9f f7 ff ff 4c 89 e7 e8 08 36 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:ffff888097b57bd8 EFLAGS: 00010286 RAX: dffffc0000000000 RBX: ffff888097b57d50 RCX: 1ffff110147e88e0 RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff8880a3f44700 RBP: ffff888097b57c48 R08: 1ffff11011b73950 R09: ffffed101019df20 R10: ffffed101019df20 R11: ffff888080cef903 R12: 00000000fffec510 R13: ffff8880a3f446c0 R14: ffff8880a3f42d00 R15: ffff8880a3f42680 FS: 00000000021e9400(0000) GS:ffff8880ba300000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f0ee955a020 CR3: 0000000097ffb000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: ext4_discard_preallocations+0x9f1/0xe70 fs/ext4/mballoc.c:4090 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:0x41940b 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:00007ffcfd994c50 EFLAGS: 00000293 ORIG_RAX: 0000000000000003 RAX: 0000000000000000 RBX: 0000000000000004 RCX: 000000000041940b RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000003 RBP: 0000000000000001 R08: 0000000000000000 R09: 0000001b2c820134 R10: 0000000000000000 R11: 0000000000000293 R12: 000000000056c9e0 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 R13: 000000000056c9e0 R14: 000000000056bf60 R15: 000000000000b46a Modules linked in: ---[ end trace aec7b11c8a086c53 ]--- Bluetooth: hci0: command 0x0419 tx timeout 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 Bluetooth: hci2: command 0x0419 tx timeout Code: 0f 87 3c fc ff ff 4c 89 e7 e8 5f bf a2 ff e9 93 fc ff ff e9 3d fa ff ff e9 9f f7 ff ff 4c 89 e7 e8 08 36 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 Bluetooth: hci1: command 0x0419 tx timeout RSP: 0018:ffff88809da4fbd8 EFLAGS: 00010286 Bluetooth: hci4: command 0x0419 tx timeout RAX: dffffc0000000000 RBX: ffff88809da4fd50 RCX: 1ffff110147e88e0 Code: 0f 87 3c fc ff ff 4c 89 e7 e8 5f bf a2 ff e9 93 fc ff ff e9 3d fa ff ff e9 9f f7 ff ff 4c 89 e7 e8 08 36 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 RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff8880a3f44700 Bluetooth: hci5: command 0x0419 tx timeout RBP: ffff88809da4fc48 R08: 1ffff11012eca978 R09: ffffed1010198d48 RSP: 0018:ffff88809da4fbd8 EFLAGS: 00010286 R10: ffffed1010198d48 R11: ffff888080cc6a43 R12: 00000000fffec515 Bluetooth: hci3: command 0x0419 tx timeout R13: ffff8880a3f446c0 R14: ffff8880a3f42d00 R15: ffff8880a3f42680 RAX: dffffc0000000000 RBX: ffff88809da4fd50 RCX: 1ffff110147e88e0 FS: 00000000021e9400(0000) GS:ffff8880ba300000(0000) knlGS:0000000000000000 RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff8880a3f44700 EXT4-fs warning (device sda1): htree_dirblock_to_tree:995: inode #4058: lblock 0: comm modprobe: error -117 reading directory block CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f0ee9563020 CR3: 0000000097ffb000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400