syzbot


KCSAN: data-race in do_signal_stop / kthread_is_per_cpu

Status: auto-closed as invalid on 2021/06/17 08:39
Subsystems: kernel
[Documentation on labels]
First crash: 1573d, last: 1572d

Sample crash report:
==================================================================
BUG: KCSAN: data-race in do_signal_stop / kthread_is_per_cpu

write to 0xffff8881001cb0ac of 4 bytes by task 26440 on cpu 0:
 freezer_do_not_count include/linux/freezer.h:109 [inline]
 freezable_schedule include/linux/freezer.h:171 [inline]
 do_signal_stop+0x56d/0x710 kernel/signal.c:2432
 get_signal+0xa16/0x1610 kernel/signal.c:2770
 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
 __syscall_exit_to_user_mode_work kernel/entry/common.c:290 [inline]
 syscall_exit_to_user_mode+0x20/0x40 kernel/entry/common.c:301
 do_syscall_64+0x56/0x90 arch/x86/entry/common.c:57
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff8881001cb0ac of 4 bytes by task 26445 on cpu 1:
 __to_kthread kernel/kthread.c:101 [inline]
 kthread_is_per_cpu+0x2d/0x80 kernel/kthread.c:540
 can_migrate_task+0xf/0x180 kernel/sched/fair.c:7615
 detach_tasks+0xab/0x380 kernel/sched/fair.c:7779
 load_balance+0x768/0xcc0 kernel/sched/fair.c:9679
 newidle_balance+0x10b/0x310 kernel/sched/fair.c:10643
 pick_next_task_fair+0x37/0x270 kernel/sched/fair.c:7203
 pick_next_task kernel/sched/core.c:4960 [inline]
 __schedule+0x256/0x5b0 kernel/sched/core.c:5111
 schedule+0x67/0x90 kernel/sched/core.c:5226
 freezable_schedule include/linux/freezer.h:172 [inline]
 do_nanosleep+0x107/0x3d0 kernel/time/hrtimer.c:1896
 hrtimer_nanosleep+0xfa/0x1f0 kernel/time/hrtimer.c:1949
 common_nsleep+0x69/0x80 kernel/time/posix-timers.c:1227
 __do_sys_clock_nanosleep kernel/time/posix-timers.c:1267 [inline]
 __se_sys_clock_nanosleep kernel/time/posix-timers.c:1245 [inline]
 __x64_sys_clock_nanosleep+0x1ee/0x220 kernel/time/posix-timers.c:1245
 do_syscall_64+0x4a/0x90 arch/x86/entry/common.c:47
 entry_SYSCALL_64_after_hwframe+0x44/0xae

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 26445 Comm: syz-executor.5 Not tainted 5.13.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
2021/05/13 08:30 upstream c06a2ba62fc4 ed7d41c5 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in do_signal_stop / kthread_is_per_cpu
2021/05/12 19:05 upstream dbb5afad100a ed7d41c5 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in do_signal_stop / kthread_is_per_cpu
* Struck through repros no longer work on HEAD.