syzbot


KCSAN: data-race in capable / do_task_stat (2)

Status: auto-closed as invalid on 2021/03/01 22:58
Subsystems: lsm
[Documentation on labels]
First crash: 1179d, last: 1179d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in capable / do_task_stat lsm 1 1234d 1228d 0/26 auto-closed as invalid on 2021/01/06 03:10

Sample crash report:
==================================================================
BUG: KCSAN: data-race in capable / do_task_stat

read-write to 0xffff88810a33802c of 4 bytes by task 14817 on cpu 0:
 ns_capable_common kernel/capability.c:377 [inline]
 ns_capable kernel/capability.c:396 [inline]
 capable+0x78/0xa0 kernel/capability.c:449
 sock_setsockopt+0x68f/0x2030 net/core/sock.c:896
 __sys_setsockopt+0x337/0x460 net/socket.c:2111
 __do_sys_setsockopt net/socket.c:2126 [inline]
 __se_sys_setsockopt net/socket.c:2123 [inline]
 __x64_sys_setsockopt+0x62/0x70 net/socket.c:2123
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff88810a33802c of 4 bytes by task 1 on cpu 1:
 do_task_stat+0x9c4/0x10c0 fs/proc/array.c:579
 proc_tgid_stat+0x2f/0x40 fs/proc/array.c:663
 proc_single_show+0x84/0x100 fs/proc/base.c:775
 seq_read_iter+0x2d8/0x8e0 fs/seq_file.c:227
 seq_read+0x221/0x260 fs/seq_file.c:159
 vfs_read+0x154/0x5c0 fs/read_write.c:494
 ksys_read+0xce/0x180 fs/read_write.c:634
 __do_sys_read fs/read_write.c:644 [inline]
 __se_sys_read fs/read_write.c:642 [inline]
 __x64_sys_read+0x3e/0x50 fs/read_write.c:642
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 1 Comm: systemd Not tainted 5.11.0-rc5-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
2021/01/25 22:50 upstream f8ad8187c3b5 52e37319 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in capable / do_task_stat
* Struck through repros no longer work on HEAD.