powerpc/spufs: Fix hash faults for kernel regions

Michael Ellerman patch-notifications at ellerman.id.au
Thu May 25 23:22:31 AEST 2017


On Wed, 2017-05-24 at 06:49:59 UTC, Jeremy Kerr wrote:
> Change ac29c64089b7 swapped _PAGE_USER for _PAGE_PRIVILEGED, and
> introduced check_pte_access() which denied kernel access to
> non-_PAGE_PRIVILEGED pages.
> 
> However, it didn't add _PAGE_PRIVILEGED to the hash fault handler for
> spufs' kernel accesses, so the DMAs required to establish SPE memory
> no longer work.
> 
> This change adds _PAGE_PRIVILEGED to the hash fault handler for
> kernel accesses.
> 
> Signed-off-by: Jeremy Kerr <jk at ozlabs.org>
> Reported-by: Sombat Tragolgosol <sombat3960 at gmail.com>
> CC: Aneesh Kumar K.V <aneesh.kumar at linux.vnet.ibm.com>
> Reviewed-by: Aneesh Kumar K.V <aneesh.kumar at linux.vnet.ibm.com>

Applied to powerpc fixes, thanks.

https://git.kernel.org/powerpc/c/d75e4919cc0b6fbcbc8d6654ef66d8

cheers


More information about the Linuxppc-dev mailing list