syzbot


KCSAN: data-race in inode_doinit_with_dentry / inode_doinit_with_dentry (2)

Status: moderation: reported on 2024/04/21 16:52
Subsystems: selinux
[Documentation on labels]
Reported-by: syzbot+a3402bb464b92bd64136@syzkaller.appspotmail.com
First crash: 12d, last: 12d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in inode_doinit_with_dentry / inode_doinit_with_dentry selinux 1 376d 376d 0/26 auto-obsoleted due to no activity on 2023/05/28 13:10

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

write to 0xffff88811743a112 of 1 bytes by task 15552 on cpu 1:
 inode_doinit_with_dentry+0x29c/0x840 security/selinux/hooks.c:1443
 __inode_security_revalidate security/selinux/hooks.c:295 [inline]
 inode_security security/selinux/hooks.c:320 [inline]
 selinux_file_open+0x101/0x3b0 security/selinux/hooks.c:3968
 security_file_open+0x3a/0x70 security/security.c:2961
 do_dentry_open+0x221/0xbe0 fs/open.c:942
 vfs_open fs/open.c:1089 [inline]
 dentry_open+0x7e/0xc0 fs/open.c:1103
 pidfs_alloc_file+0xe6/0x150 fs/pidfs.c:273
 __pidfd_prepare kernel/fork.c:2029 [inline]
 pidfd_prepare+0x5f/0xe0 kernel/fork.c:2077
 pidfd_create kernel/pid.c:608 [inline]
 __do_sys_pidfd_open kernel/pid.c:644 [inline]
 __se_sys_pidfd_open+0x123/0x240 kernel/pid.c:629
 __x64_sys_pidfd_open+0x31/0x40 kernel/pid.c:629
 x64_sys_call+0x28a7/0x2d30 arch/x86/include/generated/asm/syscalls_64.h:435
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xcd/0x1d0 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

read to 0xffff88811743a112 of 1 bytes by task 15553 on cpu 0:
 inode_doinit_with_dentry+0x78/0x840 security/selinux/hooks.c:1418
 __inode_security_revalidate security/selinux/hooks.c:295 [inline]
 inode_security security/selinux/hooks.c:320 [inline]
 selinux_file_open+0x101/0x3b0 security/selinux/hooks.c:3968
 security_file_open+0x3a/0x70 security/security.c:2961
 do_dentry_open+0x221/0xbe0 fs/open.c:942
 vfs_open fs/open.c:1089 [inline]
 dentry_open+0x7e/0xc0 fs/open.c:1103
 pidfs_alloc_file+0xe6/0x150 fs/pidfs.c:273
 __pidfd_prepare kernel/fork.c:2029 [inline]
 pidfd_prepare+0x5f/0xe0 kernel/fork.c:2077
 pidfd_create kernel/pid.c:608 [inline]
 __do_sys_pidfd_open kernel/pid.c:644 [inline]
 __se_sys_pidfd_open+0x123/0x240 kernel/pid.c:629
 __x64_sys_pidfd_open+0x31/0x40 kernel/pid.c:629
 x64_sys_call+0x28a7/0x2d30 arch/x86/include/generated/asm/syscalls_64.h:435
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xcd/0x1d0 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

value changed: 0x00 -> 0x01

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 15553 Comm: syz-executor.3 Not tainted 6.9.0-rc4-syzkaller-00266-g977b1ef51866 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/04/21 16:51 upstream 977b1ef51866 af24b050 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in inode_doinit_with_dentry / inode_doinit_with_dentry
* Struck through repros no longer work on HEAD.