Re: [PATCH v2] linux-user: Adjust pgd_find_hole_fallback result with guest_loaddr

2021-03-09 Thread Laurent Vivier
Le 06/03/2021 à 10:33, Ivan A. Melnikov a écrit : > While pgd_find_hole_fallback returns the beginning of the > hole found, pgb_find_hole returns guest_base, which > is somewhat different as the binary qemu-user is loading > usually have non-zero load address. > > Failing to take that into account

[PATCH v2] linux-user: Adjust pgd_find_hole_fallback result with guest_loaddr

2021-03-06 Thread Ivan A. Melnikov
While pgd_find_hole_fallback returns the beginning of the hole found, pgb_find_hole returns guest_base, which is somewhat different as the binary qemu-user is loading usually have non-zero load address. Failing to take that into account leads to random crashes if the hole is "just big enough", but