syzbot


KCSAN: data-race in selinux_inode_permission / setattr_copy (3)

Status: auto-obsoleted due to no activity on 2023/09/22 07:25
Subsystems: ext4
[Documentation on labels]
First crash: 260d, last: 260d
Similar bugs (3)
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 604d 604d 0/26 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 212d 212d 0/26 auto-obsoleted due to no activity on 2023/11/09 09:30
upstream KCSAN: data-race in selinux_inode_permission / setattr_copy ext4 1 911d 911d 0/26 auto-closed as invalid on 2021/12/11 01:02

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

write to 0xffff8881005385b8 of 2 bytes by task 7987 on cpu 1:
 setattr_copy+0x22e/0x240 fs/attr.c:321
 ext4_setattr+0x3d4/0xec0 fs/ext4/inode.c:5445
 notify_change+0x8c3/0x930 fs/attr.c:483
 chmod_common+0x13c/0x270 fs/open.c:643
 do_fchmodat fs/open.c:682 [inline]
 __do_sys_chmod fs/open.c:700 [inline]
 __se_sys_chmod fs/open.c:698 [inline]
 __x64_sys_chmod+0x8a/0xf0 fs/open.c:698
 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 0xffff8881005385b8 of 2 bytes by task 28885 on cpu 0:
 selinux_inode_permission+0xc2/0x410 security/selinux/hooks.c:3057
 security_inode_permission+0x6a/0xa0 security/security.c:2072
 inode_permission+0xbf/0x300 fs/namei.c:536
 may_lookup fs/namei.c:1716 [inline]
 link_path_walk+0x159/0x7e0 fs/namei.c:2267
 path_lookupat+0x72/0x2a0 fs/namei.c:2478
 filename_lookup+0x126/0x300 fs/namei.c:2508
 vfs_statx+0xa9/0x300 fs/stat.c:238
 vfs_fstatat fs/stat.c:276 [inline]
 __do_sys_newfstatat fs/stat.c:446 [inline]
 __se_sys_newfstatat+0x8a/0x2a0 fs/stat.c:440
 __x64_sys_newfstatat+0x55/0x60 fs/stat.c:440
 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: 0x41ed -> 0x4002

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 28885 Comm: udevd Tainted: G        W          6.5.0-rc6-syzkaller-00117-g0e8860d2125f #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/08/18 07:14 upstream 0e8860d2125f 74b106b6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in selinux_inode_permission / setattr_copy
* Struck through repros no longer work on HEAD.