================================================================== BUG: KCSAN: data-race in init_file / prepare_creds write to 0xffff888104055768 of 4 bytes by task 11651 on cpu 0: get_cred_many include/linux/cred.h:202 [inline] get_cred include/linux/cred.h:218 [inline] init_file+0x2e/0x1d0 fs/file_table.c:158 alloc_empty_file+0x8b/0x200 fs/file_table.c:241 alloc_file fs/file_table.c:354 [inline] alloc_file_pseudo+0xc6/0x160 fs/file_table.c:383 __anon_inode_getfile fs/anon_inodes.c:166 [inline] __anon_inode_getfd fs/anon_inodes.c:291 [inline] anon_inode_getfd+0xc1/0x150 fs/anon_inodes.c:326 bpf_map_new_fd+0x52/0x70 kernel/bpf/syscall.c:1191 map_create+0xd25/0xda0 kernel/bpf/syscall.c:1602 __sys_bpf+0x54e/0x7c0 kernel/bpf/syscall.c:6131 __do_sys_bpf kernel/bpf/syscall.c:6259 [inline] __se_sys_bpf kernel/bpf/syscall.c:6257 [inline] __x64_sys_bpf+0x41/0x50 kernel/bpf/syscall.c:6257 x64_sys_call+0x2aee/0x3000 arch/x86/include/generated/asm/syscalls_64.h:322 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 0xffff8881040556c0 of 184 bytes by task 11652 on cpu 1: prepare_creds+0x6c/0x4c0 kernel/cred.c:219 install_thread_keyring security/keys/process_keys.c:249 [inline] lookup_user_key+0x12a/0xd10 security/keys/process_keys.c:635 __do_sys_add_key security/keys/keyctl.c:126 [inline] __se_sys_add_key+0x268/0x350 security/keys/keyctl.c:74 __x64_sys_add_key+0x67/0x80 security/keys/keyctl.c:74 x64_sys_call+0x28c8/0x3000 arch/x86/include/generated/asm/syscalls_64.h:249 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: 1 UID: 0 PID: 11652 Comm: syz.3.2884 Not tainted syzkaller #0 PREEMPT(voluntary) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/02/2025 ==================================================================