syzbot


KCSAN: data-race in get_signal / get_task_mm

Status: auto-closed as invalid on 2020/02/24 07:37
Subsystems: kernel
[Documentation on labels]
First crash: 1586d, last: 1586d

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

read to 0xffff8880a4e1d024 of 4 bytes by task 4974 on cpu 1:
 get_task_mm+0x4f/0xa0 kernel/fork.c:1212
 get_cmdline+0x30/0x290 mm/util.c:857
 kstrdup_quotable_cmdline+0x68/0x160 lib/string_helpers.c:606
 __report_access+0x43/0x1c0 security/yama/yama_lsm.c:57
 task_work_run+0xf6/0x130 kernel/task_work.c:113
 tracehook_notify_resume include/linux/tracehook.h:188 [inline]
 exit_to_usermode_loop+0x2b4/0x2c0 arch/x86/entry/common.c:164
 prepare_exit_to_usermode arch/x86/entry/common.c:195 [inline]
 syscall_return_slowpath arch/x86/entry/common.c:278 [inline]
 do_syscall_64+0x384/0x3a0 arch/x86/entry/common.c:304
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

write to 0xffff8880a4e1d024 of 4 bytes by task 4971 on cpu 0:
 get_signal+0x7c7/0x1320 kernel/signal.c:2714
 do_signal+0x2f/0x6c0 arch/x86/kernel/signal.c:815
 exit_to_usermode_loop+0x250/0x2c0 arch/x86/entry/common.c:160
 prepare_exit_to_usermode arch/x86/entry/common.c:195 [inline]
 syscall_return_slowpath arch/x86/entry/common.c:278 [inline]
 do_syscall_64+0x384/0x3a0 arch/x86/entry/common.c:304
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 4971 Comm: syz-executor.3 Not tainted 5.5.0-rc1-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/12/16 07:28 https://github.com/google/ktsan.git kcsan 245a43005292 eef6e580 .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.