================================================================== BUG: KCSAN: data-race in __xa_clear_mark / xas_find_marked read-write to 0xffff8881073fd470 of 8 bytes by interrupt on cpu 0: 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 lib/xarray.c:914 [inline] __xa_clear_mark+0xf8/0x1f0 lib/xarray.c:1928 __folio_end_writeback+0x18f/0x4a0 mm/page-writeback.c:3011 folio_end_writeback+0x74/0x1f0 mm/filemap.c:1608 end_buffer_async_write+0x1d1/0x230 fs/buffer.c:411 end_bio_bh_io_sync+0x76/0xa0 fs/buffer.c:2756 bio_endio+0x369/0x410 block/bio.c:1603 req_bio_endio block/blk-mq.c:786 [inline] blk_update_request+0x41c/0x950 block/blk-mq.c:931 blk_mq_end_request+0x26/0x50 block/blk-mq.c:1054 lo_complete_rq+0xce/0x180 drivers/block/loop.c:366 blk_complete_reqs block/blk-mq.c:1129 [inline] blk_done_softirq+0x74/0xb0 block/blk-mq.c:1134 __do_softirq+0xc8/0x285 kernel/softirq.c:554 run_ksoftirqd+0x17/0x30 kernel/softirq.c:924 smpboot_thread_fn+0x31c/0x4c0 kernel/smpboot.c:164 kthread+0x1d1/0x210 kernel/kthread.c:388 ret_from_fork+0x4b/0x60 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 read to 0xffff8881073fd470 of 8 bytes by task 12565 on cpu 1: xas_find_chunk include/linux/xarray.h:1723 [inline] xas_find_marked+0x216/0x660 lib/xarray.c:1354 find_get_entry+0x5d/0x290 mm/filemap.c:1968 filemap_get_folios_tag+0x136/0x210 mm/filemap.c:2218 __filemap_fdatawait_range+0x82/0x140 mm/filemap.c:523 filemap_write_and_wait_range+0xf0/0x1f0 mm/filemap.c:694 filemap_write_and_wait include/linux/pagemap.h:64 [inline] sync_blockdev+0x42/0x60 block/bdev.c:207 sync_filesystem+0x162/0x190 fs/sync.c:70 generic_shutdown_super+0x42/0x210 fs/super.c:620 kill_block_super+0x2a/0x70 fs/super.c:1675 deactivate_locked_super+0x7d/0x1c0 fs/super.c:472 deactivate_super+0x9f/0xb0 fs/super.c:505 cleanup_mnt+0x272/0x2e0 fs/namespace.c:1267 __cleanup_mnt+0x19/0x20 fs/namespace.c:1274 task_work_run+0x13a/0x1a0 kernel/task_work.c:180 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] exit_to_user_mode_loop kernel/entry/common.c:114 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:328 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline] syscall_exit_to_user_mode+0xbe/0x130 kernel/entry/common.c:218 do_syscall_64+0xda/0x1d0 arch/x86/entry/common.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f value changed: 0x0000000000000111 -> 0x0000000000000000 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 12565 Comm: syz-executor.2 Not tainted 6.9.0-rc3-syzkaller-00286-g5939d45155bb #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 ================================================================== EXT4-fs (loop2): unmounting filesystem 00000000-0000-0000-0000-000000000000.