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@ozlabs.org>
Reported-by: Sombat Tragolgosol <redacted>
CC: Aneesh Kumar K.V <redacted>
Reviewed-by: Aneesh Kumar K.V <redacted>
Applied to powerpc fixes, thanks.
https://git.kernel.org/powerpc/c/d75e4919cc0b6fbcbc8d6654ef66d8
cheers