summary refs log tree commit diff stats
path: root/hw/misc/imx6_src.c
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2016-08-02 18:41:27 +0100
committerRiku Voipio <riku.voipio@linaro.org>2016-09-21 22:14:27 +0300
commit5ea2fc84da1bffce749c9d0848f5336def2818bb (patch)
treef91d5d85ca51ac4028e82f6e2272cfb13f44e024 /hw/misc/imx6_src.c
parent7cfbd386b92e93fbfae033b9ac89a20d1fe72573 (diff)
downloadfocaccia-qemu-5ea2fc84da1bffce749c9d0848f5336def2818bb.tar.gz
focaccia-qemu-5ea2fc84da1bffce749c9d0848f5336def2818bb.zip
linux-user: Sanity check clone flags
We currently make no checks on the flags passed to the clone syscall,
which means we will not fail clone attempts which ask for features
that we can't implement. Add sanity checking of the flags to clone
(which we were already doing in the "this is a fork" path, but not
for the "this is a new thread" path), tidy up the checking in
the fork path to match it, and check that the fork case isn't trying
to specify a custom termination signal.

This is helpful in causing some LTP test cases to fail cleanly
rather than behaving bizarrely when we let the clone succeed
but didn't provide the semantics requested by the flags.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
Diffstat (limited to 'hw/misc/imx6_src.c')
0 files changed, 0 insertions, 0 deletions