syzbot


KCSAN: data-race in tick_nohz_idle_stop_tick / tick_nohz_next_event (4)

Status: moderation: reported on 2023/12/07 10:14
Subsystems: kernel
[Documentation on labels]
Reported-by: syzbot+da595c5f98ac3cb3233f@syzkaller.appspotmail.com
First crash: 383d, last: 2d10h
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in tick_nohz_idle_stop_tick / tick_nohz_next_event (3) kernel 101 1345d 1465d 0/26 auto-closed as invalid on 2020/07/21 23:12
upstream KCSAN: data-race in tick_nohz_idle_stop_tick / tick_nohz_next_event kernel 27 1590d 1601d 0/26 closed as invalid on 2019/10/15 15:50
upstream KCSAN: data-race in tick_nohz_idle_stop_tick / tick_nohz_next_event (2) kernel 28 1557d 1589d 0/26 closed as invalid on 2019/11/19 14:04

Sample crash report:
==================================================================
BUG: KCSAN: data-race in tick_nohz_idle_stop_tick / tick_nohz_next_event

write to 0xffffffff8611edf0 of 4 bytes by task 0 on cpu 0:
 tick_nohz_stop_tick kernel/time/tick-sched.c:907 [inline]
 tick_nohz_idle_stop_tick+0x1d8/0x760 kernel/time/tick-sched.c:1133
 cpuidle_idle_call kernel/sched/idle.c:211 [inline]
 do_idle+0x177/0x230 kernel/sched/idle.c:312
 cpu_startup_entry+0x24/0x30 kernel/sched/idle.c:410
 rest_init+0xf3/0x100 init/main.c:730
 arch_call_rest_init+0x9/0x10 init/main.c:827
 start_kernel+0x57d/0x5e0 init/main.c:1072
 x86_64_start_reservations+0x2a/0x30 arch/x86/kernel/head64.c:555
 x86_64_start_kernel+0x94/0xa0 arch/x86/kernel/head64.c:536
 secondary_startup_64_no_verify+0x15f/0x16b

read to 0xffffffff8611edf0 of 4 bytes by task 0 on cpu 1:
 tick_nohz_next_event+0x1f1/0x2d0 kernel/time/tick-sched.c:873
 tick_nohz_get_sleep_length+0x134/0x2c0 kernel/time/tick-sched.c:1264
 menu_select+0x81a/0x1060 drivers/cpuidle/governors/menu.c:286
 cpuidle_select+0x41/0x50 drivers/cpuidle/cpuidle.c:359
 cpuidle_idle_call kernel/sched/idle.c:208 [inline]
 do_idle+0x160/0x230 kernel/sched/idle.c:312
 cpu_startup_entry+0x24/0x30 kernel/sched/idle.c:410
 start_secondary+0x82/0x90 arch/x86/kernel/smpboot.c:336
 secondary_startup_64_no_verify+0x15f/0x16b

value changed: 0x00000000 -> 0xffffffff

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 0 Comm: swapper/1 Not tainted 6.8.0-rc5-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024
==================================================================

