This happens for me also, with qemu version 2.12.0 (Debian
1:2.12+dfsg-3).
An initial patch was proposed here: https://lists.gnu.org/archive/html
/qemu-devel/2017-09/msg08073.html
Discussion pointed out some problems, and the patch languished and was
not accepted.
Here is a summary of the change
** Patch added:
"0001-Bring-linux-user-write-2-handling-into-line-with-lin.patch"
https://bugs.launchpad.net/qemu/+bug/1716292/+attachment/5186008/+files/0001-Bring-linux-user-write-2-handling-into-line-with-lin.patch
--
You received this bug notification because you are a member of qemu-
de
uggests not: both linux and linux-user yield -1 for
NULL 0-length reads/writes.
Signed-off-by: Tony Garnock-Jones
---
linux-user/syscall.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index 850b72a0c7..8f46540534 100644
--- a/linux-user/sysc