================================================================== BUG: KCSAN: data-race in do_sync_mmap_readahead / do_sync_mmap_readahead write to 0xffff88810a650280 of 4 bytes by task 8371 on cpu 0: do_sync_mmap_readahead+0x236/0x2a0 mm/filemap.c:3172 filemap_fault+0x331/0xa60 mm/filemap.c:3313 __do_fault+0xb6/0x200 mm/memory.c:4562 do_read_fault mm/memory.c:4926 [inline] do_fault mm/memory.c:5056 [inline] do_pte_missing mm/memory.c:3903 [inline] handle_pte_fault mm/memory.c:5380 [inline] __handle_mm_fault mm/memory.c:5523 [inline] handle_mm_fault+0xdeb/0x2a80 mm/memory.c:5688 do_user_addr_fault arch/x86/mm/fault.c:1389 [inline] handle_page_fault arch/x86/mm/fault.c:1481 [inline] exc_page_fault+0x296/0x650 arch/x86/mm/fault.c:1539 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:623 rep_movs_alternative+0x30/0x70 arch/x86/lib/copy_user_64.S:50 copy_user_generic arch/x86/include/asm/uaccess_64.h:110 [inline] raw_copy_from_user arch/x86/include/asm/uaccess_64.h:125 [inline] _copy_from_user+0x80/0xd0 lib/usercopy.c:28 copy_from_user include/linux/uaccess.h:183 [inline] copy_msghdr_from_user+0x54/0x2a0 net/socket.c:2515 recvmsg_copy_msghdr net/socket.c:2770 [inline] ___sys_recvmsg net/socket.c:2842 [inline] do_recvmmsg+0x290/0x720 net/socket.c:2940 __sys_recvmmsg net/socket.c:3019 [inline] __do_sys_recvmmsg net/socket.c:3042 [inline] __se_sys_recvmmsg net/socket.c:3035 [inline] __x64_sys_recvmmsg+0xe2/0x170 net/socket.c:3035 x64_sys_call+0x271d/0x2d70 arch/x86/include/generated/asm/syscalls_64.h:300 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xc9/0x1c0 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f write to 0xffff88810a650280 of 4 bytes by task 8374 on cpu 1: do_sync_mmap_readahead+0x236/0x2a0 mm/filemap.c:3172 filemap_fault+0x331/0xa60 mm/filemap.c:3313 __do_fault+0xb6/0x200 mm/memory.c:4562 do_read_fault mm/memory.c:4926 [inline] do_fault mm/memory.c:5056 [inline] do_pte_missing mm/memory.c:3903 [inline] handle_pte_fault mm/memory.c:5380 [inline] __handle_mm_fault mm/memory.c:5523 [inline] handle_mm_fault+0xdeb/0x2a80 mm/memory.c:5688 faultin_page mm/gup.c:1290 [inline] __get_user_pages+0x49d/0xf10 mm/gup.c:1589 populate_vma_page_range mm/gup.c:2029 [inline] __mm_populate+0x25b/0x3b0 mm/gup.c:2132 mm_populate include/linux/mm.h:3464 [inline] vm_mmap_pgoff+0x1d6/0x290 mm/util.c:578 ksys_mmap_pgoff+0x292/0x340 mm/mmap.c:1443 x64_sys_call+0x1835/0x2d70 arch/x86/include/generated/asm/syscalls_64.h:10 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xc9/0x1c0 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f value changed: 0x00000000 -> 0x00000020 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 8374 Comm: syz-executor.0 Not tainted 6.10.0-rc2-syzkaller-00269-g96e09b8f8166 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 ==================================================================