syzbot


KCSAN: data-race in ns_capable / task_dump_owner

Status: auto-closed as invalid on 2020/08/04 20:26
Subsystems: lsm
[Documentation on labels]
First crash: 1394d, last: 1394d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in ns_capable / task_dump_owner (2) lsm 1 1340d 1340d 0/26 auto-closed as invalid on 2020/09/27 08:17
upstream KCSAN: data-race in ns_capable / task_dump_owner (4) lsm 17 1056d 1105d 0/26 auto-closed as invalid on 2021/07/08 11:07
upstream KCSAN: data-race in ns_capable / task_dump_owner (3) lsm 1 1188d 1188d 0/26 auto-closed as invalid on 2021/02/26 13:47

Sample crash report:
==================================================================
BUG: KCSAN: data-race in ns_capable / task_dump_owner

write to 0xffff888093bcb024 of 4 bytes by task 3688 on cpu 1:
 ns_capable_common kernel/capability.c:377 [inline]
 ns_capable+0x86/0xb0 kernel/capability.c:396
 __sys_setgid+0x8e/0x1a0 kernel/sys.c:435
 __do_sys_setgid kernel/sys.c:455 [inline]
 __se_sys_setgid kernel/sys.c:453 [inline]
 __x64_sys_setgid+0x1a/0x20 kernel/sys.c:453
 do_syscall_64+0x51/0xb0 arch/x86/entry/common.c:359
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff888093bcb024 of 4 bytes by task 5029 on cpu 0:
 task_dump_owner+0x2b/0x1b0 fs/proc/base.c:1809
 pid_update_inode fs/proc/base.c:1951 [inline]
 proc_pident_instantiate+0x138/0x190 fs/proc/base.c:2604
 proc_pident_lookup fs/proc/base.c:2628 [inline]
 proc_tgid_base_lookup+0x10c/0x180 fs/proc/base.c:3276
 lookup_open fs/namei.c:3074 [inline]
 open_last_lookups fs/namei.c:3169 [inline]
 path_openat+0xa6e/0x20e0 fs/namei.c:3357
 do_filp_open+0xbd/0x1d0 fs/namei.c:3387
 do_sys_openat2+0x33c/0x4a0 fs/open.c:1179
 do_sys_open fs/open.c:1195 [inline]
 ksys_open include/linux/syscalls.h:1388 [inline]
 __do_sys_open fs/open.c:1201 [inline]
 __se_sys_open fs/open.c:1199 [inline]
 __x64_sys_open+0xe2/0x110 fs/open.c:1199
 do_syscall_64+0x51/0xb0 arch/x86/entry/common.c:359
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 5029 Comm: systemd-journal Not tainted 5.8.0-rc3-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
2020/06/30 20:17 upstream 7c30b859a947 c0383ebe .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.