syzbot


KCSAN: data-race in generic_permission / kernfs_refresh_inode (3)

Status: auto-closed as invalid on 2020/04/11 12:29
Subsystems: kernfs
[Documentation on labels]
First crash: 1583d, last: 1544d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in generic_permission / kernfs_refresh_inode kernfs 20 1653d 1664d 0/26 closed as invalid on 2019/10/15 15:50
upstream KCSAN: data-race in generic_permission / kernfs_refresh_inode (2) kernfs 35 1626d 1652d 0/26 closed as invalid on 2019/11/19 14:04

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

read to 0xffff888128f24788 of 2 bytes by task 6451 on cpu 1:
 acl_permission_check fs/namei.c:295 [inline]
 generic_permission+0x36/0x410 fs/namei.c:339
 kernfs_iop_permission+0x7d/0xa0 fs/kernfs/inode.c:286
 do_inode_permission fs/namei.c:384 [inline]
 inode_permission+0x241/0x370 fs/namei.c:449
 may_lookup fs/namei.c:1696 [inline]
 link_path_walk.part.0+0x622/0xa90 fs/namei.c:2071
 link_path_walk fs/namei.c:2059 [inline]
 path_openat+0x14f/0x3580 fs/namei.c:3536
 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 0xffff888128f24788 of 2 bytes by task 5567 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_lookup fs/namei.c:1696 [inline]
 link_path_walk.part.0+0x622/0xa90 fs/namei.c:2071
 link_path_walk fs/namei.c:2059 [inline]
 path_openat+0x14f/0x3580 fs/namei.c:3536
 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: 5567 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 (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/02/01 12:29 https://github.com/google/ktsan.git kcsan 245a43005292 326d4c78 .config console log report ci2-upstream-kcsan-gce
2020/01/02 10:56 https://github.com/google/ktsan.git kcsan 245a43005292 25a0186e .config console log report ci2-upstream-kcsan-gce
2019/12/24 00:04 https://github.com/google/ktsan.git kcsan 245a43005292 be5c2c81 .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.