syzbot


KCSAN: data-race in selinux_inode_permission / setattr_copy

Status: auto-closed as invalid on 2021/12/11 01:02
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 392d, last: 392d
similar bugs (1):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in selinux_inode_permission / setattr_copy (2) 1 85d 85d 0/24 auto-obsoleted due to no activity on 2022/10/13 08:49

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

write to 0xffff888104992b38 of 2 bytes by task 24150 on cpu 0:
 setattr_copy+0x1af/0x1c0 fs/attr.c:247
 ext4_setattr+0x5ea/0xf20 fs/ext4/inode.c:5472
 notify_change+0x8a3/0xac0 fs/attr.c:410
 chmod_common+0x13c/0x270 fs/open.c:581
 do_fchmodat fs/open.c:620 [inline]
 __do_sys_chmod fs/open.c:638 [inline]
 __se_sys_chmod fs/open.c:636 [inline]
 __x64_sys_chmod+0x9b/0x120 fs/open.c:636
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xa0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff888104992b38 of 2 bytes by task 24151 on cpu 1:
 selinux_inode_permission+0xb4/0x3f0 security/selinux/hooks.c:3184
 security_inode_permission+0x72/0xc0 security/security.c:1314
 inode_permission+0x93/0x280 fs/namei.c:532
 may_open+0x1a7/0x2f0 fs/namei.c:3051
 do_open fs/namei.c:3424 [inline]
 path_openat+0x1735/0x1eb0 fs/namei.c:3559
 do_filp_open+0x105/0x220 fs/namei.c:3586
 do_sys_openat2+0xb5/0x2b0 fs/open.c:1200
 do_sys_open fs/open.c:1216 [inline]
 __do_sys_open fs/open.c:1224 [inline]
 __se_sys_open fs/open.c:1220 [inline]
 __x64_sys_open+0xe2/0x110 fs/open.c:1220
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xa0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

value changed: 0x4400 -> 0x44ef

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 24151 Comm: syz-executor.3 Tainted: G        W         5.15.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (1):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2021/11/06 00:58 upstream fe91c4725aee 4c1be0be .config log report info KCSAN: data-race in selinux_inode_permission / setattr_copy
* Struck through repros no longer work on HEAD.