syzbot


KCSAN: data-race in futex_hash / futex_hash_allocate (2)

Status: moderation: reported on 2025/11/10 03:18
Subsystems: kernel
[Documentation on labels]
Reported-by: syzbot+6d10f917d32e4646f67c@syzkaller.appspotmail.com
First crash: 2d11h, last: 2d11h
Similar bugs (1)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in futex_hash / futex_hash_allocate kernel 6 1 79d 79d 0/29 auto-obsoleted due to no activity on 2025/10/19 17:47

Sample crash report:
==================================================================
BUG: KCSAN: data-race in futex_hash / futex_hash_allocate

write to 0xffff88810aee3aa8 of 8 bytes by task 9537 on cpu 0:
 futex_pivot_hash kernel/futex/core.c:268 [inline]
 futex_hash+0x170/0x240 kernel/futex/core.c:315
 class_hb_constructor kernel/futex/futex.h:240 [inline]
 futex_wake+0xdd/0x360 kernel/futex/waitwake.c:172
 do_futex+0x323/0x380 kernel/futex/syscalls.c:135
 __do_sys_futex kernel/futex/syscalls.c:207 [inline]
 __se_sys_futex+0x2ed/0x360 kernel/futex/syscalls.c:188
 __x64_sys_futex+0x78/0x90 kernel/futex/syscalls.c:188
 x64_sys_call+0x2e48/0x3000 arch/x86/include/generated/asm/syscalls_64.h:203
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xd2/0x200 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

read to 0xffff88810aee3aa8 of 8 bytes by task 9526 on cpu 1:
 futex_pivot_pending kernel/futex/core.c:1748 [inline]
 futex_hash_allocate+0x601/0x9d0 kernel/futex/core.c:1829
 futex_hash_prctl+0xd9/0xf0 kernel/futex/core.c:1958
 __do_sys_prctl kernel/sys.c:2869 [inline]
 __se_sys_prctl+0xc88/0x12e0 kernel/sys.c:2518
 __x64_sys_prctl+0x67/0x80 kernel/sys.c:2518
 x64_sys_call+0x20cf/0x3000 arch/x86/include/generated/asm/syscalls_64.h:158
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xd2/0x200 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

value changed: 0xffff888133f75a80 -> 0x0000000000000000

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 UID: 0 PID: 9526 Comm: syz.4.2315 Not tainted syzkaller #0 PREEMPT(voluntary) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/02/2025
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/11/10 03:18 upstream e9a6fb0bcdd7 4e1406b4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in futex_hash / futex_hash_allocate
* Struck through repros no longer work on HEAD.