syzbot


KCSAN: data-race in dequeue_signal / ptrace_check_attach (9)

Status: auto-obsoleted due to no activity on 2024/09/09 07:15
Subsystems: kernel
[Documentation on labels]
Reported-by: syzbot+1d7d8cd8a77d22fc2aec@syzkaller.appspotmail.com
First crash: 38d, last: 38d
Similar bugs (8)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in dequeue_signal / ptrace_check_attach (6) kernel 1 336d 336d 0/27 auto-obsoleted due to no activity on 2023/11/16 03:30
upstream KCSAN: data-race in dequeue_signal / ptrace_check_attach (7) kernel 13 172d 275d 0/27 auto-obsoleted due to no activity on 2024/04/27 21:52
upstream KCSAN: data-race in dequeue_signal / ptrace_check_attach (5) kernel 3 375d 437d 0/27 auto-obsoleted due to no activity on 2023/10/08 11:58
upstream KCSAN: data-race in dequeue_signal / ptrace_check_attach (3) kernel 3 560d 585d 0/27 auto-obsoleted due to no activity on 2023/04/16 11:35
upstream KCSAN: data-race in dequeue_signal / ptrace_check_attach (2) kernel 1 630d 630d 0/27 auto-obsoleted due to no activity on 2023/02/02 07:54
upstream KCSAN: data-race in dequeue_signal / ptrace_check_attach kernel 1 733d 733d 0/27 auto-obsoleted due to no activity on 2022/10/15 10:03
upstream KCSAN: data-race in dequeue_signal / ptrace_check_attach (4) kernel 2 499d 508d 0/27 auto-obsoleted due to no activity on 2023/06/06 04:16
upstream KCSAN: data-race in dequeue_signal / ptrace_check_attach (8) kernel 2 116d 137d 0/27 auto-obsoleted due to no activity on 2024/06/22 14:38

Sample crash report:
==================================================================
BUG: KCSAN: data-race in dequeue_signal / ptrace_check_attach

read-write to 0xffff888107afb6a8 of 8 bytes by task 10055 on cpu 0:
 dequeue_signal+0x3de/0x430 kernel/signal.c:685
 get_signal+0x37d/0x1080 kernel/signal.c:2796
 arch_do_signal_or_restart+0x95/0x4b0 arch/x86/kernel/signal.c:310
 exit_to_user_mode_loop kernel/entry/common.c:111 [inline]
 exit_to_user_mode_prepare include/linux/entry-common.h:328 [inline]
 __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline]
 syscall_exit_to_user_mode+0x59/0x130 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 0xffff888107afb6a8 of 8 bytes by task 10051 on cpu 1:
 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+0x2913/0x2d60 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: 1 UID: 0 PID: 10051 Comm: syz.1.2328 Not tainted 6.11.0-rc2-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/08/05 07:14 upstream de9c2c66ad8e 1786a2a8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in dequeue_signal / ptrace_check_attach
* Struck through repros no longer work on HEAD.