syzbot


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

Status: auto-obsoleted due to no activity on 2023/11/09 09:30
Subsystems: ext4
[Documentation on labels]
First crash: 212d, last: 212d
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 ext4 1 910d 910d 0/26 auto-closed as invalid on 2021/12/11 01:02
upstream KCSAN: data-race in selinux_inode_permission / setattr_copy (3) ext4 1 260d 260d 0/26 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 0xffff8881065b7c78 of 2 bytes by task 11377 on cpu 0:
 setattr_copy+0x25c/0x270 fs/attr.c:321
 ext4_setattr+0x3d4/0xeb0 fs/ext4/inode.c:5479
 notify_change+0x866/0x8e0 fs/attr.c:499
 chmod_common+0x13c/0x270 fs/open.c:643
 do_fchmodat fs/open.c:691 [inline]
 __do_sys_chmod fs/open.c:715 [inline]
 __se_sys_chmod fs/open.c:713 [inline]
 __x64_sys_chmod+0x95/0x110 fs/open.c:713
 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 0xffff8881065b7c78 of 2 bytes by task 11379 on cpu 1:
 selinux_inode_permission+0xc2/0x410 security/selinux/hooks.c:3109
 security_inode_permission+0x6a/0xa0 security/security.c:2111
 inode_permission+0xbf/0x300 fs/namei.c:536
 may_lookup fs/namei.c:1719 [inline]
 link_path_walk+0x159/0x7e0 fs/namei.c:2270
 path_lookupat+0x72/0x2a0 fs/namei.c:2481
 filename_lookup+0x126/0x300 fs/namei.c:2511
 user_path_at_empty+0x42/0x110 fs/namei.c:2910
 user_path_at include/linux/namei.h:57 [inline]
 do_fchmodat fs/open.c:689 [inline]
 __do_sys_chmod fs/open.c:715 [inline]
 __se_sys_chmod fs/open.c:713 [inline]
 __x64_sys_chmod+0x6b/0x110 fs/open.c:713
 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: 0x41c0 -> 0x4004

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 11379 Comm: syz-executor.2 Not tainted 6.6.0-rc4-syzkaller-00031-gba7d997a2a29 #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/10/05 09:23 upstream ba7d997a2a29 b7d7ff54 .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.