syzbot


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

Status: auto-obsoleted due to no activity on 2022/10/13 08:49
Subsystems: ext4
[Documentation on labels]
First crash: 595d, last: 595d
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 (4) ext4 1 203d 203d 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 901d 901d 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 251d 251d 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 0xffff8881023eaac8 of 2 bytes by task 5673 on cpu 0:
 setattr_copy+0x375/0x390 fs/attr.c:258
 ext4_setattr+0x502/0xf30 fs/ext4/inode.c:5531
 notify_change+0x9f8/0xb20 fs/attr.c:420
 chmod_common+0x13c/0x270 fs/open.c:606
 do_fchmodat fs/open.c:645 [inline]
 __do_sys_fchmodat fs/open.c:658 [inline]
 __se_sys_fchmodat fs/open.c:655 [inline]
 __x64_sys_fchmodat+0x9d/0x110 fs/open.c:655
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

read to 0xffff8881023eaac8 of 2 bytes by task 4001 on cpu 1:
 selinux_inode_permission+0xb4/0x400 security/selinux/hooks.c:3081
 security_inode_permission+0x72/0xc0 security/security.c:1324
 inode_permission+0xbb/0x300 fs/namei.c:533
 may_lookup fs/namei.c:1711 [inline]
 link_path_walk+0x16d/0x8a0 fs/namei.c:2262
 path_openat+0x19c/0x1b00 fs/namei.c:3687
 do_filp_open+0x105/0x220 fs/namei.c:3718
 do_sys_openat2+0xb5/0x2a0 fs/open.c:1311
 do_sys_open fs/open.c:1327 [inline]
 __do_sys_openat fs/open.c:1343 [inline]
 __se_sys_openat fs/open.c:1338 [inline]
 __x64_sys_openat+0xef/0x110 fs/open.c:1338
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

value changed: 0x41ed -> 0x4000

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 4001 Comm: udevd Not tainted 6.0.0-rc4-syzkaller-00062-g0066f1b0e275-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/26/2022
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/09/08 08:42 upstream 0066f1b0e275 435aeef7 .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.