[PATCH v1] powerpc/64s: Fix scv implicit soft-mask table for relocated kernels

Michael Ellerman patch-notifications at ellerman.id.au
Fri Aug 27 23:25:01 AEST 2021


On Fri, 20 Aug 2021 20:34:31 +1000, Nicholas Piggin wrote:
> The implict soft-mask table addresses get relocated if they use a
> relative symbol like a label. This is right for code that runs relocated
> but not for unrelocated. The scv interrupt vectors run unrelocated, so
> absolute addresses are required for their soft-mask table entry.
> 
> This fixes crashing with relocated kernels, usually an asynchronous
> interrupt hitting in the scv handler, then hitting the trap that checks
> whether r1 is in userspace.
> 
> [...]

Applied to powerpc/fixes.

[1/1] powerpc/64s: Fix scv implicit soft-mask table for relocated kernels
      https://git.kernel.org/powerpc/c/787c70f2f9990b5a197320152d2fc32cd8a6ad1a

cheers


More information about the Linuxppc-dev mailing list