]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/64s/kuap: Restore AMR in fast_interrupt_return
authorNicholas Piggin <npiggin@gmail.com>
Wed, 29 Apr 2020 06:56:53 +0000 (16:56 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 7 May 2020 01:00:41 +0000 (11:00 +1000)
commitad42cf5faeec3e82bba0bcdc407ffa4f4b641b91
treec8a0eb0e95f2e30949fdf3684967bd355b7e16ee
parent356071235efd3e6cba700406a1fdfde10d4d41af
powerpc/64s/kuap: Restore AMR in fast_interrupt_return

Interrupts that use fast_interrupt_return actually do lock AMR, but
they have been ones which tend to come from userspace (or kernel bugs)
in radix mode. With kuap on hash, segment interrupts are taken in
kernel often, which quickly breaks due to the missing restore.

Fixes: 63609b968273 ("powerpc/64s: Implement KUAP for Radix MMU")
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200429065654.1677541-6-npiggin@gmail.com
arch/powerpc/kernel/entry_64.S