HomeFreeBSD

linux(4): Prevent time_t overflows on i386.

Description

linux(4): Prevent time_t overflows on i386.

As native i386 time_t is still 32-bit, check that the user-provided 64-bit
tv_sec value fits to the kernel time_t, return EOVERFLOW if not.

MFC after: 2 weeks

Details

Provenance
dchaginAuthored on May 8 2022, 12:39 PM
Parents
rG1579b320f1a4: linux(4): Zero out high order bits of nanoseconds in the compat mode.
Branches
Unknown
Tags
Unknown