================================================================== BUG: KCSAN: data-race in do_sync_mmap_readahead / do_sync_mmap_readahead write to 0xffff88810433dda4 of 4 bytes by task 23373 on cpu 0: do_sync_mmap_readahead+0x2ff/0x370 mm/filemap.c:2945 filemap_fault+0x234/0x8b0 mm/filemap.c:3039 __do_fault mm/memory.c:3872 [inline] do_read_fault mm/memory.c:4187 [inline] do_fault mm/memory.c:4316 [inline] handle_pte_fault mm/memory.c:4574 [inline] __handle_mm_fault mm/memory.c:4709 [inline] handle_mm_fault+0xba6/0x1590 mm/memory.c:4807 faultin_page mm/gup.c:944 [inline] __get_user_pages+0x388/0xc80 mm/gup.c:1165 populate_vma_page_range mm/gup.c:1497 [inline] __mm_populate+0x24d/0x370 mm/gup.c:1606 mm_populate include/linux/mm.h:2675 [inline] vm_mmap_pgoff+0x160/0x1f0 mm/util.c:524 ksys_mmap_pgoff+0x265/0x320 mm/mmap.c:1630 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae write to 0xffff88810433dda4 of 4 bytes by task 23371 on cpu 1: do_sync_mmap_readahead+0x2ff/0x370 mm/filemap.c:2945 filemap_fault+0x234/0x8b0 mm/filemap.c:3039 __do_fault mm/memory.c:3872 [inline] do_read_fault mm/memory.c:4187 [inline] do_fault mm/memory.c:4316 [inline] handle_pte_fault mm/memory.c:4574 [inline] __handle_mm_fault mm/memory.c:4709 [inline] handle_mm_fault+0xba6/0x1590 mm/memory.c:4807 do_user_addr_fault+0x617/0xb90 arch/x86/mm/fault.c:1397 handle_page_fault arch/x86/mm/fault.c:1484 [inline] exc_page_fault+0x91/0x290 arch/x86/mm/fault.c:1540 asm_exc_page_fault+0x1e/0x30 copy_user_generic_unrolled+0x86/0xd0 copy_user_generic arch/x86/include/asm/uaccess_64.h:37 [inline] raw_copy_from_user arch/x86/include/asm/uaccess_64.h:52 [inline] _copy_from_user+0x7e/0xd0 lib/usercopy.c:16 copy_from_user include/linux/uaccess.h:192 [inline] __copy_msghdr_from_user net/socket.c:2295 [inline] copy_msghdr_from_user net/socket.c:2346 [inline] recvmsg_copy_msghdr net/socket.c:2598 [inline] ___sys_recvmsg net/socket.c:2670 [inline] do_recvmmsg+0x2c3/0xae0 net/socket.c:2768 __sys_recvmmsg net/socket.c:2847 [inline] __do_sys_recvmmsg net/socket.c:2870 [inline] __se_sys_recvmmsg net/socket.c:2863 [inline] __x64_sys_recvmmsg+0xde/0x160 net/socket.c:2863 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae value changed: 0x00000000 -> 0x00000008 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 23371 Comm: syz-executor.1 Tainted: G S 5.16.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================