syzbot


KCSAN: data-race in prepare_signal / ptrace_stop (2)

Status: auto-closed as invalid on 2021/07/02 08:23
Subsystems: kernel
[Documentation on labels]
First crash: 1065d, last: 1064d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in prepare_signal / ptrace_stop kernel 1 1180d 1180d 0/26 auto-closed as invalid on 2021/03/07 21:18

Sample crash report:
==================================================================
BUG: KCSAN: data-race in prepare_signal / ptrace_stop

write to 0xffff888142a0d0ac of 4 bytes by task 10638 on cpu 1:
 freezer_count include/linux/freezer.h:121 [inline]
 freezable_schedule include/linux/freezer.h:173 [inline]
 ptrace_stop+0x3a5/0x670 kernel/signal.c:2268
 ptrace_do_notify kernel/signal.c:2321 [inline]
 ptrace_notify+0x107/0x180 kernel/signal.c:2331
 ptrace_report_syscall include/linux/tracehook.h:66 [inline]
 tracehook_report_syscall_entry include/linux/tracehook.h:105 [inline]
 arch_syscall_enter_tracehook include/linux/entry-common.h:98 [inline]
 syscall_trace_enter+0x87/0x290 kernel/entry/common.c:60
 __syscall_enter_from_user_work kernel/entry/common.c:89 [inline]
 syscall_enter_from_user_mode+0x1c/0x20 kernel/entry/common.c:107
 do_syscall_64+0x27/0x90 arch/x86/entry/common.c:42
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff888142a0d0ac of 4 bytes by task 10637 on cpu 0:
 sig_task_ignored kernel/signal.c:93 [inline]
 sig_ignored kernel/signal.c:118 [inline]
 prepare_signal+0x952/0xeb0 kernel/signal.c:1001
 __send_signal+0x64/0x760 kernel/signal.c:1121
 do_notify_parent+0x42c/0x4b0 kernel/signal.c:2050
 exit_notify kernel/exit.c:680 [inline]
 do_exit+0xd5b/0x1560 kernel/exit.c:846
 do_group_exit+0xce/0x1a0 kernel/exit.c:923
 get_signal+0xfc3/0x1610 kernel/signal.c:2835
 arch_do_signal_or_restart+0x2a/0x220 arch/x86/kernel/signal.c:789
 handle_signal_work kernel/entry/common.c:147 [inline]
 exit_to_user_mode_loop kernel/entry/common.c:171 [inline]
 exit_to_user_mode_prepare+0x109/0x190 kernel/entry/common.c:208
 irqentry_exit_to_user_mode+0x5/0x20 kernel/entry/common.c:314
 irqentry_exit+0xe/0x30 kernel/entry/common.c:405
 asm_exc_page_fault+0x1e/0x30 arch/x86/include/asm/idtentry.h:577

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 10637 Comm: syz-executor.1 Not tainted 5.13.0-rc3-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/05/28 08:23 upstream 97e5bf604b7a 858ea628 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in prepare_signal / ptrace_stop
2021/05/26 18:27 upstream ad9f25d33860 750ce164 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in prepare_signal / ptrace_stop
* Struck through repros no longer work on HEAD.