linux-user: fix target_to_host_timespec64()
commit00576757893aa63d221418a1d05c08ed10f94c09
authorLaurent Vivier <laurent@vivier.eu>
Thu, 27 Aug 2020 07:04:49 +0000 (27 09:04 +0200)
committerLaurent Vivier <laurent@vivier.eu>
Thu, 27 Aug 2020 10:29:50 +0000 (27 12:29 +0200)
tree35cf2c5503ead73443976fc3eefee9c706b70fd7
parentdcbcf5cf1cddd0fa3e39fbea3b97e6cd0b5078f4
linux-user: fix target_to_host_timespec64()

in 32 bit mode, drop the padding in tv_nsec. If host is 64bit and target
is 32bit, the padding bytes will be copied from the target and as the
kernel checks the value, the syscall exits with EINVAL.

Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Message-Id: <20200827070449.2386007-1-laurent@vivier.eu>
Fixes: c6c8d1026e75 ("linux-user/syscall: Add support for clock_gettime64/clock_settime64")
linux-user/syscall.c