[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PULL v2 05/13] accel/tcg: Relax va restrictions on 64-bit guests
From: |
Richard Henderson |
Subject: |
Re: [PULL v2 05/13] accel/tcg: Relax va restrictions on 64-bit guests |
Date: |
Fri, 5 Jun 2020 10:38:13 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 |
On 6/5/20 7:11 AM, Alex Bennée wrote:
> @@ -467,7 +467,7 @@ abi_long target_mmap(abi_ulong start, abi_ulong len, int
> prot,
> * It can fail only on 64-bit host with 32-bit target.
> * On any other target/host host mmap() handles this error correctly.
> */
> - if (!guest_range_valid(start, len)) {
> + if (end < start || !guest_range_valid(start, len)) {
> errno = ENOMEM;
> goto fail;
> }
Interesting. I was adjusting guest_range_valid tagged pointers yesterday, and
thought that it looked buggy.
r~