================================================================== BUG: KCSAN: data-race in __percpu_counter_compare / percpu_counter_add_batch write to 0xffff888100049310 of 8 bytes by task 5287 on cpu 0: 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:228 [inline] shmem_alloc_and_acct_page mm/shmem.c:1582 [inline] shmem_getpage_gfp+0x8eb/0x1410 mm/shmem.c:1895 shmem_getpage mm/shmem.c:155 [inline] shmem_fallocate+0x544/0x840 mm/shmem.c:2783 vfs_fallocate+0x463/0x660 fs/open.c:311 ksys_fallocate fs/open.c:334 [inline] __do_sys_fallocate fs/open.c:342 [inline] __se_sys_fallocate fs/open.c:340 [inline] __x64_sys_fallocate+0x75/0xc0 fs/open.c:340 do_syscall_64+0x4a/0x90 arch/x86/entry/common.c:47 entry_SYSCALL_64_after_hwframe+0x44/0xae read to 0xffff888100049310 of 8 bytes by task 5291 on cpu 1: 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:225 [inline] shmem_alloc_and_acct_page mm/shmem.c:1582 [inline] shmem_getpage_gfp+0x87a/0x1410 mm/shmem.c:1895 shmem_getpage mm/shmem.c:155 [inline] shmem_fallocate+0x544/0x840 mm/shmem.c:2783 vfs_fallocate+0x463/0x660 fs/open.c:311 ksys_fallocate fs/open.c:334 [inline] __do_sys_fallocate fs/open.c:342 [inline] __se_sys_fallocate fs/open.c:340 [inline] __x64_sys_fallocate+0x75/0xc0 fs/open.c:340 do_syscall_64+0x4a/0x90 arch/x86/entry/common.c:47 entry_SYSCALL_64_after_hwframe+0x44/0xae value changed: 0x000000000000e620 -> 0x000000000000e640 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 5291 Comm: syz-executor.1 Not tainted 5.13.0-rc7-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================