]> git.proxmox.com Git - mirror_qemu.git/commit
accel/tcg: Pass last not end to page_set_flags
authorRichard Henderson <richard.henderson@linaro.org>
Sun, 5 Mar 2023 22:51:09 +0000 (01:51 +0300)
committerRichard Henderson <richard.henderson@linaro.org>
Tue, 28 Mar 2023 22:23:10 +0000 (15:23 -0700)
commit49840a4a098149067789255bca6894645f411036
tree0b5cd9d9f8ef1770890352e9a58bc1e39aa89c6c
parent2f7828b5729337c61e6c58466d0d78af079db42d
accel/tcg: Pass last not end to page_set_flags

Pass the address of the last byte to be changed, rather than
the first address past the last byte.  This avoids overflow
when the last page of the address space is involved.

Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1528
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
accel/tcg/user-exec.c
bsd-user/mmap.c
include/exec/cpu-all.h
linux-user/elfload.c
linux-user/mmap.c
linux-user/syscall.c