linux-user: Check sigsetsize argument to syscalls
commitc815701e8169d25ae6f84183f4b593b9335a9798
authorPeter Maydell <peter.maydell@linaro.org>
Thu, 30 Jun 2016 13:23:24 +0000 (30 14:23 +0100)
committerRiku Voipio <riku.voipio@linaro.org>
Tue, 19 Jul 2016 12:20:59 +0000 (19 15:20 +0300)
tree1a728de7df4a36072e9703cf3fb69301965074a0
parentc5dff280b8131b14a96b99c13c6a98d497c23271
linux-user: Check sigsetsize argument to syscalls

Many syscalls which take a sigset_t argument also take an argument
giving the size of the sigset_t.  The kernel insists that this
matches its idea of the type size and fails EINVAL if it is not.
Implement this logic in QEMU.  (This mostly just means some LTP test
cases which check error cases now pass.)

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
linux-user/syscall.c