Re: [PATCH] linux-user/mmap.c: check range of mremap result in target address space

2020-11-25 Thread Laurent Vivier
Le 28/10/2020 à 22:38, Tobias Koch a écrit : > If mremap succeeds, an additional check is performed to ensure that the > new address range fits into the target address space. This check was > previously perfomed in host address space, with the upper bound fixed to > abi_ulong. > > This patch repla

[PATCH] linux-user/mmap.c: check range of mremap result in target address space

2020-10-28 Thread Tobias Koch
If mremap succeeds, an additional check is performed to ensure that the new address range fits into the target address space. This check was previously perfomed in host address space, with the upper bound fixed to abi_ulong. This patch replaces the static check with a call to `guest_range_valid`,