powerpc: Fail ioremap() instead of silently ignoring flags when PAGE_USER is set
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Mon, 25 Sep 2023 18:31:36 +0000 (20:31 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 19 Oct 2023 06:12:46 +0000 (17:12 +1100)
commitc7263f156395d1f2a2142375a75b7b040686a07a
tree40bdaa55b2bd059df777f60e37b6884d7f6ea653
parentd3c0dfcfc95796701e82719722fd997ec5256013
powerpc: Fail ioremap() instead of silently ignoring flags when PAGE_USER is set

Calling ioremap() with _PAGE_USER (or _PAGE_PRIVILEDGE unset)
is wrong. Loudly fail the call to ioremap() instead of blindly
clearing the flags.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/b6dd5485ad00d2aafd2bb9b7c2c4eac3ebf2cdaf.1695659959.git.christophe.leroy@csgroup.eu
arch/powerpc/mm/ioremap.c