aboutsummaryrefslogtreecommitdiff
path: root/tests/tcg/aarch64/pauth-5.c
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2023-06-29 10:08:35 +0200
committerRichard Henderson <richard.henderson@linaro.org>2023-07-01 08:33:08 +0200
commit605a8b5491a119a2a6efbf61e5a38f9374645990 (patch)
tree4333862526cf2bee112cf3b226b2cbb013acfc9a /tests/tcg/aarch64/pauth-5.c
parent6ab1790226bcf55e6b3cdff1d0253c90d63de69f (diff)
downloadqemu-605a8b5491a119a2a6efbf61e5a38f9374645990.zip
qemu-605a8b5491a119a2a6efbf61e5a38f9374645990.tar.gz
qemu-605a8b5491a119a2a6efbf61e5a38f9374645990.tar.bz2
linux-user: Avoid mmap of the last byte of the reserved_va
There is an overflow problem in mmap_find_vma_reserved: when reserved_va == UINT32_MAX, end may overflow to 0. Rather than a larger rewrite at this time, simply avoid the final byte of the VA, which avoids searching the final page, which avoids the overflow. Cc: qemu-stable@nongnu.org Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1741 Fixes: 95059f9c ("include/exec: Change reserved_va semantics to last byte") Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Tested-by: Michael Tokarev <mjt@tls.msk.ru> Reviewed-by: Michael Tokarev <mjt@tls.msk.ru> Message-Id: <20230629080835.71371-1-richard.henderson@linaro.org>
Diffstat (limited to 'tests/tcg/aarch64/pauth-5.c')
0 files changed, 0 insertions, 0 deletions