syzbot


KCSAN: data-race in ns_capable_setid / task_dump_owner

Status: auto-closed as invalid on 2021/07/04 04:25
Subsystems: lsm
[Documentation on labels]
First crash: 1091d, last: 1059d

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

write to 0xffff888125d6602c of 4 bytes by task 1470 on cpu 1:
 ns_capable_common kernel/capability.c:377 [inline]
 ns_capable_setid+0x89/0xb0 kernel/capability.c:433
 __sys_setgid+0x8e/0x1a0 kernel/sys.c:441
 __do_sys_setgid kernel/sys.c:461 [inline]
 __se_sys_setgid kernel/sys.c:459 [inline]
 __x64_sys_setgid+0x1a/0x20 kernel/sys.c:459
 do_syscall_64+0x4a/0x90 arch/x86/entry/common.c:47
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff888125d6602c of 4 bytes by task 1022 on cpu 0:
 task_dump_owner+0x2b/0x1d0 fs/proc/base.c:1822
 pid_update_inode fs/proc/base.c:1964 [inline]
 pid_revalidate+0x69/0x110 fs/proc/base.c:1987
 lookup_fast+0x1fd/0x350 fs/namei.c:827
 walk_component+0x5c/0x350 fs/namei.c:1938
 link_path_walk+0x4ba/0x780 fs/namei.c:2265
 path_openat+0x1a0/0x20b0 fs/namei.c:3490
 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_open fs/open.c:1211 [inline]
 __se_sys_open fs/open.c:1207 [inline]
 __x64_sys_open+0xe2/0x110 fs/open.c:1207
 do_syscall_64+0x4a/0x90 arch/x86/entry/common.c:47
 entry_SYSCALL_64_after_hwframe+0x44/0xae

value changed: 0x00404040 -> 0x00404140

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 1022 Comm: systemd-journal Not tainted 5.13.0-rc3-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/05/30 04:17 upstream f956cb99b938 325a8dab .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in ns_capable_setid / task_dump_owner
2021/05/01 12:17 upstream 9f67672a817e 77e2b668 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in ns_capable_setid / task_dump_owner
2021/04/28 06:17 upstream e359bce39d90 77e2b668 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in ns_capable_setid / task_dump_owner
* Struck through repros no longer work on HEAD.