powerpc: Fix check for copy/paste instructions in alignment handler

Michael Ellerman patch-notifications at ellerman.id.au
Wed Nov 1 16:17:43 AEDT 2017


On Wed, 2017-10-25 at 07:16:53 UTC, Paul Mackerras wrote:
> Commit 07d2a628bc00 ("powerpc/64s: Avoid cpabort in context switch
> when possible", 2017-06-09) changed the definition of PPC_INST_COPY
> and in so doing inadvertently broke the check for copy/paste
> instructions in the alignment fault handler.  The check currently
> matches no instructions.
> 
> This fixes it by ANDing both sides of the comparison with the mask.
> 
> Fixes: 07d2a628bc00 ("powerpc/64s: Avoid cpabort in context switch
> when possible")
> Reported-by: Markus Trippelsdorf <markus at trippelsdorf.de>
> Signed-off-by: Paul Mackerras <paulus at ozlabs.org>

Applied to powerpc fixes, thanks.

https://git.kernel.org/powerpc/c/158f19698b594eb8a1bdf7d7937617

cheers


More information about the Linuxppc-dev mailing list