syzbot


KCSAN: data-race in do_nanosleep / task_set_jobctl_pending

Status: auto-closed as invalid on 2020/04/29 13:28
Subsystems: kernel
[Documentation on labels]
First crash: 1528d, last: 1528d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in do_nanosleep / task_set_jobctl_pending (2) kernel 2 1412d 1417d 0/26 closed as invalid on 2020/06/18 14:13

Sample crash report:
==================================================================
BUG: KCSAN: data-race in do_nanosleep / task_set_jobctl_pending

write to 0xffff8880b66390e4 of 4 bytes by task 11029 on cpu 0:
 freezer_do_not_count include/linux/freezer.h:109 [inline]
 freezable_schedule include/linux/freezer.h:171 [inline]
 do_nanosleep+0x127/0x320 kernel/time/hrtimer.c:1874
 hrtimer_nanosleep_restart+0x72/0xa0 kernel/time/hrtimer.c:1908
 __ia32_sys_restart_syscall+0x3a/0x50 kernel/signal.c:2870
 do_syscall_64+0xcc/0x3a0 arch/x86/entry/common.c:294
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff8880b66390e4 of 4 bytes by task 11034 on cpu 1:
 task_set_jobctl_pending+0x9c/0x180 kernel/signal.c:291
 do_signal_stop+0x40e/0x500 kernel/signal.c:2349
 get_signal+0x61b/0x1320 kernel/signal.c:2694
 do_signal+0x2f/0x6c0 arch/x86/kernel/signal.c:813
 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: 1 PID: 11034 Comm: syz-executor.1 Not tainted 5.6.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
2020/02/19 13:27 https://github.com/google/ktsan.git kcsan b12d66a6c34f 47fae6e9 .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.