bisecting fixing commit since ad347abe4a9876b1f65f408ab467137e88f77eb4 building syzkaller on 1ba81399e2d03b53a7e631c4ab05f25af1fb1911 testing commit ad347abe4a9876b1f65f408ab467137e88f77eb4 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 865d3c40c172cafc1eeff01355f98b9738f56605a5dc669616daa8f5df3b4827 all runs: crashed: kernel BUG in ext4_writepages testing current HEAD aad611a868d16cdc16a7d4a764cef955293e47e3 testing commit aad611a868d16cdc16a7d4a764cef955293e47e3 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 3a3d954262726f1145f01f7f095e9de46718d6d0cee16543924404f4474826b1 all runs: crashed: kernel BUG in ext4_writepages revisions tested: 2, total time: 18m33.775425246s (build: 11m50.412068854s, test: 5m54.166184863s) the crash still happens on HEAD commit msg: Merge tag 'perf-tools-fixes-for-v5.17-2022-03-12' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux crash: kernel BUG in ext4_writepages EXT4-fs (loop3): mounted filesystem without journal. Quota mode: none. ------------[ cut here ]------------ kernel BUG at fs/ext4/inode.c:2682! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 4036 Comm: syz-executor.3 Not tainted 5.17.0-rc7-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:ext4_writepages+0x1a88/0x2d10 fs/ext4/inode.c:2682 Code: 0f 87 5f d5 4f 06 be 00 10 00 00 ba 01 00 00 00 4c 89 e7 48 d3 ee e8 c7 60 fe ff 83 c0 01 89 84 24 c8 00 00 00 e9 48 eb ff ff <0f> 0b 89 44 24 08 e9 94 ef ff ff 48 8b 7c 24 28 e8 a3 a8 b6 ff e9 RSP: 0018:ffffc90002a2f538 EFLAGS: 00010247 RAX: 000000c410000000 RBX: ffff888077cae000 RCX: ffffffff81f31d82 RDX: 1ffff1100db773c7 RSI: 0000000000000008 RDI: ffff88806dbb9e38 RBP: ffff88806dbb9e38 R08: 0000000000000000 R09: ffff88806dbb9e3f R10: ffffed100db773c7 R11: 0000000000000000 R12: ffff88806dbba088 R13: ffffc90002a2fa70 R14: 0000000000000001 R15: ffff888077cae000 FS: 00007f88c18b0700(0000) GS:ffff8880b9e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffd8ed75e70 CR3: 000000001aa7c000 CR4: 0000000000350ef0 Call Trace: do_writepages+0x16e/0x5f0 mm/page-writeback.c:2364 filemap_fdatawrite_wbc mm/filemap.c:384 [inline] filemap_fdatawrite_wbc+0x107/0x170 mm/filemap.c:374 __filemap_fdatawrite_range mm/filemap.c:417 [inline] file_write_and_wait_range+0x142/0x1a0 mm/filemap.c:775 ext4_sync_file+0x1c8/0xc90 fs/ext4/fsync.c:151 generic_write_sync include/linux/fs.h:2884 [inline] ext4_buffered_write_iter+0x23b/0x320 fs/ext4/file.c:275 ext4_file_write_iter+0x383/0x1150 fs/ext4/file.c:677 call_write_iter include/linux/fs.h:2074 [inline] new_sync_write+0x368/0x600 fs/read_write.c:503 vfs_write+0x609/0x900 fs/read_write.c:590 ksys_write+0xf4/0x1d0 fs/read_write.c:643 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:0x4665d9 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:00007f88c18b0188 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 000000000056bf80 RCX: 00000000004665d9 RDX: 0000000000000082 RSI: 0000000020000180 RDI: 0000000000000004 RBP: 00000000004bfcb9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056bf80 R13: 00007ffc5e3217ff R14: 00007f88c18b0300 R15: 0000000000022000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:ext4_writepages+0x1a88/0x2d10 fs/ext4/inode.c:2682 Code: 0f 87 5f d5 4f 06 be 00 10 00 00 ba 01 00 00 00 4c 89 e7 48 d3 ee e8 c7 60 fe ff 83 c0 01 89 84 24 c8 00 00 00 e9 48 eb ff ff <0f> 0b 89 44 24 08 e9 94 ef ff ff 48 8b 7c 24 28 e8 a3 a8 b6 ff e9 RSP: 0018:ffffc90002a2f538 EFLAGS: 00010247 RAX: 000000c410000000 RBX: ffff888077cae000 RCX: ffffffff81f31d82 RDX: 1ffff1100db773c7 RSI: 0000000000000008 RDI: ffff88806dbb9e38 RBP: ffff88806dbb9e38 R08: 0000000000000000 R09: ffff88806dbb9e3f R10: ffffed100db773c7 R11: 0000000000000000 R12: ffff88806dbba088 R13: ffffc90002a2fa70 R14: 0000000000000001 R15: ffff888077cae000 FS: 00007f88c18b0700(0000) GS:ffff8880b9e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fff623b0cd0 CR3: 000000001aa7c000 CR4: 0000000000350ef0