================================================================== BUG: KCSAN: data-race in alloc_fd / do_select write to 0xffff88814f074c60 of 8 bytes by task 15886 on cpu 0: instrument_write include/linux/instrumented.h:41 [inline] ___set_bit include/asm-generic/bitops/instrumented-non-atomic.h:28 [inline] __set_open_fd fs/file.c:262 [inline] alloc_fd+0x1d5/0x370 fs/file.c:538 __get_unused_fd_flags fs/file.c:559 [inline] get_unused_fd_flags+0x44/0x50 fs/file.c:564 __do_pipe_flags+0x66/0x190 fs/pipe.c:968 do_pipe2+0x64/0x130 fs/pipe.c:1015 __do_sys_pipe fs/pipe.c:1038 [inline] __se_sys_pipe fs/pipe.c:1036 [inline] __x64_sys_pipe+0x21/0x30 fs/pipe.c:1036 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd read to 0xffff88814f074c60 of 8 bytes by task 15884 on cpu 1: max_select_fd fs/select.c:447 [inline] do_select+0x2a2/0xf90 fs/select.c:490 core_sys_select+0x361/0x520 fs/select.c:681 do_pselect fs/select.c:763 [inline] __do_sys_pselect6 fs/select.c:804 [inline] __se_sys_pselect6+0x213/0x280 fs/select.c:795 __x64_sys_pselect6+0x78/0x90 fs/select.c:795 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd value changed: 0x00000000000000ff -> 0x0000000000000fff Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 15884 Comm: syz-executor.2 Not tainted 6.6.0-rc2-syzkaller-00018-g2cf0f7156238 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/04/2023 ==================================================================