Re: [PATCH for-8.0 v2 10/12] linux-user: Pass last not end to probe_guest_base

2023-03-28 Thread Philippe Mathieu-Daudé
On 28/3/23 19:47, Richard Henderson wrote: On 3/28/23 06:51, Philippe Mathieu-Daudé wrote: Hi Richard, On 27/3/23 23:18, Richard Henderson wrote: Pass the address of the last byte of the image, rather than the first address past the last byte.  This avoids overflow when the last page of the ad

Re: [PATCH for-8.0 v2 10/12] linux-user: Pass last not end to probe_guest_base

2023-03-28 Thread Richard Henderson
On 3/28/23 06:51, Philippe Mathieu-Daudé wrote: Hi Richard, On 27/3/23 23:18, Richard Henderson wrote: Pass the address of the last byte of the image, rather than the first address past the last byte.  This avoids overflow when the last page of the address space is involved. Signed-off-by: Ric

Re: [PATCH for-8.0 v2 10/12] linux-user: Pass last not end to probe_guest_base

2023-03-28 Thread Philippe Mathieu-Daudé
Hi Richard, On 27/3/23 23:18, Richard Henderson wrote: Pass the address of the last byte of the image, rather than the first address past the last byte. This avoids overflow when the last page of the address space is involved. Signed-off-by: Richard Henderson --- linux-user/elfload.c | 24

[PATCH for-8.0 v2 10/12] linux-user: Pass last not end to probe_guest_base

2023-03-27 Thread Richard Henderson
Pass the address of the last byte of the image, rather than the first address past the last byte. This avoids overflow when the last page of the address space is involved. Signed-off-by: Richard Henderson --- linux-user/elfload.c | 24 linux-user/flatload.c | 2 +- 2