syzbot


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

Status: auto-obsoleted due to no activity on 2024/04/27 21:52
Subsystems: kernel
[Documentation on labels]
Reported-by: syzbot+a9d474677b2657f19b49@syzkaller.appspotmail.com
First crash: 226d, last: 112d
Similar bugs (7)
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 276d 276d 0/27 auto-obsoleted due to no activity on 2023/11/16 03:30
upstream KCSAN: data-race in dequeue_signal / ptrace_check_attach (5) kernel 3 315d 378d 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 500d 525d 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 570d 570d 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 673d 673d 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 439d 448d 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 57d 77d 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 0xffff88817d24c720 of 8 bytes by task 11064 on cpu 0:
 dequeue_signal+0x3de/0x430 kernel/signal.c:685
 get_signal+0x37d/0x1080 kernel/signal.c:2790
 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+0x59/0x130 kernel/entry/common.c:212
 do_syscall_64+0xe2/0x1d0 arch/x86/entry/common.c:89
 entry_SYSCALL_64_after_hwframe+0x6d/0x75

read to 0xffff88817d24c720 of 8 bytes by task 11062 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
 do_syscall_64+0xd3/0x1d0
 entry_SYSCALL_64_after_hwframe+0x6d/0x75

value changed: 0x0000000000000000 -> 0x0000000008010000

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

Crashes (13):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/03/23 21:52 upstream 484193fecd2b 0ea90952 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in dequeue_signal / ptrace_check_attach
2024/03/12 02:40 upstream 045395d86acd 6ee49f2e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in dequeue_signal / ptrace_check_attach
2024/03/08 13:29 upstream 3aaa8ce7a335 cf82cde1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in dequeue_signal / ptrace_check_attach
2024/02/29 17:36 upstream 805d849d7c3c 352ab904 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in dequeue_signal / ptrace_check_attach
2024/02/20 23:38 upstream fca7526b7d89 3af7dd65 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in dequeue_signal / ptrace_check_attach
2024/02/18 16:05 upstream c02197fc9076 578f7538 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in dequeue_signal / ptrace_check_attach
2024/02/17 10:53 upstream c1ca10ceffbb 578f7538 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in dequeue_signal / ptrace_check_attach
2024/01/30 04:49 upstream 861c0981648f 991a98f4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in dequeue_signal / ptrace_check_attach
2024/01/29 21:03 upstream 41bccc98fb79 991a98f4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in dequeue_signal / ptrace_check_attach
2024/01/16 22:20 upstream 052d534373b7 2a7bcc7f .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in dequeue_signal / ptrace_check_attach
2024/01/03 12:52 upstream 610a9b8f49fb fb427a07 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in dequeue_signal / ptrace_check_attach
2023/12/30 04:02 upstream f016f7547aee fb427a07 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in dequeue_signal / ptrace_check_attach
2023/12/01 13:02 upstream 994d5c58e50e f819d6f7 .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.