syzbot


KCSAN: data-race in inode_doinit_with_dentry / selinux_file_permission

Status: auto-obsoleted due to no activity on 2023/11/03 23:21
Subsystems: selinux
[Documentation on labels]
First crash: 700d, last: 700d

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

write to 0xffff888137f31dc2 of 1 bytes by task 14547 on cpu 1:
 inode_doinit_with_dentry+0x29c/0x840 security/selinux/hooks.c:1441
 __inode_security_revalidate security/selinux/hooks.c:293 [inline]
 inode_security security/selinux/hooks.c:318 [inline]
 selinux_file_permission+0x17f/0x350 security/selinux/hooks.c:3626
 security_file_permission+0x3f/0x70 security/security.c:2585
 vfs_fallocate+0x210/0x3e0 fs/open.c:303
 madvise_remove mm/madvise.c:1011 [inline]
 madvise_vma_behavior mm/madvise.c:1035 [inline]
 madvise_walk_vmas mm/madvise.c:1270 [inline]
 do_madvise+0x7a9/0x2970 mm/madvise.c:1450
 __do_sys_madvise mm/madvise.c:1463 [inline]
 __se_sys_madvise mm/madvise.c:1461 [inline]
 __x64_sys_madvise+0x60/0x70 mm/madvise.c:1461
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

read to 0xffff888137f31dc2 of 1 bytes by task 14537 on cpu 0:
 __inode_security_revalidate security/selinux/hooks.c:284 [inline]
 inode_security security/selinux/hooks.c:318 [inline]
 selinux_file_permission+0x141/0x350 security/selinux/hooks.c:3626
 security_file_permission+0x3f/0x70 security/security.c:2585
 vfs_fallocate+0x210/0x3e0 fs/open.c:303
 madvise_remove mm/madvise.c:1011 [inline]
 madvise_vma_behavior mm/madvise.c:1035 [inline]
 madvise_walk_vmas mm/madvise.c:1270 [inline]
 do_madvise+0x7a9/0x2970 mm/madvise.c:1450
 __do_sys_madvise mm/madvise.c:1463 [inline]
 __se_sys_madvise mm/madvise.c:1461 [inline]
 __x64_sys_madvise+0x60/0x70 mm/madvise.c:1461
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

value changed: 0x00 -> 0x01

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 14537 Comm: syz-executor.4 Not tainted 6.6.0-rc3-syzkaller-00096-g71e58659bfc0 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/06/2023
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/09/29 23:12 upstream 71e58659bfc0 8e26a358 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in inode_doinit_with_dentry / selinux_file_permission
* Struck through repros no longer work on HEAD.