diff options
author | Richard Palethorpe <[email protected]> | 2021-10-08 11:00:53 +0100 |
---|---|---|
committer | David S. Miller <[email protected]> | 2021-10-08 16:21:53 +0100 |
commit | 4c1e34c0dbffb17accdfe16ac97ab432df9024ff (patch) | |
tree | 50daee13053ceb1ae7fd31f9580edd7c6b5a9966 /tools/perf/scripts/python/check-perf-trace.py | |
parent | 685c3f2fba298458865ade3bb310c5ddddef87f0 (diff) |
vsock: Enable y2038 safe timeval for timeout
Reuse the timeval compat code from core/sock to handle 32-bit and
64-bit timeval structures. Also introduce a new socket option define
to allow using y2038 safe timeval under 32-bit.
The existing behavior of sock_set_timeout and vsock's timeout setter
differ when the time value is out of bounds. vsocks current behavior
is retained at the expense of not being able to share the full
implementation.
This allows the LTP test vsock01 to pass under 32-bit compat mode.
Fixes: fe0c72f3db11 ("socket: move compat timeout handling into sock.c")
Signed-off-by: Richard Palethorpe <[email protected]>
Cc: Richard Palethorpe <[email protected]>
Reviewed-by: Arnd Bergmann <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions