Re: [PATCH] linux-user: Fixes for zero_bss

2023-08-30 Thread Philippe Mathieu-Daudé
On 30/8/23 22:34, Richard Henderson wrote: The previous change, 2d385be6152, assumed !PAGE_VALID meant that the page would be unmapped by the elf image. However, since we reserved the entire image space via mmap, PAGE_VALID will always be set. Instead, assume PROT_NONE for the same condition.

[PATCH] linux-user: Fixes for zero_bss

2023-08-30 Thread Richard Henderson
The previous change, 2d385be6152, assumed !PAGE_VALID meant that the page would be unmapped by the elf image. However, since we reserved the entire image space via mmap, PAGE_VALID will always be set. Instead, assume PROT_NONE for the same condition. Furthermore, assume bss is only ever present