================================================================== BUG: KCSAN: data-race in init_file / prepare_creds write to 0xffff8881009c6228 of 4 bytes by task 7057 on cpu 0: get_cred_many include/linux/cred.h:219 [inline] get_cred include/linux/cred.h:235 [inline] init_file+0x2e/0x1c0 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:283 [inline] anon_inode_getfd+0xbf/0x190 fs/anon_inodes.c:307 bpf_map_new_fd+0x52/0x70 kernel/bpf/syscall.c:1191 map_create+0xd2c/0xda0 kernel/bpf/syscall.c:1605 __sys_bpf+0x54e/0x7c0 kernel/bpf/syscall.c:6146 __do_sys_bpf kernel/bpf/syscall.c:6274 [inline] __se_sys_bpf kernel/bpf/syscall.c:6272 [inline] __x64_sys_bpf+0x41/0x50 kernel/bpf/syscall.c:6272 x64_sys_call+0x28e1/0x3000 arch/x86/include/generated/asm/syscalls_64.h:322 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xd8/0x2a0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f read to 0xffff8881009c6180 of 184 bytes by task 7054 on cpu 1: prepare_creds+0x6e/0x550 kernel/cred.c:192 copy_creds+0x8f/0x340 kernel/cred.c:286 copy_process+0x638/0x1ef0 kernel/fork.c:2043 kernel_clone+0x16c/0x5c0 kernel/fork.c:2608 __do_sys_clone kernel/fork.c:2749 [inline] __se_sys_clone kernel/fork.c:2733 [inline] __x64_sys_clone+0xe6/0x120 kernel/fork.c:2733 x64_sys_call+0x12d0/0x3000 arch/x86/include/generated/asm/syscalls_64.h:57 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xd8/0x2a0 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: 7054 Comm: syz.4.11281 Tainted: G W syzkaller #0 PREEMPT(voluntary) Tainted: [W]=WARN Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/2025 ==================================================================