==================================================================
BUG: KCSAN: data-race in dequeue_signal / ptrace_check_attach

read-write to 0xffff8881043215a8 of 8 bytes by task 5089 on cpu 1:
 dequeue_signal+0x2e3/0x370 kernel/signal.c:655
 get_signal+0x376/0x1000 kernel/signal.c:2897
 arch_do_signal_or_restart+0x95/0x4b0 arch/x86/kernel/signal.c:337
 exit_to_user_mode_loop kernel/entry/common.c:111 [inline]
 exit_to_user_mode_prepare include/linux/entry-common.h:329 [inline]
 __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline]
 syscall_exit_to_user_mode+0x62/0x120 kernel/entry/common.c:218
 do_syscall_64+0xd6/0x1c0 arch/x86/entry/common.c:89
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

read to 0xffff8881043215a8 of 8 bytes by task 5088 on cpu 0:
 ptrace_freeze_traced kernel/ptrace.c:189 [inline]
 ptrace_check_attach+0x7f/0x290 kernel/ptrace.c:256
 __do_sys_ptrace kernel/ptrace.c:1280 [inline]
 __se_sys_ptrace+0xd4/0x2b0 kernel/ptrace.c:1258
 __x64_sys_ptrace+0x55/0x70 kernel/ptrace.c:1258
 x64_sys_call+0x2225/0x2dc0 arch/x86/include/generated/asm/syscalls_64.h:102
 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: 0x0000000000000000 -> 0x0000000008010000

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 UID: 0 PID: 5088 Comm: syz.3.502 Not tainted 6.13.0-rc6-syzkaller-00059-g643e2e259c2b #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
==================================================================