================================================================== BUG: KCSAN: data-race in init_file / prepare_creds write to 0xffff8881047fcb28 of 4 bytes by task 4719 on cpu 1: 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 0xffff8881047fca80 of 184 bytes by task 4720 on cpu 0: prepare_creds+0x6c/0x4c0 kernel/cred.c:219 __sys_setresuid+0x464/0x6d0 kernel/sys.c:749 __do_sys_setresuid kernel/sys.c:785 [inline] __se_sys_setresuid kernel/sys.c:783 [inline] __x64_sys_setresuid+0x3f/0x50 kernel/sys.c:783 x64_sys_call+0x2490/0x3000 arch/x86/include/generated/asm/syscalls_64.h:118 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: 4720 Comm: syz.2.388 Not tainted syzkaller #0 PREEMPT(voluntary) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/02/2025 ==================================================================