EXT4-fs (loop4): mounted filesystem 00000000-0000-0000-0000-000000000000 r/w without journal. Quota mode: none. ================================================================== BUG: KCSAN: data-race in __xa_clear_mark / xas_find_marked read-write to 0xffff888106219228 of 8 bytes by task 50 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:915 [inline] __xa_clear_mark+0xf8/0x1f0 lib/xarray.c:1957 __folio_end_writeback+0x187/0x490 mm/page-writeback.c:3093 folio_end_writeback+0x74/0x1f0 mm/filemap.c:1633 ext4_finish_bio+0x476/0x8e0 fs/ext4/page-io.c:144 ext4_release_io_end+0x8c/0x1f0 fs/ext4/page-io.c:159 ext4_end_io_end fs/ext4/page-io.c:193 [inline] ext4_do_flush_completed_IO fs/ext4/page-io.c:258 [inline] ext4_end_io_rsv_work+0x2cd/0x360 fs/ext4/page-io.c:272 process_one_work kernel/workqueue.c:3229 [inline] process_scheduled_works+0x483/0x9a0 kernel/workqueue.c:3310 worker_thread+0x51d/0x6f0 kernel/workqueue.c:3391 kthread+0x1d1/0x210 kernel/kthread.c:389 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 0xffff888106219228 of 8 bytes by task 6213 on cpu 1: xas_find_chunk include/linux/xarray.h:1733 [inline] xas_find_marked+0x216/0x660 lib/xarray.c:1370 find_get_entry+0x54/0x390 mm/filemap.c:1993 filemap_get_folios_tag+0x136/0x210 mm/filemap.c:2260 __filemap_fdatawait_range mm/filemap.c:523 [inline] file_write_and_wait_range+0x204/0x2f0 mm/filemap.c:791 generic_buffers_fsync_noflush+0x46/0x120 fs/buffer.c:600 ext4_fsync_nojournal fs/ext4/fsync.c:88 [inline] ext4_sync_file+0x1ff/0x6c0 fs/ext4/fsync.c:151 vfs_fsync_range+0x116/0x130 fs/sync.c:187 generic_write_sync include/linux/fs.h:2904 [inline] ext4_buffered_write_iter+0x326/0x370 fs/ext4/file.c:305 ext4_file_write_iter+0x383/0xf20 new_sync_write fs/read_write.c:586 [inline] vfs_write+0x77f/0x920 fs/read_write.c:679 ksys_write+0xe8/0x1b0 fs/read_write.c:731 __do_sys_write fs/read_write.c:742 [inline] __se_sys_write fs/read_write.c:739 [inline] __x64_sys_write+0x42/0x50 fs/read_write.c:739 x64_sys_call+0x287e/0x2dc0 arch/x86/include/generated/asm/syscalls_64.h:2 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xc9/0x1c0 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f value changed: 0xffffffff00000000 -> 0xffffffe000000000 Reported by Kernel Concurrency Sanitizer on: CPU: 1 UID: 0 PID: 6213 Comm: syz.4.899 Tainted: G W 6.12.0-syzkaller-10740-g509f806f7f70 #0 Tainted: [W]=WARN Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 ==================================================================