bisecting fixing commit since de64d941a71a8421904c4474415ce7879596f313 building syzkaller on 8b277b8e2ac2f385eec24532a4786cc4ad12e9ae testing commit de64d941a71a8421904c4474415ce7879596f313 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: f6a5c8a0863a00171b9662d12621ff5246abcabf7efcfb518f7618c3eb2dbb3e all runs: crashed: kernel BUG in ext4_writepages testing current HEAD fa7f6a5f56d909d4d321b28a3e23ca0175825042 testing commit fa7f6a5f56d909d4d321b28a3e23ca0175825042 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 8fbc14ace6b59b93c202ca7849c49d68f4679945ae98d9b02877fa4e2d714298 all runs: crashed: kernel BUG in ext4_writepages revisions tested: 2, total time: 15m37.201979853s (build: 9m14.400476015s, test: 5m28.035901621s) the crash still happens on HEAD commit msg: Merge branch 'android12-5.10' into branch 'android12-5.10-lts' crash: kernel BUG in ext4_writepages ------------[ cut here ]------------ kernel BUG at fs/ext4/inode.c:2752! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 422 Comm: syz-executor.0 Not tainted 5.10.118-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/29/2022 RIP: 0010:ext4_writepages+0x1f21/0x2a50 fs/ext4/inode.c:2752 Code: e8 54 69 d1 ff e9 98 ee ff ff 0f 0b 8b 85 18 fd ff ff 31 db 89 85 c8 fd ff ff e9 70 fb ff ff 89 85 c8 fd ff ff e9 cd ea ff ff <0f> 0b 49 8d bc 24 a0 03 00 00 83 c8 01 be 04 00 00 00 89 43 28 e8 RSP: 0018:ffffc90000857508 EFLAGS: 00010247 RAX: 0000008410000000 RBX: ffff88810d28e000 RCX: ffffffff81ba2a3c RDX: 1ffff11023546a60 RSI: 0000000000000008 RDI: ffff88811aa35300 RBP: ffffc90000857858 R08: 0000000000000000 R09: ffff88811aa35307 R10: ffffed1023546a60 R11: 0000000000000000 R12: ffff88811aa35300 R13: 0000000000000001 R14: ffffc90000857830 R15: ffff88811aa35448 FS: 00007fa7a3896700(0000) GS:ffff8881f7300000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020002580 CR3: 000000010d19d000 CR4: 00000000003506a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: do_writepages+0xdc/0x260 mm/page-writeback.c:2358 __filemap_fdatawrite_range+0x25f/0x340 mm/filemap.c:427 file_write_and_wait_range+0x92/0xf0 mm/filemap.c:766 ext4_sync_file+0x187/0xac0 fs/ext4/fsync.c:151 vfs_fsync_range+0xee/0x220 fs/sync.c:200 generic_write_sync include/linux/fs.h:2796 [inline] ext4_buffered_write_iter+0x2df/0x430 fs/ext4/file.c:280 ext4_file_write_iter+0x358/0x1670 fs/ext4/file.c:683 call_write_iter include/linux/fs.h:1947 [inline] new_sync_write+0x358/0x6d0 fs/read_write.c:518 vfs_write+0x4f5/0x750 fs/read_write.c:605 ksys_write+0x111/0x210 fs/read_write.c:658 __do_sys_write fs/read_write.c:670 [inline] __se_sys_write fs/read_write.c:667 [inline] __x64_sys_write+0x6e/0xb0 fs/read_write.c:667 do_syscall_64+0x32/0x80 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x7fa7a39200e9 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fa7a3896168 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fa7a3a32f60 RCX: 00007fa7a39200e9 RDX: 0000000000000016 RSI: 0000000020002580 RDI: 0000000000000009 RBP: 00007fa7a397a08d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffd27e8a20f R14: 00007fa7a3896300 R15: 0000000000022000 Modules linked in: ---[ end trace 5ff0c4f448252c31 ]--- RIP: 0010:ext4_writepages+0x1f21/0x2a50 fs/ext4/inode.c:2752 Code: e8 54 69 d1 ff e9 98 ee ff ff 0f 0b 8b 85 18 fd ff ff 31 db 89 85 c8 fd ff ff e9 70 fb ff ff 89 85 c8 fd ff ff e9 cd ea ff ff <0f> 0b 49 8d bc 24 a0 03 00 00 83 c8 01 be 04 00 00 00 89 43 28 e8 RSP: 0018:ffffc90000857508 EFLAGS: 00010247 RAX: 0000008410000000 RBX: ffff88810d28e000 RCX: ffffffff81ba2a3c RDX: 1ffff11023546a60 RSI: 0000000000000008 RDI: ffff88811aa35300 RBP: ffffc90000857858 R08: 0000000000000000 R09: ffff88811aa35307 R10: ffffed1023546a60 R11: 0000000000000000 R12: ffff88811aa35300 R13: 0000000000000001 R14: ffffc90000857830 R15: ffff88811aa35448 FS: 00007fa7a3896700(0000) GS:ffff8881f7300000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020002580 CR3: 000000010d19d000 CR4: 00000000003506a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400