diff options
| author | Richard Henderson <richard.henderson@linaro.org> | 2024-08-16 07:13:31 +1000 |
|---|---|---|
| committer | Richard Henderson <richard.henderson@linaro.org> | 2024-08-21 09:09:46 +1000 |
| commit | a4ad4a9d98f7fbde806f07da21e69f39e134cdf1 (patch) | |
| tree | d28dfd83000db689018196705e511f3971be3511 /hw/display/vhost-user-gpu.c | |
| parent | 9eb5bfbe3394b92fb37cc6f155ceea4d6c9e401c (diff) | |
| download | focaccia-qemu-a4ad4a9d98f7fbde806f07da21e69f39e134cdf1.tar.gz focaccia-qemu-a4ad4a9d98f7fbde806f07da21e69f39e134cdf1.zip | |
linux-user: Handle short reads in mmap_h_gt_g
In particular, if an image has a large bss, we can hit
EOF before reading all host_len bytes of the mapping.
Create a helper, mmap_pread to handle the job for both
the larger block in mmap_h_gt_g itself, as well as the
smaller block in mmap_frag.
Cc: qemu-stable@nongnu.org
Fixes: eb5027ac618 ("linux-user: Split out mmap_h_gt_g")
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2504
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20240820050848.165253-2-richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Diffstat (limited to 'hw/display/vhost-user-gpu.c')
0 files changed, 0 insertions, 0 deletions