HomeFreeBSD

x86 __vdso_gettc: add O_CLOEXEC flag to open

Description

x86 __vdso_gettc: add O_CLOEXEC flag to open

of the /dev/hpet and /dev/hv_tsc devices, to not leak internal libc
filedescriptors on exec.

Reviewed by: markj
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D31344

Details

Provenance
kibAuthored on Jul 29 2021, 1:26 AM
Reviewer
markj
Differential Revision
D31344: x86 __vdso_gettc: add O_CLOEXEC flag to open
Parents
R10:4b136ef259ce: amd64: Set GS.base before calling init_secondary() on APs
Branches
Unknown
Tags
Unknown