================================================================== BUG: KCSAN: data-race in xas_clear_mark / xas_find_marked read-write to 0xffff88811af95fe0 of 8 bytes by task 14133 on cpu 1: instrument_read_write include/linux/instrumented.h:55 [inline] __instrument_read_write_bitop include/asm-generic/bitops/instrumented-non-atomic.h:84 [inline] ___test_and_clear_bit include/asm-generic/bitops/instrumented-non-atomic.h:114 [inline] node_clear_mark lib/xarray.c:102 [inline] xas_clear_mark+0x91/0x180 lib/xarray.c:922 __folio_start_writeback+0x2e7/0x440 mm/page-writeback.c:3092 __block_write_full_folio+0x53a/0x8f0 fs/buffer.c:1934 block_write_full_folio+0x2c2/0x2e0 fs/buffer.c:-1 blkdev_writepages+0x88/0x100 block/fops.c:483 do_writepages+0x1c6/0x310 mm/page-writeback.c:2636 filemap_fdatawrite_wbc mm/filemap.c:386 [inline] __filemap_fdatawrite_range mm/filemap.c:419 [inline] filemap_write_and_wait_range+0x144/0x340 mm/filemap.c:691 filemap_write_and_wait include/linux/pagemap.h:68 [inline] sync_blockdev+0x35/0x50 block/bdev.c:260 loop_set_status+0x10f/0x5f0 drivers/block/loop.c:1234 lo_ioctl+0x75b/0x15d0 drivers/block/loop.c:-1 blkdev_ioctl+0x34f/0x440 block/ioctl.c:704 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:907 [inline] __se_sys_ioctl+0xce/0x140 fs/ioctl.c:893 __x64_sys_ioctl+0x43/0x50 fs/ioctl.c:893 x64_sys_call+0x19a8/0x2fb0 arch/x86/include/generated/asm/syscalls_64.h:17 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xd2/0x200 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f read to 0xffff88811af95fe0 of 8 bytes by task 14130 on cpu 0: xas_find_chunk include/linux/xarray.h:1752 [inline] xas_find_marked+0x218/0x620 lib/xarray.c:1510 find_get_entry+0x5d/0x380 mm/filemap.c:2038 filemap_get_folios_tag+0x92/0x210 mm/filemap.c:2306 writeback_get_folio mm/page-writeback.c:2463 [inline] writeback_iter+0x4bb/0x820 mm/page-writeback.c:2564 blkdev_writepages+0xa7/0x100 block/fops.c:482 do_writepages+0x1c6/0x310 mm/page-writeback.c:2636 filemap_fdatawrite_wbc mm/filemap.c:386 [inline] __filemap_fdatawrite_range mm/filemap.c:419 [inline] filemap_write_and_wait_range+0x144/0x340 mm/filemap.c:691 filemap_write_and_wait include/linux/pagemap.h:68 [inline] sync_blockdev+0x35/0x50 block/bdev.c:260 bdev_disk_changed+0xdb/0xcb0 block/partitions/core.c:656 blkdev_get_whole+0x1f5/0x2d0 block/bdev.c:748 bdev_open+0x280/0x7e0 block/bdev.c:957 blkdev_open+0x259/0x290 block/fops.c:676 do_dentry_open+0x646/0xa20 fs/open.c:964 vfs_open+0x37/0x1e0 fs/open.c:1094 do_open fs/namei.c:3896 [inline] path_openat+0x1c5e/0x2170 fs/namei.c:4055 do_filp_open+0x109/0x230 fs/namei.c:4082 do_sys_openat2+0xa6/0x110 fs/open.c:1437 do_sys_open fs/open.c:1452 [inline] __do_sys_openat fs/open.c:1468 [inline] __se_sys_openat fs/open.c:1463 [inline] __x64_sys_openat+0xf2/0x120 fs/open.c:1463 x64_sys_call+0x1af/0x2fb0 arch/x86/include/generated/asm/syscalls_64.h:258 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xd2/0x200 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f value changed: 0xfffffffc00000000 -> 0xffffff0000000000 Reported by Kernel Concurrency Sanitizer on: CPU: 0 UID: 0 PID: 14130 Comm: syz.8.3799 Not tainted 6.16.0-rc2-syzkaller-00231-g75f5f23f8787 #0 PREEMPT(voluntary) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 ==================================================================