syzbot


KCSAN: data-race in get_signal / ptrace_attach (6)

Status: auto-obsoleted due to no activity on 2024/04/04 22:16
Subsystems: kernel
[Documentation on labels]
Reported-by: syzbot+f4a233287323b2ec5e4c@syzkaller.appspotmail.com
First crash: 46d, last: 46d
Similar bugs (5)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in get_signal / ptrace_attach (2) kasan 1 1386d 1386d 0/26 auto-closed as invalid on 2020/08/04 00:25
upstream KCSAN: data-race in get_signal / ptrace_attach (5) kernel 1 790d 790d 0/26 auto-closed as invalid on 2022/03/23 02:38
upstream KCSAN: data-race in get_signal / ptrace_attach (3) kernel 1 1077d 1077d 0/26 auto-closed as invalid on 2021/06/09 02:47
upstream KCSAN: data-race in get_signal / ptrace_attach (4) kernel 1 945d 945d 0/26 auto-closed as invalid on 2021/10/19 11:18
upstream KCSAN: data-race in get_signal / ptrace_attach kasan 1 1621d 1621d 0/26 closed as invalid on 2019/11/19 14:04

Sample crash report:
==================================================================
BUG: KCSAN: data-race in get_signal / ptrace_attach

write to 0xffff8881535eb0f0 of 4 bytes by task 23583 on cpu 1:
 ptrace_attach+0x31c/0x590 kernel/ptrace.c:459
 __do_sys_ptrace kernel/ptrace.c:1279 [inline]
 __se_sys_ptrace+0x149/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

read to 0xffff8881535eb0f0 of 4 bytes by task 23584 on cpu 0:
 get_signal+0x396/0x10a0 kernel/signal.c:2779
 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

value changed: 0x00000000 -> 0x00000001

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 23584 Comm: syz-executor.0 Not tainted 6.8.0-rc6-syzkaller-00037-g805d849d7c3c #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/02/29 22:15 upstream 805d849d7c3c 352ab904 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in get_signal / ptrace_attach
* Struck through repros no longer work on HEAD.