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

read-write to 0xffff8881514015a0 of 8 bytes by task 3136 on cpu 1:
 dequeue_signal+0x3d3/0x420 kernel/signal.c:685
 get_signal+0x36c/0x10a0 kernel/signal.c:2787
 arch_do_signal_or_restart+0x95/0x4b0 arch/x86/kernel/signal.c:310
 exit_to_user_mode_loop kernel/entry/common.c:105 [inline]
 exit_to_user_mode_prepare include/linux/entry-common.h:328 [inline]
 __syscall_exit_to_user_mode_work kernel/entry/common.c:201 [inline]
 syscall_exit_to_user_mode+0x58/0x120 kernel/entry/common.c:212
 do_syscall_64+0xda/0x1d0 arch/x86/entry/common.c:89
 entry_SYSCALL_64_after_hwframe+0x63/0x6b

read to 0xffff8881514015a0 of 8 bytes by task 3130 on cpu 0:
 ptrace_freeze_traced kernel/ptrace.c:189 [inline]
 ptrace_check_attach+0x7e/0x280 kernel/ptrace.c:256
 __do_sys_ptrace kernel/ptrace.c:1283 [inline]
 __se_sys_ptrace+0xd4/0x2a0 kernel/ptrace.c:1261
 __x64_sys_ptrace+0x55/0x60 kernel/ptrace.c:1261
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xcd/0x1d0 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x63/0x6b

value changed: 0x0000000000000000 -> 0x0000000008010000

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 3130 Comm: syz-executor.2 Not tainted 6.8.0-syzkaller-00711-g045395d86acd #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/29/2024
==================================================================