================================================================== BUG: KCSAN: data-race in xas_create / xas_find_marked write to 0xffff8881446f4921 of 1 bytes by task 4052 on cpu 1: xas_expand lib/xarray.c:612 [inline] xas_create+0x656/0xbb0 lib/xarray.c:653 xas_store+0x78/0xc90 lib/xarray.c:787 __filemap_add_folio+0x360/0x750 mm/filemap.c:900 filemap_add_folio+0x70/0x160 mm/filemap.c:939 page_cache_ra_unbounded+0x15e/0x2e0 mm/readahead.c:250 do_page_cache_ra mm/readahead.c:299 [inline] force_page_cache_ra mm/readahead.c:330 [inline] page_cache_sync_ra+0x24b/0x2a0 mm/readahead.c:691 page_cache_sync_readahead include/linux/pagemap.h:1293 [inline] filemap_get_pages+0x251/0xe90 mm/filemap.c:2556 filemap_read+0x214/0x680 mm/filemap.c:2652 blkdev_read_iter+0x217/0x2c0 block/fops.c:730 call_read_iter include/linux/fs.h:1979 [inline] new_sync_read fs/read_write.c:389 [inline] vfs_read+0x3da/0x5c0 fs/read_write.c:470 ksys_read+0xeb/0x1a0 fs/read_write.c:613 __do_sys_read fs/read_write.c:623 [inline] __se_sys_read fs/read_write.c:621 [inline] __x64_sys_read+0x42/0x50 fs/read_write.c:621 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd read to 0xffff8881446f4921 of 1 bytes by task 5692 on cpu 0: xas_find_marked+0x419/0x660 lib/xarray.c:1338 find_get_entry+0x5d/0x290 mm/filemap.c:1978 filemap_get_folios_tag+0x126/0x250 mm/filemap.c:2266 write_cache_pages+0x20d/0x740 mm/page-writeback.c:2429 do_writepages+0x20f/0x340 mm/page-writeback.c:2558 filemap_fdatawrite_wbc+0xdb/0xf0 mm/filemap.c:390 __filemap_fdatawrite_range mm/filemap.c:423 [inline] __filemap_fdatawrite mm/filemap.c:429 [inline] filemap_flush+0x95/0xc0 mm/filemap.c:456 sync_blockdev_nowait+0x36/0x50 block/bdev.c:186 sync_filesystem+0xe0/0x180 fs/sync.c:60 generic_shutdown_super+0x42/0x210 fs/super.c:666 kill_block_super+0x2a/0x60 fs/super.c:1646 deactivate_locked_super+0x73/0x1c0 fs/super.c:481 deactivate_super+0x9b/0xb0 fs/super.c:514 cleanup_mnt+0x272/0x2e0 fs/namespace.c:1254 __cleanup_mnt+0x19/0x20 fs/namespace.c:1261 task_work_run+0x135/0x1a0 kernel/task_work.c:179 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop+0xd1/0xe0 kernel/entry/common.c:171 exit_to_user_mode_prepare+0x6c/0xb0 kernel/entry/common.c:204 __syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline] syscall_exit_to_user_mode+0x26/0x140 kernel/entry/common.c:296 do_syscall_64+0x4d/0xc0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x63/0xcd value changed: 0x16 -> 0x00 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 5692 Comm: syz-executor.1 Not tainted 6.6.0-rc1-syzkaller-00115-g9fdfb15a3dbf #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/04/2023 ==================================================================