syzbot


KCSAN: data-race in attach_to_pi_owner / do_nanosleep (2)

Status: auto-closed as invalid on 2021/03/01 22:08
Subsystems: kernel
[Documentation on labels]
First crash: 1185d, last: 1185d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in attach_to_pi_owner / do_nanosleep (3) kernel 3 1070d 1104d 0/26 auto-closed as invalid on 2021/06/24 12:20
upstream KCSAN: data-race in attach_to_pi_owner / do_nanosleep kernel 1 1468d 1468d 0/26 auto-closed as invalid on 2020/06/18 14:14

Sample crash report:
==================================================================
BUG: KCSAN: data-race in attach_to_pi_owner / do_nanosleep

read-write to 0xffff88810941902c of 4 bytes by task 8451 on cpu 0:
 freezer_count include/linux/freezer.h:121 [inline]
 freezable_schedule include/linux/freezer.h:173 [inline]
 do_nanosleep+0x111/0x3c0 kernel/time/hrtimer.c:1878
 hrtimer_nanosleep kernel/time/hrtimer.c:1931 [inline]
 __do_sys_nanosleep kernel/time/hrtimer.c:1965 [inline]
 __se_sys_nanosleep+0x20b/0x2a0 kernel/time/hrtimer.c:1952
 __x64_sys_nanosleep+0x2d/0x40 kernel/time/hrtimer.c:1952
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff88810941902c of 4 bytes by task 15666 on cpu 1:
 attach_to_pi_owner+0x64/0x480 kernel/futex.c:1215
 futex_lock_pi_atomic+0x338/0x4f0 kernel/futex.c:1420
 futex_lock_pi+0x2bf/0x880 kernel/futex.c:2797
 do_futex+0x1fc/0x20c0 kernel/futex.c:3776
 __do_sys_futex kernel/futex.c:3826 [inline]
 __se_sys_futex+0x2a8/0x390 kernel/futex.c:3792
 __x64_sys_futex+0x74/0x80 kernel/futex.c:3792
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 15666 Comm: syz-executor.4 Not tainted 5.11.0-rc5-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/01/25 22:06 upstream f8ad8187c3b5 52e37319 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in attach_to_pi_owner / do_nanosleep
* Struck through repros no longer work on HEAD.