syzbot


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

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

write to 0xffff888105c1f06c of 4 bytes by task 1775 on cpu 1:
 freezer_do_not_count include/linux/freezer.h:109 [inline]
 freezable_schedule include/linux/freezer.h:171 [inline]
 do_nanosleep+0xff/0x3d0 kernel/time/hrtimer.c:1896
 hrtimer_nanosleep+0xfa/0x1f0 kernel/time/hrtimer.c:1949
 common_nsleep+0x69/0x80 kernel/time/posix-timers.c:1227
 __do_sys_clock_nanosleep kernel/time/posix-timers.c:1267 [inline]
 __se_sys_clock_nanosleep kernel/time/posix-timers.c:1245 [inline]
 __x64_sys_clock_nanosleep+0x1ee/0x220 kernel/time/posix-timers.c:1245
 do_syscall_64+0x4a/0x90 arch/x86/entry/common.c:47
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff888105c1f06c of 4 bytes by task 23688 on cpu 0:
 attach_to_pi_owner+0x64/0x530 kernel/futex.c:1234
 futex_lock_pi_atomic+0x358/0x520 kernel/futex.c:1439
 futex_lock_pi+0x2c9/0x850 kernel/futex.c:2799
 do_futex+0x1ea/0x1ee0 kernel/futex.c:3745
 __do_sys_futex kernel/futex.c:3805 [inline]
 __se_sys_futex+0x21c/0x380 kernel/futex.c:3786
 __x64_sys_futex+0x74/0x80 kernel/futex.c:3786
 do_syscall_64+0x4a/0x90 arch/x86/entry/common.c:47
 entry_SYSCALL_64_after_hwframe+0x44/0xae

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 23688 Comm: syz-executor.4 Tainted: G        W         5.13.0-rc2-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/05/20 12:14 upstream c3d0e3fd41b7 c560a65d .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in attach_to_pi_owner / do_nanosleep
2021/04/19 22:32 upstream 7af08140979a 4285c989 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in attach_to_pi_owner / do_nanosleep
2021/04/16 18:06 upstream 2f7b98d1e55c 7e2b734b .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.