syzbot


KCSAN: data-race in selinux_inode_permission / setattr_copy

Status: auto-closed as invalid on 2021/12/11 01:02
Subsystems: ext4
[Documentation on labels]
First crash: 965d, last: 965d
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in selinux_inode_permission / setattr_copy (2) ext4 1 659d 659d 0/27 auto-obsoleted due to no activity on 2022/10/13 08:49
upstream KCSAN: data-race in selinux_inode_permission / setattr_copy (4) ext4 1 267d 267d 0/27 auto-obsoleted due to no activity on 2023/11/09 09:30
upstream KCSAN: data-race in selinux_inode_permission / setattr_copy (5) ext4 1 28d 28d 0/27 moderation: reported on 2024/05/31 03:06
upstream KCSAN: data-race in selinux_inode_permission / setattr_copy (3) ext4 1 315d 315d 0/27 auto-obsoleted due to no activity on 2023/09/22 07:25

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):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/11/06 00:58 upstream fe91c4725aee 4c1be0be .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in selinux_inode_permission / setattr_copy
* Struck through repros no longer work on HEAD.