Crashes (340):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/02/19 18:16 upstream b401b621758e 3af7dd65 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in tick_nohz_idle_stop_tick / tick_nohz_next_event
2024/02/18 22:44 upstream b401b621758e 578f7538 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in tick_nohz_idle_stop_tick / tick_nohz_next_event
2024/02/18 15:31 upstream c02197fc9076 578f7538 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in tick_nohz_idle_stop_tick / tick_nohz_next_event
2024/02/15 12:44 upstream 8d3dea210042 fd39cf6f .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in tick_nohz_idle_stop_tick / tick_nohz_next_event
2024/02/14 22:38 upstream 7e90b5c295ec d9b1cdd5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in tick_nohz_idle_stop_tick / tick_nohz_next_event
2024/02/13 23:44 upstream c664e16bb1ba e66542d7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in tick_nohz_idle_stop_tick / tick_nohz_next_event
2024/02/07 08:20 upstream 99bd3cb0d12e 6404acf9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in tick_nohz_idle_stop_tick / tick_nohz_next_event
2024/01/28 22:34 upstream 4854cf9c61d0 cc4a4020 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in tick_nohz_idle_stop_tick / tick_nohz_next_event
2024/01/27 12:24 upstream 3a5879d495b2 cc4a4020 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in tick_nohz_idle_stop_tick / tick_nohz_next_event
2024/01/26 20:56 upstream ecb1b8288dc7 cc4a4020 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in tick_nohz_idle_stop_tick / tick_nohz_next_event
2024/01/24 19:17 upstream 615d30064886 1e153dc8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in tick_nohz_idle_stop_tick / tick_nohz_next_event
2024/01/22 18:05 upstream 6613476e225e 9bd8dcda .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in tick_nohz_idle_stop_tick / tick_nohz_next_event
2024/01/20 14:35 upstream 9d64bf433c53 9bd8dcda .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in tick_nohz_idle_stop_tick / tick_nohz_next_event
2024/01/19 18:01 upstream 9d1694dc91ce 9bd8dcda .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in tick_nohz_idle_stop_tick / tick_nohz_next_event
2024/01/19 03:27 upstream 86c4d58a99ab 21772ce4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in tick_nohz_idle_stop_tick / tick_nohz_next_event
2024/01/16 08:14 upstream 052d534373b7 2a7bcc7f .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in tick_nohz_idle_stop_tick / tick_nohz_next_event
2024/01/08 17:22 upstream 0dd3ee311255 4c0fd4bb .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in tick_nohz_idle_stop_tick / tick_nohz_next_event
2024/01/05 15:57 upstream 1f874787ed9a 28c42cff .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in tick_nohz_idle_stop_tick / tick_nohz_next_event
2024/01/04 02:45 upstream ac865f00af29 28c42cff .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in tick_nohz_idle_stop_tick / tick_nohz_next_event
2024/01/02 16:18 upstream 610a9b8f49fb fb427a07 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in tick_nohz_idle_stop_tick / tick_nohz_next_event
2023/12/29 17:11 upstream 8735c7c84d1b fb427a07 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in tick_nohz_idle_stop_tick / tick_nohz_next_event
2023/12/29 08:11 upstream 505e701c0b2c fb427a07 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in tick_nohz_idle_stop_tick / tick_nohz_next_event
2023/12/27 16:42 upstream fbafc3e621c3 fb427a07 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in tick_nohz_idle_stop_tick / tick_nohz_next_event
2023/12/24 02:53 upstream 3f82f1c3a036 fb427a07 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in tick_nohz_idle_stop_tick / tick_nohz_next_event
2023/12/23 09:01 upstream 5254c0cbc92d fb427a07 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in tick_nohz_idle_stop_tick / tick_nohz_next_event
2023/12/18 21:27 upstream 2cf4f94d8e86 924661f4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in tick_nohz_idle_stop_tick / tick_nohz_next_event
2023/12/15 13:50 upstream 3f7168591ebf 3222d10c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in tick_nohz_idle_stop_tick / tick_nohz_next_event
2023/12/13 23:24 upstream 5bd7ef53ffe5 3222d10c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in tick_nohz_idle_stop_tick / tick_nohz_next_event
2023/12/11 04:19 upstream a39b6ac3781d 28b24332 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in tick_nohz_idle_stop_tick / tick_nohz_next_event
2023/12/09 21:22 upstream b10a3ccaf6e3 28b24332 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in tick_nohz_idle_stop_tick / tick_nohz_next_event
2023/12/08 02:04 upstream 9ace34a8e446 28b24332 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in tick_nohz_idle_stop_tick / tick_nohz_next_event
2023/12/07 00:26 upstream bee0e7762ad2 e3299f55 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in tick_nohz_idle_stop_tick / tick_nohz_next_event
2023/12/03 11:14 upstream 1b8af6552cb7 f819d6f7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in tick_nohz_idle_stop_tick / tick_nohz_next_event
2023/12/02 16:49 upstream 815fb87b7530 f819d6f7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in tick_nohz_idle_stop_tick / tick_nohz_next_event
2023/12/02 01:08 upstream 994d5c58e50e f819d6f7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in tick_nohz_idle_stop_tick / tick_nohz_next_event
2023/11/30 11:32 upstream 3b47bc037bd4 f819d6f7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in tick_nohz_idle_stop_tick / tick_nohz_next_event
2023/11/29 19:14 upstream 3b47bc037bd4 6e78f9ce .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in tick_nohz_idle_stop_tick / tick_nohz_next_event
2023/11/28 19:04 upstream df60cee26a2e 9fe51b7c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in tick_nohz_idle_stop_tick / tick_nohz_next_event
2023/11/26 08:52 upstream 090472ed9c92 5b429f39 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in tick_nohz_idle_stop_tick / tick_nohz_next_event
2023/11/25 10:28 upstream 0f5cc96c367f 5b429f39 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in tick_nohz_idle_stop_tick / tick_nohz_next_event
2023/11/20 17:22 upstream 98b1cc82c4af cb976f63 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in tick_nohz_idle_stop_tick / tick_nohz_next_event
2023/11/19 22:55 upstream eb3479bc23fa cb976f63 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in tick_nohz_idle_stop_tick / tick_nohz_next_event
2023/11/19 14:02 upstream 037266a5f723 cb976f63 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in tick_nohz_idle_stop_tick / tick_nohz_next_event
2023/11/18 13:25 upstream 791c8ab095f7 cb976f63 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in tick_nohz_idle_stop_tick / tick_nohz_next_event
2023/11/17 14:32 upstream 7475e51b8796 cb976f63 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in tick_nohz_idle_stop_tick / tick_nohz_next_event
2023/11/13 21:02 upstream 9bacdd8996c7 cb976f63 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in tick_nohz_idle_stop_tick / tick_nohz_next_event
2023/11/13 17:39 upstream 9bacdd8996c7 6d6dbf8a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in tick_nohz_idle_stop_tick / tick_nohz_next_event
2023/11/12 01:08 upstream 3ca112b71f35 6d6dbf8a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in tick_nohz_idle_stop_tick / tick_nohz_next_event
2023/11/10 15:29 upstream 89cdf9d55601 45e9b83e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in tick_nohz_idle_stop_tick / tick_nohz_next_event
2023/11/08 21:03 upstream 305230142ae0 b93f63e8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in tick_nohz_idle_stop_tick / tick_nohz_next_event
2023/11/08 03:16 upstream 13d88ac54ddd 83211397 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in tick_nohz_idle_stop_tick / tick_nohz_next_event
2023/11/05 03:37 upstream aea6bf908d73 500bfdc4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in tick_nohz_idle_stop_tick / tick_nohz_next_event
2023/11/04 18:21 upstream 90b0c2b2edd1 500bfdc4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in tick_nohz_idle_stop_tick / tick_nohz_next_event
* Struck through repros no longer work on HEAD.