================================================================== BUG: KCSAN: data-race in __anon_vma_prepare / do_anonymous_page write to 0xffff8881366b6b98 of 8 bytes by task 28360 on cpu 0: __anon_vma_prepare+0x148/0x2c0 mm/rmap.c:213 anon_vma_prepare include/linux/rmap.h:159 [inline] do_anonymous_page+0x7b4/0xa10 mm/memory.c:4112 handle_pte_fault mm/memory.c:4953 [inline] __handle_mm_fault mm/memory.c:5097 [inline] handle_mm_fault+0x88e/0xa80 mm/memory.c:5218 do_user_addr_fault+0x4a1/0x980 arch/x86/mm/fault.c:1428 handle_page_fault arch/x86/mm/fault.c:1519 [inline] exc_page_fault+0x60/0x160 arch/x86/mm/fault.c:1575 asm_exc_page_fault+0x22/0x30 arch/x86/include/asm/idtentry.h:570 copy_user_short_string+0xd/0x40 arch/x86/lib/copy_user_64.S:232 copy_user_generic arch/x86/include/asm/uaccess_64.h:37 [inline] raw_copy_to_user arch/x86/include/asm/uaccess_64.h:58 [inline] _copy_to_user+0x72/0x90 lib/usercopy.c:34 copy_to_user include/linux/uaccess.h:169 [inline] do_pipe2+0x8c/0x120 fs/pipe.c:1012 __do_sys_pipe fs/pipe.c:1033 [inline] __se_sys_pipe fs/pipe.c:1031 [inline] __x64_sys_pipe+0x1d/0x30 fs/pipe.c:1031 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd read to 0xffff8881366b6b98 of 8 bytes by task 28361 on cpu 1: anon_vma_prepare include/linux/rmap.h:156 [inline] do_anonymous_page+0x124/0xa10 mm/memory.c:4112 handle_pte_fault mm/memory.c:4953 [inline] __handle_mm_fault mm/memory.c:5097 [inline] handle_mm_fault+0x88e/0xa80 mm/memory.c:5218 do_user_addr_fault+0x4a1/0x980 arch/x86/mm/fault.c:1428 handle_page_fault arch/x86/mm/fault.c:1519 [inline] exc_page_fault+0x60/0x160 arch/x86/mm/fault.c:1575 asm_exc_page_fault+0x22/0x30 arch/x86/include/asm/idtentry.h:570 copy_user_short_string+0xd/0x40 arch/x86/lib/copy_user_64.S:232 copy_user_generic arch/x86/include/asm/uaccess_64.h:37 [inline] raw_copy_to_user arch/x86/include/asm/uaccess_64.h:58 [inline] _copy_to_user+0x72/0x90 lib/usercopy.c:34 copy_to_user include/linux/uaccess.h:169 [inline] do_pipe2+0x8c/0x120 fs/pipe.c:1012 __do_sys_pipe fs/pipe.c:1033 [inline] __se_sys_pipe fs/pipe.c:1031 [inline] __x64_sys_pipe+0x1d/0x30 fs/pipe.c:1031 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd value changed: 0x0000000000000000 -> 0xffff888103947540 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 28361 Comm: syz-executor.2 Not tainted 6.1.0-rc6-syzkaller-00015-gc3eb11fbb826-dirty #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 ==================================================================