syzbot


KCSAN: data-race in bprm_execve / copy_fs (3)

Status: moderation: reported on 2024/07/03 15:50
Subsystems: fs mm
[Documentation on labels]
Reported-by: syzbot+d67f2f707d5947d70985@syzkaller.appspotmail.com
First crash: 3d13h, last: 3d13h
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in bprm_execve / copy_fs (2) fs mm 1 81d 81d 0/27 auto-obsoleted due to no activity on 2024/05/21 23:09
upstream KCSAN: data-race in bprm_execve / copy_fs fs mm 3 598d 659d 0/27 auto-obsoleted due to no activity on 2023/01/03 10:25

Sample crash report:
==================================================================
BUG: KCSAN: data-race in bprm_execve / copy_fs

write to 0xffff888112b93e10 of 4 bytes by task 11199 on cpu 0:
 bprm_execve+0x971/0xc60 fs/exec.c:1916
 do_execveat_common+0x768/0x7d0 fs/exec.c:1998
 do_execveat fs/exec.c:2083 [inline]
 __do_sys_execveat fs/exec.c:2157 [inline]
 __se_sys_execveat fs/exec.c:2151 [inline]
 __x64_sys_execveat+0x75/0x90 fs/exec.c:2151
 x64_sys_call+0x8b2/0x2d70 arch/x86/include/generated/asm/syscalls_64.h:323
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xc9/0x1c0 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

read to 0xffff888112b93e10 of 4 bytes by task 11197 on cpu 1:
 copy_fs+0x95/0xf0 kernel/fork.c:1755
 copy_process+0xe6c/0x1f90 kernel/fork.c:2381
 kernel_clone+0x16a/0x570 kernel/fork.c:2797
 __do_sys_clone3 kernel/fork.c:3098 [inline]
 __se_sys_clone3+0x1b5/0x1f0 kernel/fork.c:3082
 __x64_sys_clone3+0x31/0x40 kernel/fork.c:3082
 x64_sys_call+0x28df/0x2d70 arch/x86/include/generated/asm/syscalls_64.h:436
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xc9/0x1c0 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

value changed: 0x00000001 -> 0x00000000

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 11197 Comm: syz.3.1893 Not tainted 6.10.0-rc6-syzkaller-00061-ge9d22f7a6655 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/07/03 15:49 upstream e9d22f7a6655 1ecfa2d8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in bprm_execve / copy_fs
* Struck through repros no longer work on HEAD.