summaryrefslogtreecommitdiffstats
path: root/linux-user/i386
diff options
context:
space:
mode:
authorPeter Maydell2016-08-02 19:41:27 +0200
committerRiku Voipio2016-09-21 21:14:27 +0200
commit5ea2fc84da1bffce749c9d0848f5336def2818bb (patch)
treef91d5d85ca51ac4028e82f6e2272cfb13f44e024 /linux-user/i386
parentlinux-user: Remove unnecessary nptl_flags variable from do_fork() (diff)
downloadqemu-5ea2fc84da1bffce749c9d0848f5336def2818bb.tar.gz
qemu-5ea2fc84da1bffce749c9d0848f5336def2818bb.tar.xz
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 'linux-user/i386')
0 files changed, 0 insertions, 0 deletions