================================================================== BUG: KCSAN: data-race in filemap_flush / xas_set_mark write to 0xffff88810042fbfc of 4 bytes by task 17077 on cpu 0: xa_mark_set lib/xarray.c:69 [inline] xas_set_mark+0x11e/0x130 lib/xarray.c:889 __folio_start_writeback+0x210/0x490 mm/page-writeback.c:2872 set_page_writeback+0x39/0x50 mm/folio-compat.c:77 __block_write_full_page+0x5cf/0xa10 fs/buffer.c:1804 block_write_full_page+0x1f0/0x210 blkdev_writepage+0x20/0x30 block/fops.c:391 __writepage+0x38/0xd0 mm/page-writeback.c:2320 write_cache_pages+0x454/0x7f0 mm/page-writeback.c:2255 generic_writepages+0x7c/0xc0 mm/page-writeback.c:2346 blkdev_writepages+0x19/0x20 block/fops.c:428 do_writepages+0x1cb/0x330 mm/page-writeback.c:2364 __writeback_single_inode+0x81/0x590 fs/fs-writeback.c:1618 writeback_sb_inodes+0x677/0xdf0 fs/fs-writeback.c:1891 __writeback_inodes_wb+0xb0/0x2b0 fs/fs-writeback.c:1961 wb_writeback+0x280/0x650 fs/fs-writeback.c:2066 wb_check_background_flush fs/fs-writeback.c:2132 [inline] wb_do_writeback+0x51d/0x560 fs/fs-writeback.c:2220 wb_workfn+0xc8/0x440 fs/fs-writeback.c:2248 process_one_work+0x3f6/0x960 kernel/workqueue.c:2307 worker_thread+0x616/0xa70 kernel/workqueue.c:2454 kthread+0x2c7/0x2e0 kernel/kthread.c:327 ret_from_fork+0x1f/0x30 read to 0xffff88810042fbfc of 4 bytes by task 1830 on cpu 1: xa_marked include/linux/xarray.h:418 [inline] mapping_tagged include/linux/fs.h:494 [inline] filemap_fdatawrite_wbc mm/filemap.c:391 [inline] __filemap_fdatawrite_range mm/filemap.c:428 [inline] __filemap_fdatawrite mm/filemap.c:434 [inline] filemap_flush+0xa4/0x100 mm/filemap.c:461 sync_blockdev_nowait+0x32/0x40 block/bdev.c:192 sync_filesystem+0xc9/0x150 fs/sync.c:57 generic_shutdown_super+0x40/0x250 fs/super.c:448 kill_block_super+0x4a/0x90 fs/super.c:1397 deactivate_locked_super+0x6a/0xb0 fs/super.c:335 deactivate_super+0x85/0x90 fs/super.c:366 cleanup_mnt+0x267/0x2d0 fs/namespace.c:1143 __cleanup_mnt+0x15/0x20 fs/namespace.c:1150 task_work_run+0x8e/0x110 kernel/task_work.c:164 tracehook_notify_resume include/linux/tracehook.h:189 [inline] exit_to_user_mode_loop kernel/entry/common.c:175 [inline] exit_to_user_mode_prepare+0x160/0x190 kernel/entry/common.c:207 __syscall_exit_to_user_mode_work kernel/entry/common.c:289 [inline] syscall_exit_to_user_mode+0x20/0x40 kernel/entry/common.c:300 do_syscall_64+0x50/0xd0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x44/0xae value changed: 0x02000021 -> 0x04000021 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 1830 Comm: syz-executor.5 Not tainted 5.16.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================