syzbot


KCSAN: data-race in do_fcntl / selinux_file_permission

Status: auto-closed as invalid on 2021/09/08 11:48
Subsystems: fs
[Documentation on labels]
First crash: 996d, last: 996d

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

write to 0xffff8881ca1efe40 of 4 bytes by task 8455 on cpu 0:
 setfl fs/fcntl.c:81 [inline]
 do_fcntl+0xbce/0xc30 fs/fcntl.c:355
 __do_sys_fcntl fs/fcntl.c:471 [inline]
 __se_sys_fcntl+0xc6/0x180 fs/fcntl.c:456
 __x64_sys_fcntl+0x3f/0x50 fs/fcntl.c:456
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3d/0x90 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff8881ca1efe40 of 4 bytes by task 8456 on cpu 1:
 selinux_revalidate_file_permission security/selinux/hooks.c:3684 [inline]
 selinux_file_permission+0x273/0x530 security/selinux/hooks.c:3708
 security_file_permission+0x42/0xa0 security/security.c:1505
 vfs_fallocate+0x228/0x660 fs/open.c:290
 ksys_fallocate fs/open.c:334 [inline]
 __do_sys_fallocate fs/open.c:342 [inline]
 __se_sys_fallocate fs/open.c:340 [inline]
 __x64_sys_fallocate+0x75/0xc0 fs/open.c:340
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3d/0x90 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

value changed: 0x00008002 -> 0x00048802

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 8456 Comm: syz-executor.5 Not tainted 5.14.0-rc4-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/08/04 11:38 upstream d5ad8ec3cfb5 6c236867 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in do_fcntl / selinux_file_permission
* Struck through repros no longer work on HEAD.