loop4: detected capacity change from 0 to 65536 ================================================================== BUG: KCSAN: data-race in __xa_clear_mark / xas_find_marked read-write to 0xffff888106329228 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: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 mpage_write_end_io+0x27c/0x390 fs/mpage.c:65 bio_endio+0x369/0x410 block/bio.c:1645 blk_update_request+0x368/0x860 block/blk-mq.c:980 blk_mq_end_request+0x26/0x50 block/blk-mq.c:1142 lo_complete_rq+0xce/0x180 drivers/block/loop.c:386 blk_complete_reqs block/blk-mq.c:1217 [inline] blk_done_softirq+0x74/0xb0 block/blk-mq.c:1222 handle_softirqs+0xbf/0x280 kernel/softirq.c:554 run_ksoftirqd+0x1c/0x30 kernel/softirq.c:943 smpboot_thread_fn+0x31c/0x4c0 kernel/smpboot.c:164 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 0xffff888106329228 of 8 bytes by task 3999 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] filemap_write_and_wait_range+0x1d5/0x360 mm/filemap.c:693 direct_write_fallback+0x73/0x110 fs/libfs.c:2089 __generic_file_write_iter+0xfd/0x120 mm/filemap.c:4152 generic_file_write_iter+0x77/0x1c0 mm/filemap.c:4182 do_iter_readv_writev+0x394/0x450 vfs_writev+0x2d4/0x880 fs/read_write.c:1050 do_pwritev fs/read_write.c:1146 [inline] __do_sys_pwritev2 fs/read_write.c:1204 [inline] __se_sys_pwritev2+0x100/0x1c0 fs/read_write.c:1195 __x64_sys_pwritev2+0x78/0x90 fs/read_write.c:1195 x64_sys_call+0x2afe/0x2dc0 arch/x86/include/generated/asm/syscalls_64.h:329 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: 0xffffffffffffffff -> 0xfffffff800000000 Reported by Kernel Concurrency Sanitizer on: CPU: 1 UID: 0 PID: 3999 Comm: syz.4.263 Not tainted 6.12.0-syzkaller-12113-gbcc8eda6d349 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 ==================================================================