syzbot


KCSAN: data-race in pid_update_inode / tomoyo_get_local_path

Status: closed as invalid on 2019/11/19 13:24
Subsystems: tomoyo
[Documentation on labels]
First crash: 1631d, last: 1626d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in pid_update_inode / tomoyo_get_local_path (2) tomoyo 6 1542d 1602d 0/26 auto-closed as invalid on 2020/04/05 00:34

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

read to 0xffff888125a692d8 of 2 bytes by task 7549 on cpu 0:
 tomoyo_get_dentry_path security/tomoyo/realpath.c:134 [inline]
 tomoyo_get_local_path+0x403/0x470 security/tomoyo/realpath.c:156
 tomoyo_realpath_from_path+0x288/0x4c0 security/tomoyo/realpath.c:310
 tomoyo_get_realpath security/tomoyo/file.c:151 [inline]
 tomoyo_path_perm+0x15d/0x390 security/tomoyo/file.c:822
 tomoyo_inode_getattr+0x26/0x40 security/tomoyo/tomoyo.c:129
 security_inode_getattr+0x9b/0xd0 security/security.c:1222
 vfs_getattr+0x2e/0x70 fs/stat.c:115
 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

write to 0xffff888125a692d8 of 2 bytes by task 7610 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/0xe80 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: 7610 Comm: ps Not tainted 5.4.0-rc3+ #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/11/03 09:46 https://github.com/google/ktsan.git kcsan 05f2236801fe c9610487 .config console log report ci2-upstream-kcsan-gce
2019/10/28 16:04 https://github.com/google/ktsan.git kcsan 05f2236801fe 439d7b14 .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.