Re: [PATCH v2 1/4] accel/tcg: Invalidate translations when clearing PAGE_READ

2022-08-05 Thread Richard Henderson
On 8/5/22 09:09, Ilya Leoshkevich wrote: After mprotect(addr, PROT_NONE), addr can still be executed if there are cached translations. Drop them. Signed-off-by: Ilya Leoshkevich --- accel/tcg/translate-all.c | 17 - 1 file changed, 12 insertions(+), 5 deletions(-) diff

Re: [PATCH v2 1/4] accel/tcg: Invalidate translations when clearing PAGE_READ

2022-08-05 Thread Peter Maydell
On Fri, 5 Aug 2022 at 18:33, Ilya Leoshkevich wrote: > > After mprotect(addr, PROT_NONE), addr can still be executed if there > are cached translations. Drop them. > > Signed-off-by: Ilya Leoshkevich > --- > accel/tcg/translate-all.c | 17 - > 1 file changed, 12 insertions(+), 5

[PATCH v2 1/4] accel/tcg: Invalidate translations when clearing PAGE_READ

2022-08-05 Thread Ilya Leoshkevich
After mprotect(addr, PROT_NONE), addr can still be executed if there are cached translations. Drop them. Signed-off-by: Ilya Leoshkevich --- accel/tcg/translate-all.c | 17 - 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/accel/tcg/translate-all.c