Files
qemu/linux-user
Peter Maydell e7768429c8 linux-user: make pwrite64/pread64(fd, NULL, 0, offset) return 0
Linux returns success if pwrite64() or pread64() are called with a
zero length NULL buffer, but QEMU was returning -TARGET_EFAULT.

This is the same bug that we fixed in commit 58cfa6c2e6
for the write syscall, and long before that in 38d840e679
for the read syscall.

Fixes: https://bugs.launchpad.net/qemu/+bug/1810433

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20190108184900.9654-1-peter.maydell@linaro.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
(cherry picked from commit 2bd3f8998e)
[LY: BSC#1121600]
Signed-off-by: Liang Yan <lyan@suse.com>
2021-03-16 20:23:03 -06:00
..
2016-09-22 07:24:21 +03:00
2016-09-22 07:24:21 +03:00
2016-09-22 07:24:21 +03:00
2021-03-16 20:23:01 -06:00
2021-03-16 20:23:01 -06:00
2021-03-16 20:23:01 -06:00
2016-01-29 15:07:22 +00:00
2016-01-29 15:07:22 +00:00
2021-03-16 20:23:01 -06:00
2021-03-16 20:23:02 -06:00
2017-02-14 17:18:03 +01:00
2021-03-16 20:23:01 -06:00
2021-03-16 20:23:01 -06:00
2021-03-16 20:23:01 -06:00
2016-01-29 15:07:22 +00:00
2016-01-29 15:07:22 +00:00