syzbot


KCSAN: data-race in key_task_permission / keyctl_chown_key

Status: auto-obsoleted due to no activity on 2022/11/03 09:37
Subsystems: keyrings lsm
[Documentation on labels]
First crash: 606d, last: 606d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in key_task_permission / keyctl_chown_key (2) keyrings lsm 1 329d 329d 0/26 auto-obsoleted due to no activity on 2023/08/08 03:56
upstream KCSAN: data-race in key_task_permission / keyctl_chown_key (3) keyrings lsm 1 220d 220d 0/26 auto-obsoleted due to no activity on 2023/11/24 13:01
upstream KCSAN: data-race in key_task_permission / keyctl_chown_key (4) keyrings lsm 1 121d 121d 0/26 auto-obsoleted due to no activity on 2024/03/03 01:25

Sample crash report:
==================================================================
BUG: KCSAN: data-race in key_task_permission / keyctl_chown_key

write to 0xffff888141cf1468 of 4 bytes by task 8628 on cpu 0:
 keyctl_chown_key+0x503/0x580 security/keys/keyctl.c:1035
 __do_sys_keyctl security/keys/keyctl.c:1916 [inline]
 __se_sys_keyctl+0x480/0x9e0 security/keys/keyctl.c:1869
 __x64_sys_keyctl+0x63/0x70 security/keys/keyctl.c:1869
 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 0xffff888141cf1468 of 4 bytes by task 8627 on cpu 1:
 key_task_permission+0xb0/0x270 security/keys/permission.c:54
 lookup_user_key+0x83f/0xd90 security/keys/process_keys.c:803
 keyctl_setperm_key security/keys/keyctl.c:1077 [inline]
 __do_sys_keyctl security/keys/keyctl.c:1921 [inline]
 __se_sys_keyctl+0x6c7/0x9e0 security/keys/keyctl.c:1869
 __x64_sys_keyctl+0x63/0x70 security/keys/keyctl.c:1869
 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: 0x00000000 -> 0x0000ee00

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 8627 Comm: syz-executor.5 Not tainted 6.0.0-rc7-syzkaller-00068-g49c13ed0316d-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/09/29 09:30 upstream 49c13ed0316d a41a2080 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in key_task_permission / keyctl_chown_key
* Struck through repros no longer work on HEAD.