Re: powerpc: Fix DAR reporting when alignment handler faults

2017-09-01 Thread Michael Ellerman
On Thu, 2017-08-24 at 10:49:57 UTC, Michael Ellerman wrote: > Anton noticed that if we fault part way through emulating an unaligned > instruction, we don't update the DAR to reflect that. > > The DAR value is eventually reported back to userspace as the address > in the SEGV signal, and if usersp

[PATCH] powerpc: Fix DAR reporting when alignment handler faults

2017-08-24 Thread Michael Ellerman
Anton noticed that if we fault part way through emulating an unaligned instruction, we don't update the DAR to reflect that. The DAR value is eventually reported back to userspace as the address in the SEGV signal, and if userspace is using that value to demand fault then it can be confused by us