================================================================== BUG: KCSAN: data-race in do_sync_mmap_readahead / do_sync_mmap_readahead write to 0xffff8881028862a4 of 4 bytes by task 16454 on cpu 0: do_sync_mmap_readahead+0x342/0x3a0 mm/filemap.c:3188 filemap_fault+0x3c1/0xb20 mm/filemap.c:3282 __do_fault mm/memory.c:4141 [inline] do_read_fault mm/memory.c:4492 [inline] do_fault mm/memory.c:4621 [inline] handle_pte_fault mm/memory.c:4909 [inline] __handle_mm_fault mm/memory.c:5051 [inline] handle_mm_fault+0x115d/0x21d0 mm/memory.c:5197 do_user_addr_fault arch/x86/mm/fault.c:1407 [inline] handle_page_fault arch/x86/mm/fault.c:1498 [inline] exc_page_fault+0x45f/0x640 arch/x86/mm/fault.c:1554 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:570 copy_user_short_string+0xa/0x40 arch/x86/lib/copy_user_64.S:231 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+0x7f/0xd0 lib/usercopy.c:23 copy_from_user include/linux/uaccess.h:161 [inline] move_addr_to_kernel+0x82/0x110 net/socket.c:250 __sys_bind+0xdc/0x1c0 net/socket.c:1795 __do_sys_bind net/socket.c:1812 [inline] __se_sys_bind net/socket.c:1810 [inline] __x64_sys_bind+0x41/0x50 net/socket.c:1810 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd write to 0xffff8881028862a4 of 4 bytes by task 16453 on cpu 1: do_sync_mmap_readahead+0x342/0x3a0 mm/filemap.c:3188 filemap_fault+0x3c1/0xb20 mm/filemap.c:3282 __do_fault mm/memory.c:4141 [inline] do_read_fault mm/memory.c:4492 [inline] do_fault mm/memory.c:4621 [inline] handle_pte_fault mm/memory.c:4909 [inline] __handle_mm_fault mm/memory.c:5051 [inline] handle_mm_fault+0x115d/0x21d0 mm/memory.c:5197 do_user_addr_fault arch/x86/mm/fault.c:1407 [inline] handle_page_fault arch/x86/mm/fault.c:1498 [inline] exc_page_fault+0x45f/0x640 arch/x86/mm/fault.c:1554 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:570 copy_user_short_string+0xa/0x40 arch/x86/lib/copy_user_64.S:231 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+0x7f/0xd0 lib/usercopy.c:23 copy_from_user include/linux/uaccess.h:161 [inline] move_addr_to_kernel+0x82/0x110 net/socket.c:250 __sys_connect+0x74/0x1b0 net/socket.c:2016 __do_sys_connect net/socket.c:2028 [inline] __se_sys_connect net/socket.c:2025 [inline] __x64_sys_connect+0x41/0x50 net/socket.c:2025 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd value changed: 0x00000000 -> 0x00000008 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 16453 Comm: syz-executor.4 Not tainted 6.3.0-rc1-syzkaller-00242-g81ff855485a3 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023 ==================================================================