]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit30b1d0c2607fc6271defab9a5dbedeec3d2341fc
tree496114130fa973cc3fa7952b493a9420121b385f
parent89b44b6ca22fbfc550237bd8a6a5b672e637bf30
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