bisecting fixing commit since 6f2f486d57c4d562cdf4932320b66fbb878ab1c4 building syzkaller on 4a77ae0bdc5cd75ebe88ce7c896aae6bbf457a29 testing commit 6f2f486d57c4d562cdf4932320b66fbb878ab1c4 compiler: gcc (GCC) 8.4.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 185ce3fd91b9c3cfa617cce0f34702d10c7210a31b2f818a074669b3f7855e8a 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: OK run #12: OK run #13: OK run #14: OK run #15: OK run #16: OK run #17: OK run #18: OK run #19: OK testing current HEAD e4e737bb5c170df6135a127739a9e6148ee3da82 testing commit e4e737bb5c170df6135a127739a9e6148ee3da82 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 252f6b72d1b4419973a841ca9159e72713902de647db8043e54b3b16c8d332e5 run #0: crashed: kernel BUG in ext4_write_inline_data_end run #1: OK run #2: OK 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: 31m24.405823168s (build: 12m24.447432111s, test: 17m58.692490538s) the crash still happens on HEAD commit msg: Linux 5.15-rc2 crash: kernel BUG in ext4_write_inline_data_end loop2: detected capacity change from 0 to 512 ------------[ cut here ]------------ kernel BUG at fs/ext4/inline.c:755! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 12550 Comm: syz-executor.2 Not tainted 5.15.0-rc2-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:ext4_write_inline_data_end+0x3b1/0x500 fs/ext4/inline.c:755 Code: 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 38 01 00 00 48 8b 7d 28 ba ed 02 00 00 48 c7 c6 a0 c8 5e 88 e8 53 dc 0e 00 31 c0 eb 84 <0f> 0b be 08 00 00 00 4c 89 f7 e8 30 de b7 ff f0 80 a5 b4 fd ff ff RSP: 0018:ffffc900026a7778 EFLAGS: 00010246 RAX: 0000000c00000000 RBX: 1ffff920004d4ef4 RCX: ffffffff81f5657f RDX: 1ffff1102c3b02a2 RSI: 0000000000000008 RDI: ffff888161d81510 RBP: ffff888161d81760 R08: 0000000000000000 R09: ffff888161d81517 R10: ffffed102c3b02a2 R11: 0000000000000000 R12: ffffea00057083c0 R13: 0000000000000001 R14: ffff888161d81510 R15: ffffc900026a77c0 FS: 00007f5d49883700(0000) GS:ffff8881f6300000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000960004 CR3: 0000000179af9006 CR4: 00000000001706e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: ext4_write_end+0x1c1/0xbc0 fs/ext4/inode.c:1292 generic_perform_write+0x266/0x440 mm/filemap.c:3781 ext4_buffered_write_iter+0x1ea/0x480 fs/ext4/file.c:269 ext4_file_write_iter+0x3ad/0x1310 fs/ext4/file.c:680 call_write_iter include/linux/fs.h:2163 [inline] do_iter_readv_writev+0x336/0x6d0 fs/read_write.c:729 do_iter_write+0x12a/0x620 fs/read_write.c:855 vfs_writev+0x16c/0x520 fs/read_write.c:928 do_pwritev fs/read_write.c:1025 [inline] __do_sys_pwritev fs/read_write.c:1072 [inline] __se_sys_pwritev fs/read_write.c:1067 [inline] __x64_sys_pwritev+0x1d7/0x290 fs/read_write.c:1067 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 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:00007f5d49883188 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: 00007ffd991ef19f R14: 00007f5d49883300 R15: 0000000000022000 Modules linked in: ---[ end trace 0b80dd1720c2a63b ]--- RIP: 0010:ext4_write_inline_data_end+0x3b1/0x500 fs/ext4/inline.c:755 Code: 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 38 01 00 00 48 8b 7d 28 ba ed 02 00 00 48 c7 c6 a0 c8 5e 88 e8 53 dc 0e 00 31 c0 eb 84 <0f> 0b be 08 00 00 00 4c 89 f7 e8 30 de b7 ff f0 80 a5 b4 fd ff ff RSP: 0018:ffffc900026a7778 EFLAGS: 00010246 RAX: 0000000c00000000 RBX: 1ffff920004d4ef4 RCX: ffffffff81f5657f RDX: 1ffff1102c3b02a2 RSI: 0000000000000008 RDI: ffff888161d81510 RBP: ffff888161d81760 R08: 0000000000000000 R09: ffff888161d81517 R10: ffffed102c3b02a2 R11: 0000000000000000 R12: ffffea00057083c0 R13: 0000000000000001 R14: ffff888161d81510 R15: ffffc900026a77c0 FS: 00007f5d49883700(0000) GS:ffff8881f6200000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffe1eb81cf8 CR3: 0000000179af9005 CR4: 00000000001706f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400