================================================================== BUG: KCSAN: data-race in __xa_clear_mark / find_get_pages_range_tag write to 0xffff88810dbdcfb0 of 8 bytes by task 3043 on cpu 1: instrument_write include/linux/instrumented.h:42 [inline] __instrument_read_write_bitop include/asm-generic/bitops/instrumented-non-atomic.h:79 [inline] __test_and_clear_bit include/asm-generic/bitops/instrumented-non-atomic.h:109 [inline] node_clear_mark lib/xarray.c:100 [inline] xas_clear_mark lib/xarray.c:911 [inline] __xa_clear_mark+0xff/0x1e0 lib/xarray.c:1916 test_clear_page_writeback+0x321/0x520 mm/page-writeback.c:2739 end_page_writeback+0xd7/0x260 mm/filemap.c:1498 ext4_finish_bio+0x429/0x480 fs/ext4/page-io.c:143 ext4_release_io_end+0x98/0x200 fs/ext4/page-io.c:158 ext4_end_io_end fs/ext4/page-io.c:192 [inline] ext4_do_flush_completed_IO fs/ext4/page-io.c:257 [inline] ext4_end_io_rsv_work+0x306/0x360 fs/ext4/page-io.c:271 process_one_work+0x3e1/0x950 kernel/workqueue.c:2275 worker_thread+0x616/0xa70 kernel/workqueue.c:2421 kthread+0x20b/0x230 kernel/kthread.c:292 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:296 read to 0xffff88810dbdcfb0 of 8 bytes by task 16462 on cpu 0: xas_find_chunk include/linux/xarray.h:1660 [inline] xas_next_marked include/linux/xarray.h:1691 [inline] find_get_pages_range_tag+0x35c/0x600 mm/filemap.c:2107 pagevec_lookup_range_tag+0x37/0x50 mm/swap.c:1122 __filemap_fdatawait_range+0xab/0x1b0 mm/filemap.c:519 file_write_and_wait_range+0xea/0x120 mm/filemap.c:765 ext4_sync_file+0x105/0x6e0 fs/ext4/fsync.c:151 vfs_fsync_range fs/sync.c:200 [inline] vfs_fsync fs/sync.c:214 [inline] do_fsync fs/sync.c:224 [inline] __do_sys_fdatasync fs/sync.c:237 [inline] __se_sys_fdatasync fs/sync.c:235 [inline] __x64_sys_fdatasync+0x7a/0xd0 fs/sync.c:235 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 16462 Comm: syz-executor.2 Not tainted 5.11.0-rc7-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================