diff options
| author | Peter Maydell | 2016-07-15 15:57:28 +0200 |
|---|---|---|
| committer | Riku Voipio | 2016-09-21 13:23:59 +0200 |
| commit | 26a6fc96e0ca7522b855c2164bc6098240c286f6 (patch) | |
| tree | 6d0795d33759c8080838d9f4e7622c3d0e82d1e0 /linux-user/linuxload.c | |
| parent | linux-user: Fix errno for sendrecvmsg with large iovec length (diff) | |
| download | qemu-26a6fc96e0ca7522b855c2164bc6098240c286f6.tar.gz qemu-26a6fc96e0ca7522b855c2164bc6098240c286f6.tar.xz qemu-26a6fc96e0ca7522b855c2164bc6098240c286f6.zip | |
linux-user: Allow bad msg_name for recvfrom on connected socket
The POSIX standard mandates that for a connected socket recvfrom()
must ignore the msg_name and msg_namelen fields. This is awkward
for QEMU because we will attempt to copy them from guest address
space. Handle this by not immediately returning a TARGET_EFAULT
if the copy failed, but instead passing a known-bad address
to the host kernel, which can then return EFAULT or ignore the
value appropriately.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
Diffstat (limited to 'linux-user/linuxload.c')
0 files changed, 0 insertions, 0 deletions
