================================================================== BUG: KCSAN: data-race in xas_find_marked / xas_init_marks write to 0xffff88804cc29b38 of 8 bytes by task 23602 on cpu 1: instrument_write include/linux/instrumented.h:42 [inline] __test_and_clear_bit include/asm-generic/bitops/instrumented-non-atomic.h:85 [inline] node_clear_mark lib/xarray.c:100 [inline] xas_clear_mark lib/xarray.c:908 [inline] xas_init_marks+0x17e/0x310 lib/xarray.c:941 xas_store+0x213/0xd00 lib/xarray.c:803 page_cache_delete_batch mm/filemap.c:336 [inline] delete_from_page_cache_batch+0x41e/0x830 mm/filemap.c:357 truncate_inode_pages_range+0x492/0xf10 mm/truncate.c:366 truncate_inode_pages mm/truncate.c:476 [inline] truncate_pagecache+0x4f/0x70 mm/truncate.c:817 ext4_setattr+0xb03/0xec0 fs/ext4/inode.c:5403 notify_change+0x7d4/0xa20 fs/attr.c:336 do_truncate+0xe0/0x120 fs/open.c:64 handle_truncate fs/namei.c:2901 [inline] do_open fs/namei.c:3247 [inline] path_openat+0x1a4c/0x20e0 fs/namei.c:3360 do_filp_open+0xbd/0x1d0 fs/namei.c:3387 do_sys_openat2+0x33c/0x4a0 fs/open.c:1179 do_sys_open fs/open.c:1195 [inline] ksys_open include/linux/syscalls.h:1388 [inline] __do_sys_creat fs/open.c:1263 [inline] __se_sys_creat fs/open.c:1261 [inline] __x64_sys_creat+0x62/0x80 fs/open.c:1261 do_syscall_64+0x51/0xb0 arch/x86/entry/common.c:384 entry_SYSCALL_64_after_hwframe+0x44/0xa9 read to 0xffff88804cc29b38 of 8 bytes by task 23596 on cpu 0: xas_find_chunk include/linux/xarray.h:1625 [inline] xas_find_marked+0x22f/0x6b0 lib/xarray.c:1198 find_get_pages_range_tag+0xa3/0x580 mm/filemap.c:1908 pagevec_lookup_range_tag+0x37/0x50 mm/swap.c:1120 mpage_prepare_extent_to_map+0x19c/0x650 fs/ext4/inode.c:2559 ext4_writepages+0x682/0x1ef0 fs/ext4/inode.c:2736 do_writepages+0x7b/0x150 mm/page-writeback.c:2354 __filemap_fdatawrite_range+0x19b/0x1d0 mm/filemap.c:421 file_write_and_wait_range+0x9f/0x120 mm/filemap.c:760 ext4_sync_file+0xfc/0x6e0 fs/ext4/fsync.c:151 vfs_fsync_range+0x107/0x120 fs/sync.c:200 generic_write_sync include/linux/fs.h:2882 [inline] ext4_buffered_write_iter+0x369/0x3b0 fs/ext4/file.c:277 ext4_file_write_iter+0x76f/0x1010 include/linux/fs.h:805 call_write_iter include/linux/fs.h:1908 [inline] new_sync_write fs/read_write.c:503 [inline] vfs_write+0x607/0x690 fs/read_write.c:578 ksys_write+0xce/0x180 fs/read_write.c:631 __do_sys_write fs/read_write.c:643 [inline] __se_sys_write fs/read_write.c:640 [inline] __x64_sys_write+0x3e/0x50 fs/read_write.c:640 do_syscall_64+0x51/0xb0 arch/x86/entry/common.c:384 entry_SYSCALL_64_after_hwframe+0x44/0xa9 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 23596 Comm: syz-executor.3 Not tainted 5.8.0-rc7-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================