syzbot


KCSAN: data-race in copy_process / get_task_exe_file

Status: auto-closed as invalid on 2021/07/07 21:34
Subsystems: kernel
[Documentation on labels]
First crash: 1126d, last: 1052d

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

write to 0xffff888139ef106c of 4 bytes by task 10516 on cpu 1:
 copy_process+0x608/0x2e00 kernel/fork.c:1986
 kernel_clone+0x14b/0x680 kernel/fork.c:2503
 __do_sys_clone kernel/fork.c:2620 [inline]
 __se_sys_clone kernel/fork.c:2604 [inline]
 __x64_sys_clone+0xb4/0xe0 kernel/fork.c:2604
 do_syscall_64+0x4a/0x90 arch/x86/entry/common.c:47
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff888139ef106c of 4 bytes by task 10517 on cpu 0:
 get_task_exe_file+0x44/0x140 kernel/fork.c:1202
 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:1736 [inline]
 step_into+0x974/0xec0 fs/namei.c:1798
 open_last_lookups fs/namei.c:3308 [inline]
 path_openat+0xfc8/0x20b0 fs/namei.c:3491
 do_filp_open+0xd9/0x1f0 fs/namei.c:3521
 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+0x4a/0x90 arch/x86/entry/common.c:47
 entry_SYSCALL_64_after_hwframe+0x44/0xae

value changed: 0x00404040 -> 0x40404040

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 10517 Comm: syz-executor.0 Not tainted 5.13.0-rc4-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (23):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/06/02 21:30 upstream 324c92e5e0ee 0740de69 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in copy_process / get_task_exe_file
2021/05/28 05:49 upstream 97e5bf604b7a 858ea628 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in copy_process / get_task_exe_file
2021/05/27 20:03 upstream d7c5303fbc8a 858ea628 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in copy_process / get_task_exe_file
2021/05/26 13:32 upstream ad9f25d33860 750ce164 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in copy_process / get_task_exe_file
2021/05/17 11:04 upstream d07f6ca923ea a2eb125d .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in copy_process / get_task_exe_file
2021/05/15 03:09 upstream bd3c9cdb21a2 8bdd5343 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in copy_process / get_task_exe_file
2021/05/13 17:03 upstream c06a2ba62fc4 ecb594cb .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in copy_process / get_task_exe_file
2021/05/10 03:08 upstream 9819f682e48c bc5434be .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in copy_process / get_task_exe_file
2021/05/06 02:56 upstream a79cdfba68a1 06c27ff5 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in copy_process / get_task_exe_file
2021/05/03 10:20 upstream 9ccce092fc64 77e2b668 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in copy_process / get_task_exe_file
2021/04/30 02:17 upstream 8ca5297e7e38 77e2b668 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in copy_process / get_task_exe_file
2021/04/27 04:59 upstream 9f4ad9e425a1 8ee2dea6 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in copy_process / get_task_exe_file
2021/04/26 01:31 upstream d2d09fbe33f8 2a82f1b3 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in copy_process / get_task_exe_file
2021/04/22 06:04 upstream 16fc44d6387e 2bc8999a .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in copy_process / get_task_exe_file
2021/04/20 09:10 upstream 7af08140979a c0ced557 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in copy_process / get_task_exe_file
2021/04/19 10:22 upstream bf05bf16c76b 50f523d7 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in copy_process / get_task_exe_file
2021/04/18 02:47 upstream 194cf4825638 7e2b734b .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in copy_process / get_task_exe_file
2021/04/16 18:43 upstream 2f7b98d1e55c 7e2b734b .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in copy_process / get_task_exe_file
2021/04/12 05:50 upstream 7d900724913c 6a81331a .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in copy_process / get_task_exe_file
2021/04/02 03:18 upstream ffd9fb546d49 6a81331a .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in copy_process / get_task_exe_file
2021/03/31 18:02 upstream 5e46d1b78a03 6a81331a .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in copy_process / get_task_exe_file
2021/03/21 09:22 upstream 812da4d39463 17810eae .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in copy_process / get_task_exe_file
2021/03/20 19:31 upstream 1c273e10bc0c e45f5621 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in copy_process / get_task_exe_file
* Struck through repros no longer work on HEAD.