================================================================== BUG: KCSAN: data-race in page_counter_try_charge / page_counter_try_charge write to 0xffff88821b672150 of 8 bytes by task 11027 on cpu 0: page_counter_try_charge+0x7e/0x170 mm/page_counter.c:139 try_charge+0x185/0xbf0 mm/memcontrol.c:2405 mem_cgroup_try_charge+0xd2/0x260 mm/memcontrol.c:6404 __add_to_page_cache_locked+0x163/0x780 mm/filemap.c:866 add_to_page_cache_lru+0xc4/0x260 mm/filemap.c:943 pagecache_get_page+0x2ac/0x6f0 mm/filemap.c:1682 grab_cache_page_write_begin+0x5d/0x90 mm/filemap.c:3259 ext4_da_write_begin+0x1a3/0x840 fs/ext4/inode.c:2965 generic_perform_write+0x136/0x320 mm/filemap.c:3309 ext4_buffered_write_iter+0x143/0x290 fs/ext4/file.c:252 ext4_file_write_iter+0xf4/0xd40 fs/ext4/file.c:547 call_write_iter include/linux/fs.h:1902 [inline] new_sync_write+0x388/0x4a0 fs/read_write.c:483 __vfs_write+0xb1/0xc0 fs/read_write.c:496 vfs_write fs/read_write.c:558 [inline] vfs_write+0x18a/0x390 fs/read_write.c:542 ksys_write+0xd5/0x1b0 fs/read_write.c:611 __do_sys_write fs/read_write.c:623 [inline] __se_sys_write fs/read_write.c:620 [inline] __x64_sys_write+0x4c/0x60 fs/read_write.c:620 do_syscall_64+0xcc/0x3a0 arch/x86/entry/common.c:294 entry_SYSCALL_64_after_hwframe+0x44/0xa9 read to 0xffff88821b672150 of 8 bytes by task 11063 on cpu 1: page_counter_try_charge+0x58/0x170 mm/page_counter.c:138 try_charge+0x185/0xbf0 mm/memcontrol.c:2405 mem_cgroup_try_charge+0xd2/0x260 mm/memcontrol.c:6404 mem_cgroup_try_charge_delay+0x3a/0x80 mm/memcontrol.c:6419 shmem_mfill_atomic_pte+0x337/0xed0 mm/shmem.c:2368 shmem_mfill_zeropage_pte+0x69/0xa0 mm/shmem.c:2455 mfill_atomic_pte mm/userfaultfd.c:438 [inline] __mcopy_atomic mm/userfaultfd.c:557 [inline] mfill_zeropage+0x840/0xbb0 mm/userfaultfd.c:614 userfaultfd_zeropage fs/userfaultfd.c:1787 [inline] userfaultfd_ioctl+0x1541/0x2560 fs/userfaultfd.c:1889 vfs_ioctl fs/ioctl.c:47 [inline] file_ioctl fs/ioctl.c:545 [inline] do_vfs_ioctl+0x84f/0xcf0 fs/ioctl.c:732 ksys_ioctl+0xbd/0xe0 fs/ioctl.c:749 __do_sys_ioctl fs/ioctl.c:756 [inline] __se_sys_ioctl fs/ioctl.c:754 [inline] __x64_sys_ioctl+0x4c/0x60 fs/ioctl.c:754 do_syscall_64+0xcc/0x3a0 arch/x86/entry/common.c:294 entry_SYSCALL_64_after_hwframe+0x44/0xa9 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 11063 Comm: syz-executor.1 Not tainted 5.5.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================