==================================================================
BUG: KCSAN: data-race in ptrace_check_attach / zap_other_threads
write to 0xffff888140dc1518 of 8 bytes by task 30212 on cpu 1:
task_clear_jobctl_pending kernel/signal.c:342 [inline]
zap_other_threads+0x98/0x1e0 kernel/signal.c:1398
do_group_exit+0x145/0x1a0 kernel/exit.c:918
__do_sys_exit_group+0xb/0x10 kernel/exit.c:934
__se_sys_exit_group+0x5/0x10 kernel/exit.c:932
__x64_sys_exit_group+0x16/0x20 kernel/exit.c:932
do_syscall_64+0x4a/0x90 arch/x86/entry/common.c:47
entry_SYSCALL_64_after_hwframe+0x44/0xae
read to 0xffff888140dc1518 of 8 bytes by task 30218 on cpu 0:
ptrace_freeze_traced kernel/ptrace.c:194 [inline]
ptrace_check_attach+0x144/0x2c0 kernel/ptrace.c:264
__do_sys_ptrace kernel/ptrace.c:1307 [inline]
__se_sys_ptrace+0xd8/0x1b0 kernel/ptrace.c:1277
__x64_sys_ptrace+0x51/0x60 kernel/ptrace.c:1277
do_syscall_64+0x4a/0x90 arch/x86/entry/common.c:47
entry_SYSCALL_64_after_hwframe+0x44/0xae
value changed: 0x0000000000010000 -> 0x0000000000000000
Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 30218 Comm: syz-executor.4 Tainted: G W 5.13.0-rc4-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================