On Sat, 11 Oct 2025 at 21:21, Matthew Lugg <[email protected]> wrote: > > If an address range given to `mremap` is invalid (exceeds addressing > bounds on the guest), we were previously returning `ENOMEM`, which is > not correct. The manpage and the Linux kernel implementation both agree > that if `old_addr`/`old_size` refer to an invalid address, `EFAULT` is > returned, and if `new_addr`/`new_size` refer to an invalid address, > `EINVAL` is returned. > > Signed-off-by: Matthew Lugg <[email protected]> > ---
Reviewed-by: Peter Maydell <[email protected]> thanks -- PMM
