bisecting fixing commit since f8fbb47c6e86c0b75f8df864db702c3e3f757361 building syzkaller on 3fd2ea69e05557e7e0fef9b68263b4150670671c testing commit f8fbb47c6e86c0b75f8df864db702c3e3f757361 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 7820ecaf4fd4fd64f5282a9c070548b3df9a2ee8a328ae50b99e167b38468aa1 all runs: crashed: WARNING in __set_page_dirty testing current HEAD 26291c54e111ff6ba87a164d85d4a4e134b7315c testing commit 26291c54e111ff6ba87a164d85d4a4e134b7315c compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 99cdfbe9d32370009a1dd32386fcc3b9d40b03e0349445e039ee0ca981db7367 all runs: crashed: WARNING in __folio_mark_dirty revisions tested: 2, total time: 19m40.609531787s (build: 13m1.996351466s, test: 5m51.107929748s) the crash still happens on HEAD commit msg: Linux 5.17-rc2 crash: WARNING in __folio_mark_dirty ------------[ cut here ]------------ WARNING: CPU: 0 PID: 4053 at include/linux/backing-dev.h:269 inode_to_wb include/linux/backing-dev.h:269 [inline] WARNING: CPU: 0 PID: 4053 at include/linux/backing-dev.h:269 folio_account_dirtied mm/page-writeback.c:2460 [inline] WARNING: CPU: 0 PID: 4053 at include/linux/backing-dev.h:269 __folio_mark_dirty+0x82b/0xb80 mm/page-writeback.c:2513 Modules linked in: CPU: 0 PID: 4053 Comm: segctord Not tainted 5.17.0-rc2-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:inode_to_wb include/linux/backing-dev.h:269 [inline] RIP: 0010:folio_account_dirtied mm/page-writeback.c:2460 [inline] RIP: 0010:__folio_mark_dirty+0x82b/0xb80 mm/page-writeback.c:2513 Code: 03 00 00 48 8b 83 a8 01 00 00 be ff ff ff ff 4c 89 44 24 08 48 8d 78 70 e8 02 f3 ee 06 4c 8b 44 24 08 85 c0 0f 85 61 fb ff ff <0f> 0b e9 5a fb ff ff e8 29 f4 ee 06 85 c0 0f 84 2d ff ff ff 80 3d RSP: 0018:ffffc90002a1f8e8 EFLAGS: 00010046 RAX: 0000000000000000 RBX: ffff888062d1ae20 RCX: 0000000000000001 RDX: 0000000000000000 RSI: ffffffff88eba7e0 RDI: ffffffff89425a60 RBP: ffffea0001cd4280 R08: ffff888062d1afc8 R09: ffffea0001cd4287 R10: fffff9400039a850 R11: 0000000000000009 R12: 0000000000000296 R13: ffff888062d1abe0 R14: 0000000000000001 R15: 0000000000000001 FS: 0000000000000000(0000) GS:ffff8880b9e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000970004 CR3: 000000000aa8e000 CR4: 0000000000350ef0 Call Trace: __set_page_dirty include/linux/pagemap.h:879 [inline] mark_buffer_dirty+0x322/0x420 fs/buffer.c:1108 nilfs_btree_propagate_p fs/nilfs2/btree.c:1889 [inline] nilfs_btree_propagate+0x3f4/0xc80 fs/nilfs2/btree.c:2085 nilfs_bmap_propagate+0x6e/0x150 fs/nilfs2/bmap.c:337 nilfs_collect_dat_data+0x3f/0xa0 fs/nilfs2/segment.c:625 nilfs_segctor_apply_buffers+0x156/0x3f0 fs/nilfs2/segment.c:1009 nilfs_segctor_scan_file+0x35a/0x6c0 fs/nilfs2/segment.c:1058 nilfs_segctor_collect_blocks fs/nilfs2/segment.c:1224 [inline] nilfs_segctor_collect fs/nilfs2/segment.c:1494 [inline] nilfs_segctor_do_construct+0x1378/0x6110 fs/nilfs2/segment.c:2036 nilfs_segctor_construct+0x637/0x940 fs/nilfs2/segment.c:2372 nilfs_segctor_thread_construct fs/nilfs2/segment.c:2480 [inline] nilfs_segctor_thread+0x36d/0xda0 fs/nilfs2/segment.c:2563 kthread+0x299/0x340 kernel/kthread.c:377 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295