syzbot


KCSAN: data-race in assoc_array_apply_edit / search_nested_keyrings (6)

Status: auto-obsoleted due to no activity on 2022/10/19 05:19
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 137d, last: 137d
similar bugs (5):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in assoc_array_apply_edit / search_nested_keyrings (5) 3 225d 235d 0/24 auto-closed as invalid on 2022/07/23 15:16
upstream KCSAN: data-race in assoc_array_apply_edit / search_nested_keyrings (2) 3 384d 414d 0/24 auto-closed as invalid on 2022/02/14 05:39
upstream KCSAN: data-race in assoc_array_apply_edit / search_nested_keyrings 1 635d 635d 0/24 auto-closed as invalid on 2021/06/08 03:51
upstream KCSAN: data-race in assoc_array_apply_edit / search_nested_keyrings (3) 1 319d 319d 0/24 auto-closed as invalid on 2022/04/21 02:15
upstream KCSAN: data-race in assoc_array_apply_edit / search_nested_keyrings (4) 1 276d 275d 0/24 auto-closed as invalid on 2022/06/03 03:04

Sample crash report:
==================================================================
BUG: KCSAN: data-race in assoc_array_apply_edit / search_nested_keyrings

write to 0xffff88811c7d4850 of 8 bytes by task 14590 on cpu 1:
 assoc_array_apply_edit+0x3c/0x650 lib/assoc_array.c:1356
 __key_link+0x8a/0xc0 security/keys/keyring.c:1372
 __key_instantiate_and_link+0x15b/0x290 security/keys/key.c:459
 key_create_or_update+0x64f/0x6e0 security/keys/key.c:941
 __do_sys_add_key security/keys/keyctl.c:134 [inline]
 __se_sys_add_key+0x280/0x310 security/keys/keyctl.c:74
 __x64_sys_add_key+0x63/0x70 security/keys/keyctl.c:74
 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 0xffff88811c7d4850 of 8 bytes by task 14591 on cpu 0:
 search_nested_keyrings+0x374/0xa50 security/keys/keyring.c:751
 keyring_search_rcu+0xf4/0x180 security/keys/keyring.c:922
 search_cred_keyrings_rcu+0x193/0x240 security/keys/process_keys.c:501
 search_process_keyrings_rcu+0x1a/0x190 security/keys/process_keys.c:544
 request_key_and_link+0x15b/0xc10 security/keys/request_key.c:602
 __do_sys_request_key security/keys/keyctl.c:222 [inline]
 __se_sys_request_key+0x1d6/0x290 security/keys/keyctl.c:167
 __x64_sys_request_key+0x51/0x60 security/keys/keyctl.c:167
 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: 0xffff88811c356a02 -> 0xffff88812565e202

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 14591 Comm: syz-executor.4 Not tainted 6.0.0-rc5-syzkaller-00017-gd1221cea11fc-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/26/2022
==================================================================

Crashes (1):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Title
ci2-upstream-kcsan-gce 2022/09/14 05:10 upstream d1221cea11fc b884348d .config console log report info [disk image] [vmlinux] KCSAN: data-race in assoc_array_apply_edit / search_nested_keyrings
* Struck through repros no longer work on HEAD.