[PULL 14/18] linux-user: fix target_to_host_timespec64()

2020-08-28 Thread Laurent Vivier
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 Message-Id: <20200827070449.2386007-1-laur...@vivier.eu> Fixes: c6c8

[PULL 14/18] linux-user: fix target_to_host_timespec64()

2020-08-27 Thread Laurent Vivier
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 Message-Id: <20200827070449.2386007-1-laur...@vivier.eu> Fixes: c6c8