syzbot


KCSAN: data-race in attach_to_pi_owner / do_nanosleep

Status: auto-closed as invalid on 2020/06/18 14:14
Subsystems: kernel
[Documentation on labels]
First crash: 1467d, last: 1467d
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 1069d 1103d 0/26 auto-closed as invalid on 2021/06/24 12:20
upstream KCSAN: data-race in attach_to_pi_owner / do_nanosleep (2) kernel 1 1184d 1184d 0/26 auto-closed as invalid on 2021/03/01 22:08

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

write to 0xffff88810ad25024 of 4 bytes by task 7044 on cpu 1:
 freezer_do_not_count include/linux/freezer.h:109 [inline]
 freezable_schedule include/linux/freezer.h:171 [inline]
 do_nanosleep+0x127/0x320 kernel/time/hrtimer.c:1879
 hrtimer_nanosleep+0x136/0x230 kernel/time/hrtimer.c:1932
 __do_sys_nanosleep kernel/time/hrtimer.c:1966 [inline]
 __se_sys_nanosleep kernel/time/hrtimer.c:1953 [inline]
 __x64_sys_nanosleep+0x14b/0x190 kernel/time/hrtimer.c:1953
 do_syscall_64+0xc7/0x3b0 arch/x86/entry/common.c:295
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff88810ad25024 of 4 bytes by task 24780 on cpu 0:
 attach_to_pi_owner+0x7f/0x560 kernel/futex.c:1233
 futex_lock_pi_atomic+0x23f/0x260 kernel/futex.c:1438
 futex_lock_pi+0x1c7/0x810 kernel/futex.c:2830
 do_futex+0x6a9/0x15b0 kernel/futex.c:3821
 __do_sys_futex kernel/futex.c:3869 [inline]
 __se_sys_futex kernel/futex.c:3837 [inline]
 __x64_sys_futex+0x2dc/0x410 kernel/futex.c:3837
 do_syscall_64+0xc7/0x3b0 arch/x86/entry/common.c:295
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 24780 Comm: syz-executor.3 Not tainted 5.7.0-rc1-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
2020/04/17 07:25 https://github.com/google/ktsan.git kcsan 7c3cd68e5d38 18397578 .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.