================================================================== BUG: KCSAN: data-race in xas_find_marked / xas_init_marks read-write to 0xffff88811fdc4da0 of 8 bytes by task 10755 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] xas_init_marks+0x17e/0x320 lib/xarray.c:947 xas_store+0x213/0xc90 lib/xarray.c:809 page_cache_delete_batch mm/filemap.c:321 [inline] delete_from_page_cache_batch+0x31d/0x710 mm/filemap.c:343 truncate_inode_pages_range+0x1c5/0x6b0 mm/truncate.c:359 truncate_inode_pages mm/truncate.c:439 [inline] truncate_pagecache+0x53/0x70 mm/truncate.c:732 ext4_setattr+0xa07/0xeb0 fs/ext4/inode.c:5448 notify_change+0x814/0x8a0 fs/attr.c:497 do_truncate+0x116/0x160 fs/open.c:65 handle_truncate fs/namei.c:3300 [inline] do_open fs/namei.c:3646 [inline] path_openat+0x1a04/0x1d80 fs/namei.c:3799 do_filp_open+0xf7/0x200 fs/namei.c:3826 do_sys_openat2+0xab/0x120 fs/open.c:1406 do_sys_open fs/open.c:1421 [inline] __do_sys_openat fs/open.c:1437 [inline] __se_sys_openat fs/open.c:1432 [inline] __x64_sys_openat+0xf3/0x120 fs/open.c:1432 x64_sys_call+0x2cad/0x2d30 arch/x86/include/generated/asm/syscalls_64.h:258 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x1d0 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f read to 0xffff88811fdc4da0 of 8 bytes by task 10756 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 mpage_prepare_extent_to_map+0x329/0xb80 fs/ext4/inode.c:2392 ext4_do_writepages+0xa20/0x2110 fs/ext4/inode.c:2677 ext4_writepages+0x159/0x2e0 fs/ext4/inode.c:2768 do_writepages+0x1d8/0x480 mm/page-writeback.c:2612 filemap_fdatawrite_wbc+0xdb/0x100 mm/filemap.c:397 __filemap_fdatawrite_range mm/filemap.c:430 [inline] file_write_and_wait_range+0xc8/0x170 mm/filemap.c:788 ext4_sync_file+0x134/0x6c0 fs/ext4/fsync.c:158 vfs_fsync_range+0x122/0x140 fs/sync.c:188 generic_write_sync include/linux/fs.h:2795 [inline] ext4_buffered_write_iter+0x338/0x380 fs/ext4/file.c:305 ext4_file_write_iter+0x29f/0xe30 call_write_iter include/linux/fs.h:2110 [inline] new_sync_write fs/read_write.c:497 [inline] vfs_write+0x771/0x8e0 fs/read_write.c:590 ksys_write+0xeb/0x1b0 fs/read_write.c:643 __do_sys_write fs/read_write.c:655 [inline] __se_sys_write fs/read_write.c:652 [inline] __x64_sys_write+0x42/0x50 fs/read_write.c:652 x64_sys_call+0x27b7/0x2d30 arch/x86/include/generated/asm/syscalls_64.h:2 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x1d0 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f value changed: 0x000000000000ffff -> 0x0000000000000000 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 10756 Comm: syz-executor.2 Tainted: G W 6.9.0-rc5-syzkaller-00355-g2c8159388952 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 ==================================================================