================================================================== BUG: KCSAN: data-race in init_file / prepare_creds write to 0xffff888100a81828 of 4 bytes by task 9511 on cpu 1: get_cred_many include/linux/cred.h:222 [inline] get_cred include/linux/cred.h:238 [inline] init_file+0x2d/0x1b0 fs/file_table.c:183 alloc_empty_file+0x85/0x1e0 fs/file_table.c:266 alloc_file fs/file_table.c:396 [inline] alloc_file_pseudo+0x92/0x120 fs/file_table.c:427 __anon_inode_getfile fs/anon_inodes.c:164 [inline] __anon_inode_getfd fs/anon_inodes.c:281 [inline] anon_inode_getfd+0xbf/0x190 fs/anon_inodes.c:305 bpf_map_new_fd+0x52/0x70 kernel/bpf/syscall.c:1199 map_create+0x43c/0xfe0 kernel/bpf/syscall.c:1673 __sys_bpf+0x99a/0xc30 kernel/bpf/syscall.c:6344 __do_sys_bpf kernel/bpf/syscall.c:6486 [inline] __se_sys_bpf kernel/bpf/syscall.c:6483 [inline] __x64_sys_bpf+0x69/0x80 kernel/bpf/syscall.c:6483 x64_sys_call+0xf26/0x2550 arch/x86/include/generated/asm/syscalls_64.h:322 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x112/0x360 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f read to 0xffff888100a81780 of 184 bytes by task 9509 on cpu 0: prepare_creds+0x71/0x550 kernel/cred.c:192 __sys_setuid+0x65/0x300 kernel/sys.c:663 __do_sys_setuid kernel/sys.c:700 [inline] __se_sys_setuid kernel/sys.c:698 [inline] __x64_sys_setuid+0x1e/0x30 kernel/sys.c:698 x64_sys_call+0x1e96/0x2550 arch/x86/include/generated/asm/syscalls_64.h:106 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x112/0x360 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f Reported by Kernel Concurrency Sanitizer on: CPU: 0 UID: 0 PID: 9509 Comm: syz.6.1865 Not tainted syzkaller #0 PREEMPT(lazy) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026 ==================================================================