bisecting fixing commit since 6f2f486d57c4d562cdf4932320b66fbb878ab1c4 building syzkaller on 4a77ae0bdc5cd75ebe88ce7c896aae6bbf457a29 testing commit 6f2f486d57c4d562cdf4932320b66fbb878ab1c4 with gcc (GCC) 8.4.1 20210217 kernel signature: 05f38585c13dd5f31655ba9a2c6ef7a8d7deb20472e27586c2c5ebe69c136925 run #0: crashed: kernel BUG in ext4_write_inline_data_end run #1: crashed: kernel BUG in ext4_write_inline_data_end run #2: crashed: kernel BUG in ext4_write_inline_data_end run #3: crashed: kernel BUG in ext4_write_inline_data_end run #4: crashed: kernel BUG in ext4_write_inline_data_end run #5: crashed: kernel BUG in ext4_write_inline_data_end run #6: crashed: kernel BUG in ext4_write_inline_data_end run #7: crashed: kernel BUG in ext4_write_inline_data_end run #8: crashed: kernel BUG in ext4_write_inline_data_end run #9: crashed: kernel BUG in ext4_write_inline_data_end run #10: crashed: kernel BUG in ext4_write_inline_data_end run #11: crashed: kernel BUG in ext4_write_inline_data_end run #12: crashed: kernel BUG in ext4_write_inline_data_end run #13: crashed: kernel BUG in ext4_write_inline_data_end run #14: OK run #15: OK run #16: OK run #17: OK run #18: OK run #19: OK testing current HEAD d434405aaab7d0ebc516b68a8fc4100922d7f5ef testing commit d434405aaab7d0ebc516b68a8fc4100922d7f5ef with gcc (GCC) 10.2.1 20210217 kernel signature: bc2f8cc334bd557113b043e8232406ca36ec3dff77a1f13ca3fcffd6879950c9 run #0: OK run #1: crashed: kernel BUG in __block_commit_write run #2: crashed: kernel BUG in ext4_write_inline_data_end run #3: OK run #4: OK run #5: OK run #6: OK run #7: OK run #8: OK run #9: OK reproducer seems to be flaky Reproducer flagged being flaky revisions tested: 2, total time: 33m36.541779555s (build: 15m2.447240349s, test: 17m43.400323427s) the crash still happens on HEAD commit msg: Linux 5.12-rc7 crash: kernel BUG in ext4_write_inline_data_end loop4: detected capacity change from 0 to 512 ------------[ cut here ]------------ kernel BUG at fs/ext4/inline.c:751! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 32394 Comm: syz-executor.4 Not tainted 5.12.0-rc7-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:ext4_write_inline_data_end+0x3a9/0x4f0 fs/ext4/inline.c:751 Code: 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 38 01 00 00 48 8b 7d 28 ba e9 02 00 00 48 c7 c6 00 b4 3d 88 e8 7b a4 0e 00 31 c0 eb 84 <0f> 0b be 08 00 00 00 4c 89 f7 e8 58 d4 b9 ff f0 80 a5 1c fd ff ff RSP: 0018:ffffc90001887770 EFLAGS: 00010246 RAX: 0000000c00000000 RBX: 1ffff92000310ef3 RCX: ffffffff81eec30f RDX: 1ffff11026140eba RSI: 0000000000000008 RDI: ffff888130a075d0 RBP: ffff888130a078b8 R08: 0000000000000000 R09: ffff888130a075d7 R10: ffffed1026140eba R11: 0000000000000000 R12: ffffea0004c8f240 R13: 0000000000000001 R14: ffff888130a075d0 R15: ffffc900018877b8 FS: 00007f0fea437700(0000) GS:ffff8881f6200000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f0cc5556718 CR3: 0000000102817004 CR4: 00000000001706f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: ext4_write_end+0x1be/0xbb0 fs/ext4/inode.c:1292 generic_perform_write+0x275/0x430 mm/filemap.c:3586 ext4_buffered_write_iter+0x1ea/0x440 fs/ext4/file.c:269 ext4_file_write_iter+0x3ad/0x1310 fs/ext4/file.c:663 call_write_iter include/linux/fs.h:1977 [inline] do_iter_readv_writev+0x333/0x6d0 fs/read_write.c:740 do_iter_write+0x12a/0x5b0 fs/read_write.c:866 vfs_writev+0x16c/0x510 fs/read_write.c:939 do_pwritev fs/read_write.c:1036 [inline] __do_sys_pwritev fs/read_write.c:1083 [inline] __se_sys_pwritev fs/read_write.c:1078 [inline] __x64_sys_pwritev+0x1d7/0x290 fs/read_write.c:1078 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x465849 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 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f0fea437188 EFLAGS: 00000246 ORIG_RAX: 0000000000000128 RAX: ffffffffffffffda RBX: 000000000055bf00 RCX: 0000000000465849 RDX: 0000000000000001 RSI: 00000000200014c0 RDI: 0000000000000003 RBP: 00000000004af675 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000055bf00 R13: 00007ffe2bf9de9f R14: 00007f0fea437300 R15: 0000000000022000 Modules linked in: ---[ end trace d0fb0dce5291719f ]--- RIP: 0010:ext4_write_inline_data_end+0x3a9/0x4f0 fs/ext4/inline.c:751 Code: 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 38 01 00 00 48 8b 7d 28 ba e9 02 00 00 48 c7 c6 00 b4 3d 88 e8 7b a4 0e 00 31 c0 eb 84 <0f> 0b be 08 00 00 00 4c 89 f7 e8 58 d4 b9 ff f0 80 a5 1c fd ff ff RSP: 0018:ffffc90001887770 EFLAGS: 00010246 RAX: 0000000c00000000 RBX: 1ffff92000310ef3 RCX: ffffffff81eec30f RDX: 1ffff11026140eba RSI: 0000000000000008 RDI: ffff888130a075d0 RBP: ffff888130a078b8 R08: 0000000000000000 R09: ffff888130a075d7 R10: ffffed1026140eba R11: 0000000000000000 R12: ffffea0004c8f240 R13: 0000000000000001 R14: ffff888130a075d0 R15: ffffc900018877b8 FS: 00007f0fea437700(0000) GS:ffff8881f6200000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055573929ae88 CR3: 0000000102817006 CR4: 00000000001706f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400