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: OK run #9: OK run #10: OK run #11: OK run #12: OK run #13: OK run #14: OK run #15: OK run #16: OK run #17: crashed: kernel BUG in ext4_write_inline_data_end run #18: OK run #19: OK reproducer seems to be flaky testing current HEAD 4c388a8e740d3235a194f330c8ef327deef710f6 testing commit 4c388a8e740d3235a194f330c8ef327deef710f6 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: b6d90e57858192dc1b1fa7193a96c34a5c627fdc73239de780c925da4b5f4a46 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: OK run #8: OK run #9: OK run #10: OK 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 Reproducer flagged being flaky revisions tested: 2, total time: 32m47.095751456s (build: 12m1.409492776s, test: 19m48.900951418s) the crash still happens on HEAD commit msg: Merge tag 'zstd-for-linus-5.16-rc1' of git://github.com/terrelln/linux 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: 21832 Comm: syz-executor.2 Not tainted 5.16.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:ext4_write_inline_data_end+0x795/0xd00 fs/ext4/inline.c:755 Code: 74 08 3c 03 0f 8e 72 05 00 00 41 8b 86 a0 00 00 00 83 e8 01 83 f8 01 0f 87 5f fc ff ff 4c 89 e7 e8 f0 f6 9f ff e9 b2 fc ff ff <0f> 0b 48 b8 00 00 00 00 00 fc ff df 4c 89 e2 48 c1 ea 03 80 3c 02 RSP: 0018:ffffc900025c77f0 EFLAGS: 00010246 RAX: 0000000c00000000 RBX: 0000000000000001 RCX: ffffffff81f4ac93 RDX: 1ffff1102c5a2292 RSI: 0000000000000008 RDI: ffff888162d11490 RBP: ffff888162d116e0 R08: 0000000000000000 R09: ffff888162d11497 R10: ffffed102c5a2292 R11: 0000000000000000 R12: ffffea000579e640 R13: 0000000000000000 R14: ffff888162d11490 R15: ffffc900025c7840 FS: 00007f50d4865700(0000) GS:ffff8881f6100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000536198 CR3: 000000017650d003 CR4: 00000000003706e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: generic_perform_write+0x267/0x440 mm/filemap.c:3767 ext4_buffered_write_iter+0x171/0x330 fs/ext4/file.c:269 ext4_file_write_iter+0x3ad/0x1320 fs/ext4/file.c:681 call_write_iter include/linux/fs.h:2162 [inline] do_iter_readv_writev+0x336/0x6d0 fs/read_write.c:725 do_iter_write+0x12a/0x620 fs/read_write.c:851 vfs_writev+0x16c/0x520 fs/read_write.c:924 do_pwritev fs/read_write.c:1021 [inline] __do_sys_pwritev fs/read_write.c:1068 [inline] __se_sys_pwritev fs/read_write.c:1063 [inline] __x64_sys_pwritev+0x1d7/0x290 fs/read_write.c:1063 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:00007f50d4865188 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: 00007ffe6b79f83f R14: 00007f50d4865300 R15: 0000000000022000 Modules linked in: ---[ end trace e4098bdf3aa595ef ]--- RIP: 0010:ext4_write_inline_data_end+0x795/0xd00 fs/ext4/inline.c:755 Code: 74 08 3c 03 0f 8e 72 05 00 00 41 8b 86 a0 00 00 00 83 e8 01 83 f8 01 0f 87 5f fc ff ff 4c 89 e7 e8 f0 f6 9f ff e9 b2 fc ff ff <0f> 0b 48 b8 00 00 00 00 00 fc ff df 4c 89 e2 48 c1 ea 03 80 3c 02 RSP: 0018:ffffc900025c77f0 EFLAGS: 00010246 RAX: 0000000c00000000 RBX: 0000000000000001 RCX: ffffffff81f4ac93 RDX: 1ffff1102c5a2292 RSI: 0000000000000008 RDI: ffff888162d11490 RBP: ffff888162d116e0 R08: 0000000000000000 R09: ffff888162d11497 R10: ffffed102c5a2292 R11: 0000000000000000 R12: ffffea000579e640 R13: 0000000000000000 R14: ffff888162d11490 R15: ffffc900025c7840 FS: 00007f50d4865700(0000) GS:ffff8881f6000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000003264708 CR3: 000000017650d003 CR4: 00000000003706f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400