================================================================== BUG: KCSAN: data-race in filemap_write_and_wait_range / xas_set_mark write to 0xffff88810107b674 of 4 bytes by task 31377 on cpu 0: xa_mark_set lib/xarray.c:69 [inline] xas_set_mark+0x11e/0x130 lib/xarray.c:889 tag_pages_for_writeback+0xad/0x2f0 mm/page-writeback.c:2133 write_cache_pages+0x1a8/0x840 mm/page-writeback.c:2203 generic_writepages+0x7c/0xc0 mm/page-writeback.c:2346 blkdev_writepages+0x19/0x20 block/fops.c:374 do_writepages+0x26b/0x3c0 mm/page-writeback.c:2364 filemap_fdatawrite_wbc mm/filemap.c:400 [inline] __filemap_fdatawrite_range mm/filemap.c:433 [inline] filemap_write_and_wait_range+0x238/0x3c0 mm/filemap.c:704 filemap_write_and_wait include/linux/fs.h:2865 [inline] __sync_blockdev block/bdev.c:193 [inline] sync_blockdev+0x3e/0x50 block/bdev.c:202 dquot_quota_sync+0xc6/0x310 fs/quota/dquot.c:695 quota_sync_one+0x7f/0xa0 fs/quota/quota.c:59 iterate_supers+0x137/0x1f0 fs/super.c:695 quota_sync_all fs/quota/quota.c:68 [inline] __do_sys_quotactl fs/quota/quota.c:936 [inline] __se_sys_quotactl+0x27c/0x550 fs/quota/quota.c:915 __x64_sys_quotactl+0x51/0x60 fs/quota/quota.c:915 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x44/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae read to 0xffff88810107b674 of 4 bytes by task 31381 on cpu 1: xa_marked include/linux/xarray.h:418 [inline] mapping_tagged include/linux/fs.h:496 [inline] filemap_fdatawrite_wbc mm/filemap.c:396 [inline] __filemap_fdatawrite_range mm/filemap.c:433 [inline] filemap_write_and_wait_range+0x206/0x3c0 mm/filemap.c:704 filemap_write_and_wait include/linux/fs.h:2865 [inline] __sync_blockdev block/bdev.c:193 [inline] sync_blockdev+0x3e/0x50 block/bdev.c:202 dquot_quota_sync+0xc6/0x310 fs/quota/dquot.c:695 quota_sync_one+0x7f/0xa0 fs/quota/quota.c:59 iterate_supers+0x137/0x1f0 fs/super.c:695 quota_sync_all fs/quota/quota.c:68 [inline] __do_sys_quotactl fs/quota/quota.c:936 [inline] __se_sys_quotactl+0x27c/0x550 fs/quota/quota.c:915 __x64_sys_quotactl+0x51/0x60 fs/quota/quota.c:915 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x44/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae value changed: 0x02000021 -> 0x0e000021 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 31381 Comm: syz-executor.2 Not tainted 5.15.0-rc7-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================