]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/mce: ensure machine check handler always tests RI
authorNicholas Piggin <npiggin@gmail.com>
Sat, 30 Jan 2021 13:08:34 +0000 (23:08 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 8 Feb 2021 13:02:11 +0000 (00:02 +1100)
commitc538938fa2cfdc806c6304888e3876729e6939e0
treea4589b5c7cad558051d4bdc7550e6cc3446d2149
parent209e9d500e25eada096b2c09a34093bc458166f3
powerpc/mce: ensure machine check handler always tests RI

A machine check that is handled must still check MSR[RI] for
recoverability of the interrupted context. Without this patch
it's possible for a handled machine check to return to a
context where it has clobbered live registers.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210130130852.2952424-25-npiggin@gmail.com
arch/powerpc/kernel/traps.c