================================================================== BUG: KCSAN: data-race in xas_find_marked / xas_init_marks write to 0xffff888092b46b38 of 8 bytes by task 19836 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:337 [inline] delete_from_page_cache_batch+0x41e/0x830 mm/filemap.c:358 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+0xb05/0xec0 fs/ext4/inode.c:5403 notify_change+0x7d7/0xa80 fs/attr.c:336 do_truncate+0xe0/0x120 fs/open.c:64 handle_truncate fs/namei.c:2907 [inline] do_open fs/namei.c:3253 [inline] path_openat+0x1a31/0x20a0 fs/namei.c:3366 do_filp_open+0xbd/0x1d0 fs/namei.c:3393 do_sys_openat2+0x33b/0x500 fs/open.c:1168 do_sys_open fs/open.c:1184 [inline] __do_sys_creat fs/open.c:1258 [inline] __se_sys_creat fs/open.c:1252 [inline] __x64_sys_creat+0x62/0x80 fs/open.c:1252 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 read to 0xffff888092b46b38 of 8 bytes by task 3441 on cpu 0: xas_find_chunk include/linux/xarray.h:1625 [inline] xas_find_marked+0x22f/0x6b0 lib/xarray.c:1198 xas_next_marked include/linux/xarray.h:1661 [inline] find_get_pages_range_tag+0x3b6/0x580 mm/filemap.c:1976 pagevec_lookup_range_tag+0x37/0x50 mm/swap.c:1121 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:2352 __writeback_single_inode+0x81/0x610 fs/fs-writeback.c:1452 writeback_sb_inodes+0x5ac/0xe40 fs/fs-writeback.c:1716 wb_writeback+0x2b8/0x730 fs/fs-writeback.c:1892 wb_do_writeback+0x108/0x610 fs/fs-writeback.c:2037 wb_workfn+0xc8/0x460 fs/fs-writeback.c:2078 process_one_work+0x3e1/0x9a0 kernel/workqueue.c:2269 worker_thread+0x665/0xbe0 kernel/workqueue.c:2415 kthread+0x20d/0x230 kernel/kthread.c:292 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 3441 Comm: kworker/u4:4 Not tainted 5.8.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: writeback wb_workfn (flush-8:0) ==================================================================