[PATCH] powerpc/powernv/ioda: Skip unallocated resources when mapping to PE

Michael Ellerman patch-notifications at ellerman.id.au
Wed Feb 15 23:40:47 AEDT 2023


On Fri, 20 Jan 2023 10:32:15 +0100, Frederic Barrat wrote:
> pnv_ioda_setup_pe_res() calls opal to map a resource with a PE. However,
> the code assumes the resource is allocated and it uses the resource
> address to find out the segment(s) which need to be mapped to the
> PE. In the unlikely case where the resource hasn't been allocated, the
> computation for the segment number is garbage, which can lead to
> invalid memory access and potentially a kernel crash, such as:
> 
> [...]

Applied to powerpc/next.

[1/1] powerpc/powernv/ioda: Skip unallocated resources when mapping to PE
      https://git.kernel.org/powerpc/c/e64e71056f323a1e178dccf04d4c0f032d84436c

cheers


More information about the Linuxppc-dev mailing list