syzbot


KCSAN: data-race in generic_fillattr / task_dump_owner

Status: closed as invalid on 2019/10/18 14:11
Subsystems: fs
[Documentation on labels]
First crash: 1652d, last: 1652d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in generic_fillattr / task_dump_owner (2) fs 16 1537d 1627d 0/26 auto-closed as invalid on 2020/04/12 14:40

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

read to 0xffff888124467570 of 4 bytes by task 7320 on cpu 1:
 generic_fillattr+0xc7/0x1e0 fs/stat.c:40
 pid_getattr+0x74/0x1a0 fs/proc/base.c:1790
 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:3188 [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+0xcf/0x2f0 arch/x86/entry/common.c:296
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

write to 0xffff888124467570 of 4 bytes by task 7324 on cpu 0:
 task_dump_owner+0x246/0x260 fs/proc/base.c:1700
 pid_update_inode+0x3c/0x70 fs/proc/base.c:1818
 pid_revalidate+0x91/0xd0 fs/proc/base.c:1841
 d_revalidate fs/namei.c:765 [inline]
 d_revalidate fs/namei.c:762 [inline]
 lookup_fast+0x7cb/0x7e0 fs/namei.c:1613
 walk_component+0x6d/0xe80 fs/namei.c:1804
 link_path_walk.part.0+0x5d3/0xa90 fs/namei.c:2139
 link_path_walk fs/namei.c:2070 [inline]
 path_openat+0x14f/0x3530 fs/namei.c:3532
 do_filp_open+0x11e/0x1b0 fs/namei.c:3563
 do_sys_open+0x3b3/0x4f0 fs/open.c:1089
 __do_sys_open fs/open.c:1107 [inline]
 __se_sys_open fs/open.c:1102 [inline]
 __x64_sys_open+0x55/0x70 fs/open.c:1102
 do_syscall_64+0xcf/0x2f0 arch/x86/entry/common.c:296
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 7324 Comm: ps Not tainted 5.3.0+ #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/10 23:47 https://github.com/google/ktsan.git kcsan d724f94f63de 1a3bad90 .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.