Re: [PATCH] linux-user: Tolerate CONFIG_LSM_MMAP_MIN_ADDR

2024-10-22 Thread Richard Henderson
On 10/22/24 02:50, Ilya Leoshkevich wrote: --- a/linux-user/elfload.c +++ b/linux-user/elfload.c @@ -2898,7 +2898,7 @@ static uintptr_t pgb_try_itree(const PGBAddrs *ga, uintptr_t base, static uintptr_t pgb_find_itree(const PGBAddrs *ga, IntervalTreeRoot *root,

Re: [PATCH] linux-user: Tolerate CONFIG_LSM_MMAP_MIN_ADDR

2024-10-22 Thread Ilya Leoshkevich
On Mon, 2024-10-21 at 19:34 -0700, Richard Henderson wrote: > On 10/21/24 05:17, Ilya Leoshkevich wrote: > > Running qemu-i386 on a system running with SELinux in enforcing > > mode > > fails with: > > > > qemu-i386: tests/tcg/i386-linux-user/sigreturn-sigmask: Unable > > to find a guest_base

Re: [PATCH] linux-user: Tolerate CONFIG_LSM_MMAP_MIN_ADDR

2024-10-21 Thread Richard Henderson
On 10/21/24 05:17, Ilya Leoshkevich wrote: Running qemu-i386 on a system running with SELinux in enforcing mode fails with: qemu-i386: tests/tcg/i386-linux-user/sigreturn-sigmask: Unable to find a guest_base to satisfy all guest address mapping requirements - The re

[PATCH] linux-user: Tolerate CONFIG_LSM_MMAP_MIN_ADDR

2024-10-21 Thread Ilya Leoshkevich
Running qemu-i386 on a system running with SELinux in enforcing mode fails with: qemu-i386: tests/tcg/i386-linux-user/sigreturn-sigmask: Unable to find a guest_base to satisfy all guest address mapping requirements - The reason is that main() determines mmap_min_addr fr