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

2023-09-21 Thread Philippe Mathieu-Daudé
On 9/9/23 20:45, 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. F

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

2023-09-21 Thread Michael Tokarev
09.09.2023 21:45, 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 v2] linux-user: Fixes for zero_bss

2023-09-09 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