================================================================== BUG: KCSAN: data-race in __percpu_counter_compare / percpu_counter_add_batch write to 0xffff888104553250 of 8 bytes by task 375 on cpu 1: percpu_counter_add_batch+0x9c/0xd0 lib/percpu_counter.c:91 percpu_counter_add include/linux/percpu_counter.h:56 [inline] shmem_inode_acct_block mm/shmem.c:224 [inline] shmem_alloc_and_acct_page mm/shmem.c:1600 [inline] shmem_getpage_gfp+0x8d9/0x13d0 mm/shmem.c:1901 shmem_getpage mm/shmem.c:151 [inline] shmem_fallocate+0x5bb/0x8e0 mm/shmem.c:2735 vfs_fallocate+0x459/0x6a0 fs/open.c:307 ksys_fallocate fs/open.c:330 [inline] __do_sys_fallocate fs/open.c:338 [inline] __se_sys_fallocate fs/open.c:336 [inline] __x64_sys_fallocate+0x75/0xc0 fs/open.c:336 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x44/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae read to 0xffff888104553250 of 8 bytes by task 2746 on cpu 0: percpu_counter_read include/linux/percpu_counter.h:72 [inline] __percpu_counter_compare+0x28/0x1a0 lib/percpu_counter.c:225 percpu_counter_compare include/linux/percpu_counter.h:51 [inline] shmem_inode_acct_block mm/shmem.c:221 [inline] shmem_alloc_and_acct_page mm/shmem.c:1600 [inline] shmem_getpage_gfp+0x868/0x13d0 mm/shmem.c:1901 shmem_getpage mm/shmem.c:151 [inline] shmem_write_begin+0x7e/0x100 mm/shmem.c:2469 generic_perform_write+0x1b8/0x3e0 mm/filemap.c:3770 __generic_file_write_iter+0x174/0x310 mm/filemap.c:3897 generic_file_write_iter+0x75/0x130 mm/filemap.c:3929 call_write_iter include/linux/fs.h:2163 [inline] new_sync_write fs/read_write.c:507 [inline] vfs_write+0x7bc/0x900 fs/read_write.c:594 ksys_write+0xd9/0x190 fs/read_write.c:647 __do_sys_write fs/read_write.c:659 [inline] __se_sys_write fs/read_write.c:656 [inline] __x64_sys_write+0x3e/0x50 fs/read_write.c:656 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x44/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae value changed: 0x0000000000001c20 -> 0x0000000000001c40 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 2746 Comm: systemd-udevd Not tainted 5.15.0-rc2-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================