OSDN Git Service

powerpc/pseries/ras: Fix FWNMI_VALID off by one
authorNicholas Piggin <npiggin@gmail.com>
Fri, 8 May 2020 04:33:58 +0000 (14:33 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 18 May 2020 11:58:45 +0000 (21:58 +1000)
commitdeb70f7a35a22dffa55b2c3aac71bc6fb0f486ce
tree496114130fa973cc3fa7952b493a9420121b385f
parent7368b38b21bfa39df637701a480262c15ab1a49e
powerpc/pseries/ras: Fix FWNMI_VALID off by one

This was discovered developing qemu fwnmi sreset support. This
off-by-one bug means the last 16 bytes of the rtas area can not
be used for a 16 byte save area.

It's not a serious bug, and QEMU implementation has to retain a
workaround for old kernels, but it's good to tighten it.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Acked-by: Mahesh Salgaonkar <mahesh@linux.ibm.com>
Link: https://lore.kernel.org/r/20200508043408.886394-7-npiggin@gmail.com
arch/powerpc/platforms/pseries/ras.c