================================================================== BUG: KCSAN: data-race in shmem_add_to_page_cache / shmem_recalc_inode write to 0xffff8880b63332c8 of 8 bytes by task 21450 on cpu 0: shmem_add_to_page_cache+0x4b0/0x6c0 mm/shmem.c:643 shmem_getpage_gfp+0x43f/0x1520 mm/shmem.c:1871 shmem_fault+0x117/0x4b0 mm/shmem.c:2062 __do_fault+0xa8/0x1e0 mm/memory.c:3450 do_read_fault mm/memory.c:3846 [inline] do_fault mm/memory.c:3975 [inline] handle_pte_fault mm/memory.c:4215 [inline] __handle_mm_fault+0x2679/0x2ec0 mm/memory.c:4345 handle_mm_fault+0x21c/0x540 mm/memory.c:4382 faultin_page mm/gup.c:879 [inline] __get_user_pages+0x533/0x11c0 mm/gup.c:1098 populate_vma_page_range+0xdc/0x100 mm/gup.c:1430 __mm_populate+0x168/0x2b0 mm/gup.c:1478 mm_populate include/linux/mm.h:2562 [inline] vm_mmap_pgoff+0x185/0x190 mm/util.c:511 ksys_mmap_pgoff+0x96/0x420 mm/mmap.c:1595 do_syscall_64+0xc7/0x3b0 arch/x86/entry/common.c:295 entry_SYSCALL_64_after_hwframe+0x44/0xa9 read to 0xffff8880b63332c8 of 8 bytes by task 21449 on cpu 1: shmem_recalc_inode+0x50/0x180 mm/shmem.c:306 shmem_getpage_gfp+0x5ca/0x1520 mm/shmem.c:1885 shmem_fault+0x117/0x4b0 mm/shmem.c:2062 __do_fault+0xa8/0x1e0 mm/memory.c:3450 do_read_fault mm/memory.c:3846 [inline] do_fault mm/memory.c:3975 [inline] handle_pte_fault mm/memory.c:4215 [inline] __handle_mm_fault+0x2679/0x2ec0 mm/memory.c:4345 handle_mm_fault+0x21c/0x540 mm/memory.c:4382 faultin_page mm/gup.c:879 [inline] __get_user_pages+0x533/0x11c0 mm/gup.c:1098 __get_user_pages_locked mm/gup.c:1284 [inline] get_user_pages_unlocked+0x13b/0x5d0 mm/gup.c:2033 __gup_longterm_unlocked mm/gup.c:2739 [inline] internal_get_user_pages_fast+0x2ed/0x320 mm/gup.c:2780 get_user_pages_fast+0x53/0x80 mm/gup.c:2828 iov_iter_get_pages+0x1d3/0x8cc lib/iov_iter.c:1323 af_alg_make_sg+0x59/0x2b0 crypto/af_alg.c:399 hash_sendmsg+0x2c0/0x5d0 crypto/algif_hash.c:94 sock_sendmsg_nosec net/socket.c:652 [inline] sock_sendmsg+0x98/0xc0 net/socket.c:672 __sys_sendto+0x1e2/0x2c0 net/socket.c:2000 __do_sys_sendto net/socket.c:2012 [inline] __se_sys_sendto net/socket.c:2008 [inline] __x64_sys_sendto+0x7e/0xa0 net/socket.c:2008 do_syscall_64+0xc7/0x3b0 arch/x86/entry/common.c:295 entry_SYSCALL_64_after_hwframe+0x44/0xa9 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 21449 Comm: syz-executor.2 Not tainted 5.7.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================