Re: [PATCH v2] linux-user: Undo incomplete mmap

2023-10-04 Thread Akihiko Odaki
On 2023/10/04 5:42, Richard Henderson wrote: On 9/21/23 00:09, Akihiko Odaki wrote: On 2023/09/03 14:39, Akihiko Odaki wrote: When the host page size is greater than the target page size and MAP_FIXED or MAP_FIXED_NOREPLACE is requested, mmap will be done for three parts: start, middle, and end

Re: [PATCH v2] linux-user: Undo incomplete mmap

2023-10-03 Thread Richard Henderson
On 9/21/23 00:09, Akihiko Odaki wrote: On 2023/09/03 14:39, Akihiko Odaki wrote: When the host page size is greater than the target page size and MAP_FIXED or MAP_FIXED_NOREPLACE is requested, mmap will be done for three parts: start, middle, and end. If a later part of mmap fail, mmap done in t

Re: [PATCH v2] linux-user: Undo incomplete mmap

2023-09-21 Thread Akihiko Odaki
On 2023/09/03 14:39, Akihiko Odaki wrote: When the host page size is greater than the target page size and MAP_FIXED or MAP_FIXED_NOREPLACE is requested, mmap will be done for three parts: start, middle, and end. If a later part of mmap fail, mmap done in the earlier parts must be reverted. Fixe

[PATCH v2] linux-user: Undo incomplete mmap

2023-09-02 Thread Akihiko Odaki
When the host page size is greater than the target page size and MAP_FIXED or MAP_FIXED_NOREPLACE is requested, mmap will be done for three parts: start, middle, and end. If a later part of mmap fail, mmap done in the earlier parts must be reverted. Fixes: 54936004fd ("mmap emulation") Signed-off-