syzbot


KCSAN: data-race in kernfs_refresh_inode / security_file_open (2)

Status: auto-closed as invalid on 2020/04/15 19:23
Subsystems: lsm
[Documentation on labels]
First crash: 1576d, last: 1513d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in kernfs_refresh_inode / security_file_open kernfs 1 1606d 1606d 0/26 closed as invalid on 2019/11/19 13:24

Sample crash report:
==================================================================
BUG: KCSAN: data-race in kernfs_refresh_inode / security_file_open

read to 0xffff888125537748 of 2 bytes by task 3989 on cpu 1:
 fsnotify_perm include/linux/fsnotify.h:82 [inline]
 security_file_open+0x11c/0x210 security/security.c:1501
 do_dentry_open+0x211/0x970 fs/open.c:784
 vfs_open+0x62/0x80 fs/open.c:914
 do_last fs/namei.c:3420 [inline]
 path_openat+0xf9f/0x3580 fs/namei.c:3537
 do_filp_open+0x11e/0x1b0 fs/namei.c:3567
 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/0x3a0 arch/x86/entry/common.c:294
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

write to 0xffff888125537748 of 2 bytes by task 8314 on cpu 0:
 kernfs_refresh_inode+0x42/0x140 fs/kernfs/inode.c:172
 kernfs_iop_permission+0x66/0xa0 fs/kernfs/inode.c:283
 do_inode_permission fs/namei.c:384 [inline]
 inode_permission+0x241/0x370 fs/namei.c:449
 may_open.isra.0+0x144/0x250 fs/namei.c:2980
 do_last fs/namei.c:3416 [inline]
 path_openat+0xf31/0x3580 fs/namei.c:3537
 do_filp_open+0x11e/0x1b0 fs/namei.c:3567
 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/0x3a0 arch/x86/entry/common.c:294
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

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

Crashes (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/02/05 19:15 https://github.com/google/ktsan.git kcsan 245a43005292 662cf49a .config console log report ci2-upstream-kcsan-gce
2020/02/02 15:15 https://github.com/google/ktsan.git kcsan 245a43005292 93e5e335 .config console log report ci2-upstream-kcsan-gce
2020/01/31 08:00 https://github.com/google/ktsan.git kcsan 245a43005292 5ed23f9a .config console log report ci2-upstream-kcsan-gce
2020/01/11 17:39 https://github.com/google/ktsan.git kcsan 245a43005292 4c04afaa .config console log report ci2-upstream-kcsan-gce
2019/12/04 04:49 https://github.com/google/ktsan.git kcsan ef798c30ba4e 0ecb9746 .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.