syzbot


KCSAN: data-race in io_sq_offload_create / prepare_creds

Status: moderation: reported on 2025/08/09 18:53
Subsystems: io-uring
[Documentation on labels]
Reported-by: syzbot+9c18f12c9eacb8eea6d4@syzkaller.appspotmail.com
First crash: 12d, last: 12d

Sample crash report:
==================================================================
BUG: KCSAN: data-race in io_sq_offload_create / prepare_creds

write to 0xffff8881027aab28 of 4 bytes by task 3588 on cpu 1:
 get_cred_many include/linux/cred.h:202 [inline]
 get_cred include/linux/cred.h:218 [inline]
 io_sq_offload_create+0x419/0x850 io_uring/sqpoll.c:449
 io_uring_create+0x42e/0x610 io_uring/io_uring.c:3807
 io_uring_setup io_uring/io_uring.c:3890 [inline]
 __do_sys_io_uring_setup io_uring/io_uring.c:3924 [inline]
 __se_sys_io_uring_setup+0x1f7/0x210 io_uring/io_uring.c:3915
 __x64_sys_io_uring_setup+0x31/0x40 io_uring/io_uring.c:3915
 x64_sys_call+0x2b21/0x2ff0 arch/x86/include/generated/asm/syscalls_64.h:426
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xd2/0x200 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

read to 0xffff8881027aaa80 of 184 bytes by task 3657 on cpu 0:
 prepare_creds+0x6c/0x4c0 kernel/cred.c:219
 install_session_keyring security/keys/process_keys.c:361 [inline]
 lookup_user_key+0x263/0xd10 security/keys/process_keys.c:676
 keyctl_revoke_key security/keys/keyctl.c:385 [inline]
 __do_sys_keyctl security/keys/keyctl.c:1891 [inline]
 __se_sys_keyctl+0x41d/0xb80 security/keys/keyctl.c:1874
 __x64_sys_keyctl+0x67/0x80 security/keys/keyctl.c:1874
 x64_sys_call+0x2f6d/0x2ff0 arch/x86/include/generated/asm/syscalls_64.h:251
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xd2/0x200 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 UID: 0 PID: 3657 Comm: syz.1.38 Not tainted 6.16.0-syzkaller-12245-g2988dfed8a5d #0 PREEMPT(voluntary) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/08/09 18:53 upstream 2988dfed8a5d 32a0e5ed .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in io_sq_offload_create / prepare_creds
* Struck through repros no longer work on HEAD.