Re: [PATCH] linux-user: Ensure mmap_min_addr is non-zero

2020-07-27 Thread Laurent Vivier
Le 24/07/2020 à 23:23, Richard Henderson a écrit : > When the chroot does not have /proc mounted, we can read neither > /proc/sys/vm/mmap_min_addr nor /proc/sys/maps. > > The enforcement of mmap_min_addr in the host kernel is done by > the security module, and so does not apply to processes owned

Re: [PATCH] linux-user: Ensure mmap_min_addr is non-zero

2020-07-27 Thread Richard Henderson
On 7/27/20 4:19 AM, Laurent Vivier wrote: > Le 24/07/2020 à 23:23, Richard Henderson a écrit : >> When the chroot does not have /proc mounted, we can read neither >> /proc/sys/vm/mmap_min_addr nor /proc/sys/maps. >> >> The enforcement of mmap_min_addr in the host kernel is done by >> the security m

Re: [PATCH] linux-user: Ensure mmap_min_addr is non-zero

2020-07-27 Thread Laurent Vivier
Le 24/07/2020 à 23:23, Richard Henderson a écrit : > When the chroot does not have /proc mounted, we can read neither > /proc/sys/vm/mmap_min_addr nor /proc/sys/maps. > > The enforcement of mmap_min_addr in the host kernel is done by > the security module, and so does not apply to processes owned

Re: [PATCH] linux-user: Ensure mmap_min_addr is non-zero

2020-07-27 Thread John Paul Adrian Glaubitz
Hi! On 7/24/20 11:23 PM, Richard Henderson wrote: > When the chroot does not have /proc mounted, we can read neither > /proc/sys/vm/mmap_min_addr nor /proc/sys/maps. > > The enforcement of mmap_min_addr in the host kernel is done by > the security module, and so does not apply to processes owned

[PATCH] linux-user: Ensure mmap_min_addr is non-zero

2020-07-24 Thread Richard Henderson
When the chroot does not have /proc mounted, we can read neither /proc/sys/vm/mmap_min_addr nor /proc/sys/maps. The enforcement of mmap_min_addr in the host kernel is done by the security module, and so does not apply to processes owned by root. Which leads pgd_find_hole_fallback to succeed in pr