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

(cherry picked from commit 3dc2a06752b593acd1a76e784b169f3d60e81d00)

Details

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