================================================================== BUG: KCSAN: data-race in __alloc_file / __alloc_file write to 0xffff888074c40518 of 4 bytes by task 11823 on cpu 0: get_cred include/linux/cred.h:253 [inline] __alloc_file+0x74/0x210 fs/file_table.c:105 alloc_empty_file+0x8f/0x180 fs/file_table.c:151 alloc_file+0x4e/0x2b0 fs/file_table.c:193 alloc_file_pseudo+0x11c/0x1b0 fs/file_table.c:232 anon_inode_getfile fs/anon_inodes.c:91 [inline] anon_inode_getfile+0x103/0x1d0 fs/anon_inodes.c:74 __do_sys_perf_event_open+0xd32/0x1ac0 kernel/events/core.c:11100 __se_sys_perf_event_open kernel/events/core.c:10867 [inline] __x64_sys_perf_event_open+0x70/0x90 kernel/events/core.c:10867 do_syscall_64+0xcc/0x370 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x44/0xa9 write to 0xffff888074c40518 of 4 bytes by task 11873 on cpu 1: get_cred include/linux/cred.h:253 [inline] __alloc_file+0x74/0x210 fs/file_table.c:105 alloc_empty_file+0x8f/0x180 fs/file_table.c:151 alloc_file+0x4e/0x2b0 fs/file_table.c:193 alloc_file_pseudo+0x11c/0x1b0 fs/file_table.c:232 create_pipe_files+0x22a/0x380 fs/pipe.c:776 __do_pipe_flags+0x51/0x180 fs/pipe.c:807 do_pipe2+0x3f/0x150 fs/pipe.c:855 __do_sys_pipe fs/pipe.c:878 [inline] __se_sys_pipe fs/pipe.c:876 [inline] __x64_sys_pipe+0x2a/0x40 fs/pipe.c:876 do_syscall_64+0xcc/0x370 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x44/0xa9 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 11873 Comm: syz-executor.4 Not tainted 5.4.0-rc3+ #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================