[moderation] [kernel?] KCSAN: data-race in tick_nohz_idle_stop_tick / tick_nohz_idle_stop_tick (4)

3 views
Skip to first unread message

syzbot

unread,
Dec 7, 2023, 5:15:26 AM12/7/23
to syzkaller-upst...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: bee0e7762ad2 Merge tag 'for-linus-iommufd' of git://git.ke..
git tree: upstream
console output: https://syzkaller.appspot.com/x/log.txt?x=12dd94e4e80000
kernel config: https://syzkaller.appspot.com/x/.config?x=ac34c1f29a8029df
dashboard link: https://syzkaller.appspot.com/bug?extid=5218977c522be0d6fa84
compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40
CC: [fred...@kernel.org linux-...@vger.kernel.org mi...@kernel.org tg...@linutronix.de]

Unfortunately, I don't have any reproducer for this issue yet.

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/233be5f65dd2/disk-bee0e776.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/94423738a289/vmlinux-bee0e776.xz
kernel image: https://storage.googleapis.com/syzbot-assets/0b977463fa9a/bzImage-bee0e776.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+521897...@syzkaller.appspotmail.com

==================================================================
BUG: KCSAN: data-race in tick_nohz_idle_stop_tick / tick_nohz_idle_stop_tick

write to 0xffffffff85f1a330 of 4 bytes by task 0 on cpu 1:
tick_nohz_stop_tick kernel/time/tick-sched.c:904 [inline]
tick_nohz_idle_stop_tick+0x1d8/0x760 kernel/time/tick-sched.c:1130
cpuidle_idle_call kernel/sched/idle.c:211 [inline]
do_idle+0x177/0x230 kernel/sched/idle.c:282
cpu_startup_entry+0x24/0x30 kernel/sched/idle.c:380
start_secondary+0x82/0x90 arch/x86/kernel/smpboot.c:336
secondary_startup_64_no_verify+0x167/0x16b

read to 0xffffffff85f1a330 of 4 bytes by task 0 on cpu 0:
tick_nohz_stop_tick kernel/time/tick-sched.c:903 [inline]
tick_nohz_idle_stop_tick+0x1b0/0x760 kernel/time/tick-sched.c:1130
cpuidle_idle_call kernel/sched/idle.c:211 [inline]
do_idle+0x177/0x230 kernel/sched/idle.c:282
cpu_startup_entry+0x24/0x30 kernel/sched/idle.c:380
rest_init+0xf3/0x100 init/main.c:730
arch_call_rest_init+0x9/0x10 init/main.c:827
start_kernel+0x57d/0x5d0 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+0x167/0x16b

value changed: 0x00000001 -> 0xffffffff

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 0 Comm: swapper/0 Not tainted 6.7.0-rc4-syzkaller-00009-gbee0e7762ad2 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/10/2023
==================================================================


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

If the report is already addressed, let syzbot know by replying with:
#syz fix: exact-commit-title

If you want to overwrite report's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)

If the report is a duplicate of another one, reply with:
#syz dup: exact-subject-of-another-report

If you want to undo deduplication, reply with:
#syz undup
Reply all
Reply to author
Forward
0 new messages