[moderation] [acpi?] KCSAN: data-race in __run_timer_base / next_expiry_recalc

0 views
Skip to first unread message

syzbot

unread,
Mar 28, 2024, 8:46:30 PMMar 28
to syzkaller-upst...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 8d025e2092e2 Merge tag 'erofs-for-6.9-rc2-fixes' of git://..
git tree: upstream
console output: https://syzkaller.appspot.com/x/log.txt?x=1783a251180000
kernel config: https://syzkaller.appspot.com/x/.config?x=aa27611f143168c9
dashboard link: https://syzkaller.appspot.com/bug?extid=9986cce492ee36844300
compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40
CC: [le...@kernel.org linux...@vger.kernel.org linux-...@vger.kernel.org raf...@kernel.org]

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

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/25a7994bce97/disk-8d025e20.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/fd186f3a786f/vmlinux-8d025e20.xz
kernel image: https://storage.googleapis.com/syzbot-assets/a958ca120141/bzImage-8d025e20.xz

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

==================================================================
BUG: KCSAN: data-race in __run_timer_base / next_expiry_recalc

write to 0xffff888237d1ded8 of 8 bytes by interrupt on cpu 1:
next_expiry_recalc+0x187/0x1e0 kernel/time/timer.c:1968
__run_timers kernel/time/timer.c:2415 [inline]
__run_timer_base+0x2ee/0x640 kernel/time/timer.c:2429
run_timer_base kernel/time/timer.c:2438 [inline]
run_timer_softirq+0x31/0x70 kernel/time/timer.c:2448
__do_softirq+0xc8/0x285 kernel/softirq.c:554
invoke_softirq kernel/softirq.c:428 [inline]
__irq_exit_rcu kernel/softirq.c:633 [inline]
irq_exit_rcu+0x3c/0x90 kernel/softirq.c:645
instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1043 [inline]
sysvec_apic_timer_interrupt+0x73/0x80 arch/x86/kernel/apic/apic.c:1043
asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702
native_safe_halt arch/x86/include/asm/irqflags.h:48 [inline]
arch_safe_halt arch/x86/include/asm/irqflags.h:86 [inline]
acpi_safe_halt+0x21/0x30 drivers/acpi/processor_idle.c:112
acpi_idle_do_entry+0x1d/0x30 drivers/acpi/processor_idle.c:573
acpi_idle_enter+0x96/0xb0 drivers/acpi/processor_idle.c:707
cpuidle_enter_state+0xcf/0x270 drivers/cpuidle/cpuidle.c:267
cpuidle_enter+0x40/0x70 drivers/cpuidle/cpuidle.c:388
call_cpuidle kernel/sched/idle.c:155 [inline]
cpuidle_idle_call kernel/sched/idle.c:236 [inline]
do_idle+0x195/0x230 kernel/sched/idle.c:332
cpu_startup_entry+0x25/0x30 kernel/sched/idle.c:430
start_secondary+0x94/0xa0 arch/x86/kernel/smpboot.c:313
common_startup_64+0x12c/0x137

read to 0xffff888237d1ded8 of 8 bytes by interrupt on cpu 0:
__run_timer_base+0x52/0x640 kernel/time/timer.c:2424
timer_expire_remote+0x2f/0x40 kernel/time/timer.c:2181
tmigr_handle_remote_cpu kernel/time/timer_migration.c:908 [inline]
tmigr_handle_remote_up kernel/time/timer_migration.c:1000 [inline]
__walk_groups kernel/time/timer_migration.c:488 [inline]
tmigr_handle_remote+0x4ee/0x910 kernel/time/timer_migration.c:1061
run_timer_softirq+0x5f/0x70 kernel/time/timer.c:2452
__do_softirq+0xc8/0x285 kernel/softirq.c:554
invoke_softirq kernel/softirq.c:428 [inline]
__irq_exit_rcu kernel/softirq.c:633 [inline]
irq_exit_rcu+0x3c/0x90 kernel/softirq.c:645
instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1043 [inline]
sysvec_apic_timer_interrupt+0x73/0x80 arch/x86/kernel/apic/apic.c:1043
asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702
kcsan_setup_watchpoint+0x404/0x410 kernel/kcsan/core.c:705
__io_commit_cqring_flush+0x20/0x1c0 io_uring/io_uring.c:622
io_commit_cqring_flush io_uring/io_uring.h:373 [inline]
io_cq_unlock_post io_uring/io_uring.c:666 [inline]
__io_cqring_overflow_flush+0x41c/0x430 io_uring/io_uring.c:714
io_cqring_do_overflow_flush io_uring/io_uring.c:722 [inline]
io_cqring_wait io_uring/io_uring.c:2675 [inline]
__do_sys_io_uring_enter io_uring/io_uring.c:3708 [inline]
__se_sys_io_uring_enter+0x1434/0x1820 io_uring/io_uring.c:3598
__x64_sys_io_uring_enter+0x78/0x90 io_uring/io_uring.c:3598
do_syscall_64+0xd3/0x1d0
entry_SYSCALL_64_after_hwframe+0x6d/0x75

value changed: 0x00000001000330cd -> 0x00000001000330ce

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 3255 Comm: syz-executor.2 Tainted: G W 6.9.0-rc1-syzkaller-00061-g8d025e2092e2 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
==================================================================


---
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