summaryrefslogtreecommitdiffstats
path: root/linux-user/alpha
diff options
context:
space:
mode:
authorPaul Burton2014-06-22 12:25:37 +0200
committerRiku Voipio2014-06-29 13:19:59 +0200
commit356d771b30071b44fcb19d2f8d911784b9b276be (patch)
tree810bbb258f846ed806f85dca27609c144e2cb139 /linux-user/alpha
parentlinux-user: support SO_PASSSEC setsockopt option (diff)
downloadqemu-356d771b30071b44fcb19d2f8d911784b9b276be.tar.gz
qemu-356d771b30071b44fcb19d2f8d911784b9b276be.tar.xz
qemu-356d771b30071b44fcb19d2f8d911784b9b276be.zip
linux-user: allow NULL arguments to mount
Calls to the mount syscall can legitimately provide NULL as the value for the source of filesystemtype arguments, which QEMU would previously reject & return -EFAULT to the target program. An example of this is remounting an already mounted filesystem with different properties. Instead of rejecting such syscalls with -EFAULT, pass NULL along to the kernel as the target program expects. Additionally this patch fixes a potential memory leak when DEBUG_REMAP is enabled and lock_user_string fails on the target or filesystemtype arguments but a prior argument was non-NULL and already locked. Since the patch already touched most lines of the TARGET_NR_mount case, it fixes the indentation & coding style for good measure. Signed-off-by: Paul Burton <paul@archlinuxmips.org> Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
Diffstat (limited to 'linux-user/alpha')
0 files changed, 0 insertions, 0 deletions