================================================================== BUG: KCSAN: data-race in __xa_set_mark / find_get_pages_range_tag write to 0xffff888125093d68 of 8 bytes by task 23127 on cpu 0: instrument_write include/linux/instrumented.h:42 [inline] __test_and_set_bit include/asm-generic/bitops/instrumented-non-atomic.h:71 [inline] node_set_mark lib/xarray.c:93 [inline] xas_set_mark lib/xarray.c:879 [inline] __xa_set_mark+0x233/0x330 lib/xarray.c:1708 __set_page_dirty+0x17e/0x1d0 fs/buffer.c:609 mark_buffer_dirty+0x12e/0x260 fs/buffer.c:1137 __ext4_handle_dirty_metadata+0x20a/0x5a0 fs/ext4/ext4_jbd2.c:337 ext4_do_update_inode fs/ext4/inode.c:5072 [inline] ext4_mark_iloc_dirty+0x1302/0x1660 fs/ext4/inode.c:5624 __ext4_mark_inode_dirty+0x448/0x630 fs/ext4/inode.c:5818 add_dirent_to_buf+0x465/0x5e0 fs/ext4/namei.c:2031 ext4_add_entry+0x655/0x21a0 fs/ext4/namei.c:2243 ext4_add_nondir+0x50/0x1a0 fs/ext4/namei.c:2579 ext4_create+0x219/0x2d0 fs/ext4/namei.c:2624 vfs_create+0x238/0x310 fs/namei.c:2805 ovl_do_create fs/overlayfs/overlayfs.h:141 [inline] ovl_create_real+0x11b/0x250 fs/overlayfs/dir.c:188 ovl_create_upper fs/overlayfs/dir.c:332 [inline] ovl_create_or_link+0x496/0xd60 fs/overlayfs/dir.c:606 ovl_create_object+0x119/0x180 fs/overlayfs/dir.c:642 ovl_create+0x25/0x30 fs/overlayfs/dir.c:656 lookup_open fs/namei.c:3095 [inline] open_last_lookups fs/namei.c:3169 [inline] path_openat+0xcad/0x20e0 fs/namei.c:3357 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_open fs/open.c:1201 [inline] __se_sys_open fs/open.c:1199 [inline] __x64_sys_open+0xe2/0x110 fs/open.c:1199 do_syscall_64+0x51/0xb0 arch/x86/entry/common.c:384 entry_SYSCALL_64_after_hwframe+0x44/0xa9 read to 0xffff888125093d68 of 8 bytes by task 9205 on cpu 1: xas_find_chunk include/linux/xarray.h:1625 [inline] xas_next_marked include/linux/xarray.h:1656 [inline] find_get_pages_range_tag+0x30c/0x580 mm/filemap.c:1967 pagevec_lookup_range_tag+0x37/0x50 mm/swap.c:1120 write_cache_pages+0x1f8/0x840 mm/page-writeback.c:2205 generic_writepages+0x64/0xa0 mm/page-writeback.c:2339 blkdev_writepages+0x19/0x20 fs/block_dev.c:1948 do_writepages+0x7b/0x150 mm/page-writeback.c:2354 __filemap_fdatawrite_range+0x19b/0x1d0 mm/filemap.c:421 __filemap_fdatawrite mm/filemap.c:429 [inline] filemap_flush+0x1f/0x30 mm/filemap.c:456 __sync_blockdev+0x69/0x70 fs/block_dev.c:479 __sync_filesystem fs/sync.c:40 [inline] sync_filesystem+0xcb/0x160 fs/sync.c:64 ovl_sync_fs+0x74/0x90 fs/overlayfs/super.c:281 __sync_filesystem fs/sync.c:39 [inline] sync_filesystem+0x112/0x160 fs/sync.c:67 generic_shutdown_super+0x42/0x210 fs/super.c:448 kill_anon_super+0x23/0x40 fs/super.c:1108 deactivate_locked_super+0x6a/0xb0 fs/super.c:335 deactivate_super+0x85/0x90 fs/super.c:366 cleanup_mnt+0x277/0x2e0 fs/namespace.c:1118 __cleanup_mnt+0x15/0x20 fs/namespace.c:1125 task_work_run+0x8e/0x110 kernel/task_work.c:135 tracehook_notify_resume include/linux/tracehook.h:188 [inline] exit_to_usermode_loop arch/x86/entry/common.c:239 [inline] __prepare_exit_to_usermode+0x1c6/0x230 arch/x86/entry/common.c:269 __syscall_return_slowpath+0x47/0x60 arch/x86/entry/common.c:352 do_syscall_64+0x5d/0xb0 arch/x86/entry/common.c:393 entry_SYSCALL_64_after_hwframe+0x44/0xa9 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 9205 Comm: syz-executor.4 Not tainted 5.8.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================