syzbot


KCSAN: data-race in generic_permission / pid_update_inode (2)

Status: auto-closed as invalid on 2020/02/09 00:37
Subsystems: fs
[Documentation on labels]
First crash: 1608d, last: 1608d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in generic_permission / pid_update_inode fs 3 1633d 1636d 0/26 closed as invalid on 2019/11/19 13:54

Sample crash report:
==================================================================
BUG: KCSAN: data-race in generic_permission / pid_update_inode

read to 0xffff888125666ac8 of 2 bytes by task 11146 on cpu 0:
 acl_permission_check fs/namei.c:295 [inline]
 generic_permission+0x36/0x3d0 fs/namei.c:339
 proc_pid_permission+0xea/0x1c0 fs/proc/base.c:735
 do_inode_permission fs/namei.c:384 [inline]
 inode_permission+0x241/0x3c0 fs/namei.c:449
 may_lookup fs/namei.c:1694 [inline]
 link_path_walk.part.0+0x622/0xa90 fs/namei.c:2074
 link_path_walk fs/namei.c:2062 [inline]
 path_openat+0x14f/0x36e0 fs/namei.c:3524
 do_filp_open+0x11e/0x1b0 fs/namei.c:3555
 do_sys_open+0x3b3/0x4f0 fs/open.c:1097
 __do_sys_open fs/open.c:1115 [inline]
 __se_sys_open fs/open.c:1110 [inline]
 __x64_sys_open+0x55/0x70 fs/open.c:1110
 do_syscall_64+0xcc/0x370 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

write to 0xffff888125666ac8 of 2 bytes by task 11150 on cpu 1:
 pid_update_inode+0x51/0x70 fs/proc/base.c:1820
 pid_revalidate+0x91/0xd0 fs/proc/base.c:1841
 d_revalidate fs/namei.c:758 [inline]
 d_revalidate fs/namei.c:755 [inline]
 lookup_fast+0x6f2/0x700 fs/namei.c:1607
 walk_component+0x6d/0xe70 fs/namei.c:1796
 link_path_walk.part.0+0x5d3/0xa90 fs/namei.c:2131
 link_path_walk fs/namei.c:2062 [inline]
 path_openat+0x14f/0x36e0 fs/namei.c:3524
 do_filp_open+0x11e/0x1b0 fs/namei.c:3555
 do_sys_open+0x3b3/0x4f0 fs/open.c:1097
 __do_sys_open fs/open.c:1115 [inline]
 __se_sys_open fs/open.c:1110 [inline]
 __x64_sys_open+0x55/0x70 fs/open.c:1110
 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: 11150 Comm: ps Not tainted 5.4.0-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
2019/12/01 00:31 https://github.com/google/ktsan.git kcsan ef798c30ba4e a76bf83f .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.