syzbot


KCSAN: data-race in __se_sys_keyctl / key_task_permission (2)

Status: auto-obsoleted due to no activity on 2024/03/24 05:39
Subsystems: keyrings lsm
[Documentation on labels]
Reported-by: syzbot+0acea935ab787b2a47b9@syzkaller.appspotmail.com
First crash: 230d, last: 230d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __se_sys_keyctl / key_task_permission (3) keyrings lsm 1 93d 93d 0/28 auto-obsoleted due to no activity on 2024/08/07 23:14
upstream KCSAN: data-race in __se_sys_keyctl / key_task_permission keyrings lsm 1 915d 915d 0/28 auto-closed as invalid on 2022/05/08 17:58

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

write to 0xffff888141243270 of 4 bytes by task 29775 on cpu 0:
 keyctl_setperm_key security/keys/keyctl.c:1097 [inline]
 __do_sys_keyctl security/keys/keyctl.c:1925 [inline]
 __se_sys_keyctl+0xab3/0xba0 security/keys/keyctl.c:1873
 __x64_sys_keyctl+0x67/0x80 security/keys/keyctl.c:1873
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xcd/0x1d0 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x63/0x6b

read to 0xffff888141243270 of 4 bytes by task 29757 on cpu 1:
 key_task_permission+0x188/0x2b0 security/keys/permission.c:61
 lookup_user_key+0x9e9/0xde0 security/keys/process_keys.c:803
 keyctl_chown_key+0x112/0x5b0 security/keys/keyctl.c:970
 __do_sys_keyctl security/keys/keyctl.c:1920 [inline]
 __se_sys_keyctl+0x112/0xba0 security/keys/keyctl.c:1873
 __x64_sys_keyctl+0x67/0x80 security/keys/keyctl.c:1873
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xcd/0x1d0 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x63/0x6b

value changed: 0x3f010000 -> 0x00000200

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 29757 Comm: syz-executor.4 Not tainted 6.8.0-rc4-syzkaller-00388-gced590523156 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/02/18 05:38 upstream ced590523156 578f7538 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __se_sys_keyctl / key_task_permission
* Struck through repros no longer work on HEAD.