================================================================== BUG: KCSAN: data-race in __xa_clear_mark / xas_find_marked read-write to 0xffff888117dc2478 of 8 bytes by interrupt 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 lib/xarray.c:922 [inline] __xa_clear_mark+0xf5/0x1e0 lib/xarray.c:2094 __folio_end_writeback+0x177/0x470 mm/page-writeback.c:3047 folio_end_writeback+0xb6/0x3a0 mm/filemap.c:1648 ext4_finish_bio+0x459/0x8c0 fs/ext4/page-io.c:144 ext4_end_bio+0x22a/0x330 fs/ext4/page-io.c:-1 bio_endio+0x34f/0x3f0 block/bio.c:1551 blk_update_request+0x339/0x730 block/blk-mq.c:983 blk_mq_end_request+0x26/0x50 block/blk-mq.c:1145 lo_complete_rq+0x98/0x140 drivers/block/loop.c:304 blk_complete_reqs block/blk-mq.c:1220 [inline] blk_done_softirq+0x74/0xb0 block/blk-mq.c:1225 handle_softirqs+0xb7/0x290 kernel/softirq.c:579 do_softirq+0x5d/0x90 kernel/softirq.c:480 __local_bh_enable_ip+0x70/0x80 kernel/softirq.c:407 __raw_spin_unlock_bh include/linux/spinlock_api_smp.h:167 [inline] _raw_spin_unlock_bh+0x36/0x40 kernel/locking/spinlock.c:210 spin_unlock_bh include/linux/spinlock.h:396 [inline] lock_sock_nested+0x112/0x140 net/core/sock.c:3709 lock_sock include/net/sock.h:1651 [inline] tcp_sock_set_cork+0x20/0x100 net/ipv4/tcp.c:3561 rds_tcp_xmit_path_prepare+0x3e/0x50 net/rds/tcp_send.c:45 rds_send_xmit+0x27f/0x1490 net/rds/send.c:193 rds_send_worker+0x44/0x1c0 net/rds/threads.c:200 process_one_work kernel/workqueue.c:3238 [inline] process_scheduled_works+0x4cb/0x9d0 kernel/workqueue.c:3319 worker_thread+0x582/0x770 kernel/workqueue.c:3400 kthread+0x486/0x510 kernel/kthread.c:464 ret_from_fork+0x4b/0x60 arch/x86/kernel/process.c:153 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 read to 0xffff888117dc2478 of 8 bytes by task 4174 on cpu 0: xas_find_chunk include/linux/xarray.h:1746 [inline] xas_find_marked+0x218/0x620 lib/xarray.c:1510 find_get_entry+0x5d/0x380 mm/filemap.c:2027 filemap_get_folios_tag+0x13b/0x210 mm/filemap.c:2295 __filemap_fdatawait_range mm/filemap.c:530 [inline] file_write_and_wait_range+0x1ea/0x2c0 mm/filemap.c:798 generic_buffers_fsync_noflush+0x45/0x120 fs/buffer.c:611 ext4_fsync_nojournal fs/ext4/fsync.c:88 [inline] ext4_sync_file+0x1ab/0x690 fs/ext4/fsync.c:147 vfs_fsync_range+0x10a/0x130 fs/sync.c:187 generic_write_sync include/linux/fs.h:2976 [inline] ext4_buffered_write_iter+0x34f/0x3c0 fs/ext4/file.c:305 ext4_file_write_iter+0x383/0xf00 fs/ext4/file.c:-1 do_iter_readv_writev+0x41e/0x4c0 fs/read_write.c:-1 vfs_writev+0x2c9/0x870 fs/read_write.c:1055 do_pwritev fs/read_write.c:1151 [inline] __do_sys_pwritev2 fs/read_write.c:1209 [inline] __se_sys_pwritev2+0xfc/0x1c0 fs/read_write.c:1200 __x64_sys_pwritev2+0x67/0x80 fs/read_write.c:1200 x64_sys_call+0x1cea/0x2fb0 arch/x86/include/generated/asm/syscalls_64.h:329 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xd0/0x1a0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f value changed: 0x3fff800000000000 -> 0x3fc0000000000000 Reported by Kernel Concurrency Sanitizer on: CPU: 0 UID: 0 PID: 4174 Comm: syz.0.280 Not tainted 6.15.0-rc4-syzkaller #0 PREEMPT(voluntary) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 ==================================================================