Re: [RFC PATCH] elfload: Fix alignment when unmapping excess reservation

2025-02-15 Thread Richard Henderson
On 2/15/25 11:06, Richard Henderson wrote: On 2/13/25 06:35, Fabiano Rosas wrote: When complying with the alignment requested in the ELF and unmapping the excess reservation, having align_end not aligned to the guest page causes the unmap to be rejected by the alignment check at target_munmap an

Re: [RFC PATCH] elfload: Fix alignment when unmapping excess reservation

2025-02-15 Thread Richard Henderson
On 2/13/25 06:35, Fabiano Rosas wrote: When complying with the alignment requested in the ELF and unmapping the excess reservation, having align_end not aligned to the guest page causes the unmap to be rejected by the alignment check at target_munmap and later brk adjustments hit an EEXIST. Fix

[RFC PATCH] elfload: Fix alignment when unmapping excess reservation

2025-02-13 Thread Fabiano Rosas
When complying with the alignment requested in the ELF and unmapping the excess reservation, having align_end not aligned to the guest page causes the unmap to be rejected by the alignment check at target_munmap and later brk adjustments hit an EEXIST. Fix by aligning the start of region to be unm