==================================================================
BUG: KCSAN: data-race in find_get_pages_range_tag / xas_clear_mark

write to 0xffff88810ef60238 of 8 bytes by task 8430 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+0xa1/0x180 lib/xarray.c:911
 __test_set_page_writeback+0x3db/0x4d0 mm/page-writeback.c:2802
 set_page_writeback include/linux/page-flags.h:562 [inline]
 __block_write_full_page+0x5a2/0x9e0 fs/buffer.c:1805
 block_write_full_page+0x260/0x290 fs/buffer.c:2980
 blkdev_writepage+0x20/0x30 fs/block_dev.c:626
 __writepage+0x32/0xc0 mm/page-writeback.c:2311
 write_cache_pages+0x4cc/0x820 mm/page-writeback.c:2246
 generic_writepages+0x64/0xa0 mm/page-writeback.c:2337
 blkdev_writepages+0x19/0x20 fs/block_dev.c:1735
 do_writepages+0x7b/0x150 mm/page-writeback.c:2352
 __filemap_fdatawrite_range+0x19d/0x1d0 mm/filemap.c:422
 filemap_write_and_wait_range+0x8b/0x2a0 mm/filemap.c:655
 filemap_write_and_wait include/linux/fs.h:2647 [inline]
 __sync_blockdev+0x51/0x70 fs/block_dev.c:513
 __sync_filesystem fs/sync.c:40 [inline]
 sync_filesystem+0x135/0x160 fs/sync.c:67
 ovl_sync_fs+0x9c/0xe0 fs/overlayfs/super.c:295
 __sync_filesystem fs/sync.c:39 [inline]
 sync_filesystem+0x112/0x160 fs/sync.c:67
 generic_shutdown_super+0x42/0x210 fs/super.c:448
 kill_anon_super+0x23/0x40 fs/super.c:1055
 deactivate_locked_super+0x6a/0xb0 fs/super.c:335
 deactivate_super+0x85/0x90 fs/super.c:366
 cleanup_mnt+0x277/0x2e0 fs/namespace.c:1118
 __cleanup_mnt+0x15/0x20 fs/namespace.c:1125
 task_work_run+0x8e/0x110 kernel/task_work.c:140
 tracehook_notify_resume include/linux/tracehook.h:189 [inline]
 exit_to_user_mode_loop kernel/entry/common.c:174 [inline]
 exit_to_user_mode_prepare+0x17c/0x1b0 kernel/entry/common.c:201
 __syscall_exit_to_user_mode_work kernel/entry/common.c:283 [inline]
 syscall_exit_to_user_mode+0x20/0x40 kernel/entry/common.c:294
 do_syscall_64+0x45/0x80 arch/x86/entry/common.c:56
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff88810ef60238 of 8 bytes by task 8428 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
 write_cache_pages+0x1f8/0x820 mm/page-writeback.c:2203
 generic_writepages+0x64/0xa0 mm/page-writeback.c:2337
 blkdev_writepages+0x19/0x20 fs/block_dev.c:1735
 do_writepages+0x7b/0x150 mm/page-writeback.c:2352
 __filemap_fdatawrite_range+0x19d/0x1d0 mm/filemap.c:422
 filemap_write_and_wait_range+0x8b/0x2a0 mm/filemap.c:655
 filemap_write_and_wait include/linux/fs.h:2647 [inline]
 __sync_blockdev+0x51/0x70 fs/block_dev.c:513
 __sync_filesystem fs/sync.c:40 [inline]
 sync_filesystem+0x135/0x160 fs/sync.c:67
 ovl_sync_fs+0x9c/0xe0 fs/overlayfs/super.c:295
 __sync_filesystem fs/sync.c:39 [inline]
 sync_filesystem+0x112/0x160 fs/sync.c:67
 generic_shutdown_super+0x42/0x210 fs/super.c:448
 kill_anon_super+0x23/0x40 fs/super.c:1055
 deactivate_locked_super+0x6a/0xb0 fs/super.c:335
 deactivate_super+0x85/0x90 fs/super.c:366
 cleanup_mnt+0x277/0x2e0 fs/namespace.c:1118
 __cleanup_mnt+0x15/0x20 fs/namespace.c:1125
 task_work_run+0x8e/0x110 kernel/task_work.c:140
 tracehook_notify_resume include/linux/tracehook.h:189 [inline]
 exit_to_user_mode_loop kernel/entry/common.c:174 [inline]
 exit_to_user_mode_prepare+0x17c/0x1b0 kernel/entry/common.c:201
 __syscall_exit_to_user_mode_work kernel/entry/common.c:283 [inline]
 syscall_exit_to_user_mode+0x20/0x40 kernel/entry/common.c:294
 do_syscall_64+0x45/0x80 arch/x86/entry/common.c:56
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 8428 Comm: syz-executor.2 Not tainted 5.11.0-rc6-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================