Re: [PATCH] powerpc/64s: Mask SRR0 before checking against the masked NIP

2022-01-19 Thread Michael Ellerman
On Mon, 17 Jan 2022 23:44:03 +1000, Nicholas Piggin wrote: > Commit 314f6c23dd8d ("powerpc/64s: Mask NIP before checking against > SRR0") masked off the low 2 bits of the NIP value in the interrupt > stack frame in case they are non-zero and mis-compare against a SRR0 > register value of a CPU

[PATCH] powerpc/64s: Mask SRR0 before checking against the masked NIP

2022-01-17 Thread Nicholas Piggin
Commit 314f6c23dd8d ("powerpc/64s: Mask NIP before checking against SRR0") masked off the low 2 bits of the NIP value in the interrupt stack frame in case they are non-zero and mis-compare against a SRR0 register value of a CPU which always reads back 0 from the 2 low bits which are reserved.