Re: [Qemu-devel] [PATCH] tcg: Fix mmap lock assert on translation failure

2019-06-17 Thread Alex Bennée
Richard Henderson writes: > On 6/17/19 9:18 AM, Alex Bennée wrote: >> >> Richard Henderson writes: >> >>> Check page flags before letting an invalid pc cause a SIGSEGV. >>> >>> Prepare for eventially validating PROT_EXEC. The current wrinkle being >>> that we have a problem with our implement

Re: [Qemu-devel] [PATCH] tcg: Fix mmap lock assert on translation failure

2019-06-17 Thread Alex Bennée
Richard Henderson writes: > Check page flags before letting an invalid pc cause a SIGSEGV. > > Prepare for eventially validating PROT_EXEC. The current wrinkle being > that we have a problem with our implementation of signals. We should > be using a vdso like the kernel, but we instead put th

Re: [Qemu-devel] [PATCH] tcg: Fix mmap lock assert on translation failure

2019-06-17 Thread Richard Henderson
On 6/17/19 9:18 AM, Alex Bennée wrote: > > Richard Henderson writes: > >> Check page flags before letting an invalid pc cause a SIGSEGV. >> >> Prepare for eventially validating PROT_EXEC. The current wrinkle being >> that we have a problem with our implementation of signals. We should >> be us

Re: [Qemu-devel] [PATCH] tcg: Fix mmap lock assert on translation failure

2019-06-17 Thread Christophe Lyon
On Sun, 16 Jun 2019 at 23:05, Richard Henderson wrote: > > Check page flags before letting an invalid pc cause a SIGSEGV. > > Prepare for eventially validating PROT_EXEC. The current wrinkle being > that we have a problem with our implementation of signals. We should > be using a vdso like the k

[Qemu-devel] [PATCH] tcg: Fix mmap lock assert on translation failure

2019-06-16 Thread Richard Henderson
Check page flags before letting an invalid pc cause a SIGSEGV. Prepare for eventially validating PROT_EXEC. The current wrinkle being that we have a problem with our implementation of signals. We should be using a vdso like the kernel, but we instead put the trampoline on the stack. In the mean