syzbot


KCSAN: data-race in do_nanosleep / task_set_jobctl_pending (2)

Status: closed as invalid on 2020/06/18 14:13
Subsystems: kernel
[Documentation on labels]
First crash: 1410d, last: 1405d
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 kernel 1 1521d 1521d 0/26 auto-closed as invalid on 2020/04/29 13:28

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

write to 0xffff88805f436064 of 4 bytes by task 30104 on cpu 0:
 freezer_count include/linux/freezer.h:121 [inline]
 freezable_schedule include/linux/freezer.h:173 [inline]
 do_nanosleep+0x14d/0x320 kernel/time/hrtimer.c:1879
 hrtimer_nanosleep+0x136/0x230 kernel/time/hrtimer.c:1932
 __do_sys_nanosleep kernel/time/hrtimer.c:1966 [inline]
 __se_sys_nanosleep kernel/time/hrtimer.c:1953 [inline]
 __x64_sys_nanosleep+0x14b/0x190 kernel/time/hrtimer.c:1953
 do_syscall_64+0xc7/0x3b0 arch/x86/entry/common.c:295
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff88805f436064 of 4 bytes by task 30118 on cpu 1:
 task_set_jobctl_pending+0x98/0x180 kernel/signal.c:291
 do_signal_stop+0x3f7/0x4e0 kernel/signal.c:2354
 get_signal+0x601/0x1290 kernel/signal.c:2699
 do_signal+0x2b/0x840 arch/x86/kernel/signal.c:784
 exit_to_usermode_loop+0x24a/0x2c0 arch/x86/entry/common.c:161
 prepare_exit_to_usermode arch/x86/entry/common.c:196 [inline]
 syscall_return_slowpath arch/x86/entry/common.c:279 [inline]
 do_syscall_64+0x38b/0x3b0 arch/x86/entry/common.c:305
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 30118 Comm: syz-executor.2 Not tainted 5.7.0-rc1-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
2020/06/14 11:49 https://github.com/google/ktsan.git kcsan 7c3cd68e5d38 2a22c77a .config console log report ci2-upstream-kcsan-gce
2020/06/09 13:03 https://github.com/google/ktsan.git kcsan 7c3cd68e5d38 092934c1 .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.