[moderation] [kernel?] KCSAN: data-race in __futex_wait / hrtimer_wakeup

0 views
Skip to first unread message

syzbot

unread,
Jun 6, 2024, 9:51:28 PMJun 6
to syzkaller-upst...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: d30d0e49da71 Merge tag 'net-6.10-rc3' of git://git.kernel...
git tree: upstream
console output: https://syzkaller.appspot.com/x/log.txt?x=156a62ce980000
kernel config: https://syzkaller.appspot.com/x/.config?x=8c00b51a1d411353
dashboard link: https://syzkaller.appspot.com/bug?extid=7e78a9974d48a87903ad
compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40
CC: [anna-...@linutronix.de fred...@kernel.org linux-...@vger.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/4cac47708eca/disk-d30d0e49.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/7b6f5da412fe/vmlinux-d30d0e49.xz
kernel image: https://storage.googleapis.com/syzbot-assets/51d086a9e1e6/bzImage-d30d0e49.xz

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

==================================================================
BUG: KCSAN: data-race in __futex_wait / hrtimer_wakeup

read-write to 0xffffc9000119fd90 of 8 bytes by interrupt on cpu 1:
hrtimer_wakeup+0x1c/0x50 kernel/time/hrtimer.c:1921
__run_hrtimer kernel/time/hrtimer.c:1687 [inline]
__hrtimer_run_queues+0x20d/0x5e0 kernel/time/hrtimer.c:1751
hrtimer_interrupt+0x210/0x7b0 kernel/time/hrtimer.c:1813
local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1032 [inline]
__sysvec_apic_timer_interrupt+0x5c/0x1a0 arch/x86/kernel/apic/apic.c:1049
instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1043 [inline]
sysvec_apic_timer_interrupt+0x6e/0x80 arch/x86/kernel/apic/apic.c:1043
asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702
__preempt_count_dec_and_test arch/x86/include/asm/preempt.h:94 [inline]
__raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:152 [inline]
_raw_spin_unlock_irqrestore+0x3d/0x60 kernel/locking/spinlock.c:194
class_raw_spinlock_irqsave_destructor include/linux/spinlock.h:553 [inline]
try_to_wake_up+0x3e5/0x630 kernel/sched/core.c:4262
wake_up_process kernel/sched/core.c:4510 [inline]
wake_up_q+0x3f/0x80 kernel/sched/core.c:1029
__mutex_unlock_slowpath+0xf1/0x140 kernel/locking/mutex.c:956
mutex_unlock+0x20/0x30 kernel/locking/mutex.c:548
pipe_unlock+0x34/0x50 fs/pipe.c:99
splice_file_to_pipe+0x2a9/0x390 fs/splice.c:1296
do_splice+0xc97/0x1120 fs/splice.c:1379
__do_splice fs/splice.c:1436 [inline]
__do_sys_splice fs/splice.c:1652 [inline]
__se_sys_splice+0x24c/0x390 fs/splice.c:1634
__x64_sys_splice+0x78/0x90 fs/splice.c:1634
x64_sys_call+0x297f/0x2d70 arch/x86/include/generated/asm/syscalls_64.h:276
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xc9/0x1c0 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f

read to 0xffffc9000119fd90 of 8 bytes by task 13591 on cpu 0:
__futex_wait+0x17f/0x290 kernel/futex/waitwake.c:675
futex_wait+0x99/0x1c0 kernel/futex/waitwake.c:697
do_futex+0x276/0x370 kernel/futex/syscalls.c:102
__do_sys_futex kernel/futex/syscalls.c:179 [inline]
__se_sys_futex+0x25d/0x3a0 kernel/futex/syscalls.c:160
__x64_sys_futex+0x78/0x90 kernel/futex/syscalls.c:160
x64_sys_call+0x28c1/0x2d70 arch/x86/include/generated/asm/syscalls_64.h:203
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xc9/0x1c0 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f

value changed: 0xffff888127042100 -> 0x0000000000000000

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 13591 Comm: syz-executor.3 Not tainted 6.10.0-rc2-syzkaller-00222-gd30d0e49da71 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/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