syzbot


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

Status: moderation: reported on 2024/11/15 16:28
Subsystems: kernel
[Documentation on labels]
Reported-by: syzbot+33a9f8bebf79b4b8fe84@syzkaller.appspotmail.com
First crash: 286d, last: 1d19h
Similar bugs (10)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in dequeue_signal / ptrace_check_attach (6) kernel 6 1 687d 687d 0/29 auto-obsoleted due to no activity on 2023/11/16 03:30
upstream KCSAN: data-race in dequeue_signal / ptrace_check_attach (10) kernel 6 1 323d 323d 0/29 auto-obsoleted due to no activity on 2024/11/13 22:28
upstream KCSAN: data-race in dequeue_signal / ptrace_check_attach (7) kernel 6 13 523d 626d 0/29 auto-obsoleted due to no activity on 2024/04/27 21:52
upstream KCSAN: data-race in dequeue_signal / ptrace_check_attach (5) kernel 6 3 726d 788d 0/29 auto-obsoleted due to no activity on 2023/10/08 11:58
upstream KCSAN: data-race in dequeue_signal / ptrace_check_attach (3) kernel 6 3 911d 936d 0/29 auto-obsoleted due to no activity on 2023/04/16 11:35
upstream KCSAN: data-race in dequeue_signal / ptrace_check_attach (2) kernel 6 1 981d 981d 0/29 auto-obsoleted due to no activity on 2023/02/02 07:54
upstream KCSAN: data-race in dequeue_signal / ptrace_check_attach (9) kernel 6 1 389d 389d 0/29 auto-obsoleted due to no activity on 2024/09/09 07:15
upstream KCSAN: data-race in dequeue_signal / ptrace_check_attach kernel 6 1 1084d 1084d 0/29 auto-obsoleted due to no activity on 2022/10/15 10:03
upstream KCSAN: data-race in dequeue_signal / ptrace_check_attach (4) kernel 6 2 850d 859d 0/29 auto-obsoleted due to no activity on 2023/06/06 04:16
upstream KCSAN: data-race in dequeue_signal / ptrace_check_attach (8) kernel 6 2 467d 488d 0/29 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 0xffff88814c1995b8 of 8 bytes by task 8366 on cpu 0:
 dequeue_signal+0x309/0x3b0 kernel/signal.c:656
 get_signal+0x377/0xf70 kernel/signal.c:2914
 arch_do_signal_or_restart+0x96/0x480 arch/x86/kernel/signal.c:337
 exit_to_user_mode_loop+0x7a/0x100 kernel/entry/common.c:40
 exit_to_user_mode_prepare include/linux/irq-entry-common.h:225 [inline]
 syscall_exit_to_user_mode_work include/linux/entry-common.h:175 [inline]
 syscall_exit_to_user_mode include/linux/entry-common.h:210 [inline]
 do_syscall_64+0x1d6/0x200 arch/x86/entry/syscall_64.c:100
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

read to 0xffff88814c1995b8 of 8 bytes by task 8365 on cpu 1:
 ptrace_freeze_traced kernel/ptrace.c:189 [inline]
 ptrace_check_attach+0xaa/0x290 kernel/ptrace.c:256
 __do_sys_ptrace kernel/ptrace.c:1409 [inline]
 __se_sys_ptrace+0xd3/0x2c0 kernel/ptrace.c:1387
 __x64_sys_ptrace+0x55/0x70 kernel/ptrace.c:1387
 x64_sys_call+0x286c/0x2ff0 arch/x86/include/generated/asm/syscalls_64.h:102
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xd2/0x200 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

value changed: 0x0000000000000000 -> 0x0000000008010000

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 UID: 0 PID: 8365 Comm: syz.5.1788 Not tainted syzkaller #0 PREEMPT(voluntary) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025
==================================================================

Crashes (23):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/08/27 18:58 upstream 39f90c196721 e12e5ba4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in dequeue_signal / ptrace_check_attach
2025/08/15 23:43 upstream ee94b00c1a64 1804e95e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in dequeue_signal / ptrace_check_attach
2025/08/07 18:38 upstream 6e64f4580381 04cffc22 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in dequeue_signal / ptrace_check_attach
2025/07/29 12:41 upstream ae388edd4a8f c4a95487 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in dequeue_signal / ptrace_check_attach
2025/07/26 20:07 upstream 302f88ff3584 fb8f743d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in dequeue_signal / ptrace_check_attach
2025/06/04 09:30 upstream 5abc7438f1e9 a30356b7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in dequeue_signal / ptrace_check_attach
2025/05/31 19:47 upstream 0f70f5b08a47 3d2f584d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in dequeue_signal / ptrace_check_attach
2025/05/09 14:37 upstream 9c69f8884904 77908e5f .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in dequeue_signal / ptrace_check_attach
2025/04/30 02:12 upstream ca91b9500108 85a5a23f .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in dequeue_signal / ptrace_check_attach
2025/04/27 10:41 upstream 5bc1018675ec c6b4fb39 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in dequeue_signal / ptrace_check_attach
2025/04/04 07:15 upstream a2cc6ff5ec8f d7ae3a11 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in dequeue_signal / ptrace_check_attach
2025/03/22 18:18 upstream 88d324e69ea9 c6512ef7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in dequeue_signal / ptrace_check_attach
2025/02/24 07:38 upstream d082ecbc71e9 d34966d1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in dequeue_signal / ptrace_check_attach
2025/01/27 17:47 upstream 9c5968db9e62 d99a33ad .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in dequeue_signal / ptrace_check_attach
2025/01/24 08:53 upstream bc8198dc7ebc 521b0ce3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in dequeue_signal / ptrace_check_attach
2025/01/22 11:55 upstream c4b9570cfb63 da72ac06 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in dequeue_signal / ptrace_check_attach
2025/01/13 22:03 upstream 5bc55a333a2f 249ceea9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in dequeue_signal / ptrace_check_attach
2025/01/10 13:09 upstream 643e2e259c2b 67d7ec0a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in dequeue_signal / ptrace_check_attach
2025/01/06 20:13 upstream 9d89551994a4 f3558dbf .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in dequeue_signal / ptrace_check_attach
2024/12/29 16:50 upstream 059dd502b263 d3ccff63 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in dequeue_signal / ptrace_check_attach
2024/12/17 21:17 upstream 59dbb9d81adf a0626d3a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in dequeue_signal / ptrace_check_attach
2024/11/24 11:54 upstream 9f16d5e6f220 68da6d95 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in dequeue_signal / ptrace_check_attach
2024/11/15 16:28 upstream cfaaa7d010d1 f6ede3a3 .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.