syzbot


KCSAN: data-race in futex_wait_queue_me / ptrace_attach (5)

Status: auto-closed as invalid on 2021/06/16 19:26
Subsystems: kernel
[Documentation on labels]
First crash: 1079d, last: 1079d
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in futex_wait_queue_me / ptrace_attach (2) kasan 1 1465d 1465d 0/26 auto-closed as invalid on 2020/06/18 13:13
upstream KCSAN: data-race in futex_wait_queue_me / ptrace_attach kasan 1 1561d 1561d 0/26 auto-closed as invalid on 2020/03/26 14:54
upstream KCSAN: data-race in futex_wait_queue_me / ptrace_attach (3) kernel 1 1340d 1340d 0/26 auto-closed as invalid on 2020/09/28 13:37
upstream KCSAN: data-race in futex_wait_queue_me / ptrace_attach (4) kernel 1 1188d 1188d 0/26 auto-closed as invalid on 2021/02/27 10:07

Sample crash report:
==================================================================
BUG: KCSAN: data-race in futex_wait_queue_me / ptrace_attach

write to 0xffff8881326250ac of 4 bytes by task 18701 on cpu 0:
 freezer_do_not_count include/linux/freezer.h:109 [inline]
 freezable_schedule include/linux/freezer.h:171 [inline]
 futex_wait_queue_me+0x198/0x260 kernel/futex.c:2606
 futex_wait+0x143/0x430 kernel/futex.c:2708
 do_futex+0x9d8/0x1ee0 kernel/futex.c:3732
 __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

read to 0xffff8881326250ac of 4 bytes by task 18692 on cpu 1:
 ptrace_attach+0xcf/0x510 kernel/ptrace.c:395
 __do_sys_ptrace kernel/ptrace.c:1297 [inline]
 __se_sys_ptrace+0xc1/0x1b0 kernel/ptrace.c:1277
 __x64_sys_ptrace+0x51/0x60 kernel/ptrace.c:1277
 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: 1 PID: 18692 Comm: syz-executor.1 Not tainted 5.13.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
2021/05/12 19:25 upstream dbb5afad100a ed7d41c5 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in futex_wait_queue_me / ptrace_attach
* Struck through repros no longer work on HEAD.