syzbot


KCSAN: data-race in ns_capable_common / task_dump_owner (2)

Status: auto-closed as invalid on 2020/04/11 04:18
Subsystems: fs
[Documentation on labels]
First crash: 1894d, last: 1823d
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 lsm 1 1924d 1924d 0/28 closed as invalid on 2019/11/19 13:44

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

read to 0xffff8880a53a8064 of 4 bytes by task 16282 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:3249 [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/0x3a0 arch/x86/entry/common.c:294
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

write to 0xffff8880a53a8064 of 4 bytes by task 7972 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/0xab0 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/0x3a0 arch/x86/entry/common.c:294
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

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

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/02/01 04:12 https://github.com/google/ktsan.git kcsan 245a43005292 0eb59c27 .config console log report ci2-upstream-kcsan-gce
2020/01/09 21:41 https://github.com/google/ktsan.git kcsan 245a43005292 4de4e9f0 .config console log report ci2-upstream-kcsan-gce
2019/12/21 03:58 https://github.com/google/ktsan.git kcsan 245a43005292 bc586918 .config console log report ci2-upstream-kcsan-gce
2019/11/22 13:00 https://github.com/google/ktsan.git kcsan 5863cc791e4c 598ca6c8 .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.