syzbot


KCSAN: data-race in futex_wait_queue_me / get_task_exe_file

Status: auto-closed as invalid on 2021/04/18 02:56
Subsystems: kernel
[Documentation on labels]
First crash: 1138d, last: 1138d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in futex_wait_queue_me / get_task_exe_file (2) kernel 1 1100d 1094d 0/26 auto-closed as invalid on 2021/05/26 09:36

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

write to 0xffff888022d7502c of 4 bytes by task 13826 on cpu 1:
 freezer_count include/linux/freezer.h:121 [inline]
 freezable_schedule include/linux/freezer.h:173 [inline]
 futex_wait_queue_me+0x1a8/0x250 kernel/futex.c:2606
 futex_wait+0x145/0x3d0 kernel/futex.c:2708
 do_futex+0x1062/0x1cd0 kernel/futex.c:3735
 __do_sys_futex kernel/futex.c:3798 [inline]
 __se_sys_futex+0x2a8/0x390 kernel/futex.c:3764
 __x64_sys_futex+0x74/0x80 kernel/futex.c:3764
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff888022d7502c of 4 bytes by task 13832 on cpu 0:
 get_task_exe_file+0x44/0x120 kernel/fork.c:1188
 proc_exe_link+0x44/0x100 fs/proc/base.c:1725
 proc_pid_get_link+0x50/0xb0 fs/proc/base.c:1750
 pick_link fs/namei.c:1733 [inline]
 step_into+0x974/0xec0 fs/namei.c:1795
 open_last_lookups fs/namei.c:3312 [inline]
 path_openat+0x105e/0x21b0 fs/namei.c:3495
 do_filp_open+0xbd/0x1d0 fs/namei.c:3525
 do_sys_openat2+0xa3/0x250 fs/open.c:1187
 do_sys_open fs/open.c:1203 [inline]
 __do_sys_openat fs/open.c:1219 [inline]
 __se_sys_openat fs/open.c:1214 [inline]
 __x64_sys_openat+0xef/0x110 fs/open.c:1214
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xae

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 13832 Comm: syz-executor.5 Not tainted 5.12.0-rc2-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/03/14 02:54 upstream 88fe49249c99 4a003785 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in futex_wait_queue_me / get_task_exe_file
* Struck through repros no longer work on HEAD.