syzbot


KCSAN: data-race in ns_capable_common / task_dump_owner

Status: closed as invalid on 2019/11/19 13:44
Subsystems: lsm
[Documentation on labels]
First crash: 1646d, last: 1646d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in ns_capable_common / task_dump_owner (2) fs 4 1546d 1616d 0/26 auto-closed as invalid on 2020/04/11 04:18

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

write to 0xffff8880b6c4f0e4 of 4 bytes by task 7272 on cpu 0:
 ns_capable_common+0x9f/0xc0 kernel/capability.c:377
 ns_capable+0x29/0x40 kernel/capability.c:396
 may_mount fs/namespace.c:1643 [inline]
 ksys_umount+0x97/0xad0 fs/namespace.c:1677
 __do_sys_umount fs/namespace.c:1709 [inline]
 __se_sys_umount fs/namespace.c:1707 [inline]
 __x64_sys_umount+0x3a/0x50 fs/namespace.c:1707
 do_syscall_64+0xcc/0x370 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff8880b6c4f0e4 of 4 bytes by task 10592 on cpu 1:
 task_dump_owner+0x43/0x260 fs/proc/base.c:1698
 pid_getattr+0x11b/0x1a0 fs/proc/base.c:1805
 vfs_getattr_nosec+0x12e/0x170 fs/stat.c:81
 vfs_getattr+0x54/0x70 fs/stat.c:118
 vfs_statx+0x102/0x190 fs/stat.c:191
 vfs_stat include/linux/fs.h:3242 [inline]
 __do_sys_newstat+0x51/0xb0 fs/stat.c:341
 __se_sys_newstat fs/stat.c:337 [inline]
 __x64_sys_newstat+0x3a/0x50 fs/stat.c:337
 do_syscall_64+0xcc/0x370 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 10592 Comm: ps Not tainted 5.4.0-rc3+ #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
2019/10/23 17:33 https://github.com/google/ktsan.git kcsan 05f2236801fe b602d64b .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.