================================================================== BUG: KCSAN: data-race in init_file / prepare_creds write to 0xffff8881026685e8 of 4 bytes by task 4895 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_getfile+0xa0/0x120 fs/anon_inodes.c:204 bpf_link_prime+0xfc/0x1d0 kernel/bpf/syscall.c:3433 bpf_raw_tp_link_attach+0x2ff/0x400 kernel/bpf/syscall.c:4244 bpf_raw_tracepoint_open+0x164/0x2c0 kernel/bpf/syscall.c:4281 __sys_bpf+0x6ae/0x7c0 kernel/bpf/syscall.c:6191 __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 0xffff888102668540 of 184 bytes by task 4898 on cpu 1: prepare_creds+0x6c/0x4c0 kernel/cred.c:219 __sys_setfsuid+0x90/0x1f0 kernel/sys.c:918 __do_sys_setfsuid kernel/sys.c:942 [inline] __se_sys_setfsuid kernel/sys.c:940 [inline] __x64_sys_setfsuid+0x1e/0x30 kernel/sys.c:940 x64_sys_call+0x776/0x3000 arch/x86/include/generated/asm/syscalls_64.h:123 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: 4898 Comm: syz.5.382 Not tainted syzkaller #0 PREEMPT(voluntary) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/02/2025 ==================================================================