Re: [PATCH 1/2] linux-user: Fix siginfo_t contents when jumping to non-readable pages

2022-08-05 Thread Peter Maydell
On Fri, 5 Aug 2022 at 11:28, Ilya Leoshkevich wrote: > On Fri, 2022-08-05 at 09:50 +0100, Peter Maydell wrote: > > Which guests do you observe this on ? I think we should indeed > > fix this in the translators. More specifically, I think we should > > get this correct already on Arm, and I would e

Re: [PATCH 1/2] linux-user: Fix siginfo_t contents when jumping to non-readable pages

2022-08-05 Thread Ilya Leoshkevich
On Fri, 2022-08-05 at 09:50 +0100, Peter Maydell wrote: > On Thu, 4 Aug 2022 at 19:50, Ilya Leoshkevich > wrote: > > > > When the first instruction of a translation block is located in a > > non-readable page, qemu-user fills siginfo_t correctly. For the > > other > > instructions the result is a

Re: [PATCH 1/2] linux-user: Fix siginfo_t contents when jumping to non-readable pages

2022-08-05 Thread Peter Maydell
On Thu, 4 Aug 2022 at 19:50, Ilya Leoshkevich wrote: > > When the first instruction of a translation block is located in a > non-readable page, qemu-user fills siginfo_t correctly. For the other > instructions the result is as if it were the first instruction, which > is not correct. > > The reaso

[PATCH 1/2] linux-user: Fix siginfo_t contents when jumping to non-readable pages

2022-08-04 Thread Ilya Leoshkevich
When the first instruction of a translation block is located in a non-readable page, qemu-user fills siginfo_t correctly. For the other instructions the result is as if it were the first instruction, which is not correct. The reason is that the current logic expects translate_insn() hook to stop a