|
From: | Michael Tokarev |
Subject: | Re: [PATCH] linux-user: Avoid mmap of the last byte of the reserved_va |
Date: | Fri, 30 Jun 2023 00:27:27 +0300 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 |
29.06.2023 11:08, Richard Henderson wrote:
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>
So, I pushed this to debian (where we've seen multiple failures), let's see how it goes.. /mjt
[Prev in Thread] | Current Thread | [Next in Thread] |