WSL2-Linux-Kernel/arch
Khalid Aziz 9035cf9a97 mm: Add address parameter to arch_validate_prot()
A protection flag may not be valid across entire address space and
hence arch_validate_prot() might need the address a protection bit is
being set on to ensure it is a valid protection flag. For example, sparc
processors support memory corruption detection (as part of ADI feature)
flag on memory addresses mapped on to physical RAM but not on PFN mapped
pages or addresses mapped on to devices. This patch adds address to the
parameters being passed to arch_validate_prot() so protection bits can
be validated in the relevant context.

Signed-off-by: Khalid Aziz <khalid.aziz@oracle.com>
Cc: Khalid Aziz <khalid@gonehiking.org>
Reviewed-by: Anthony Yznaga <anthony.yznaga@oracle.com>
Acked-by: Michael Ellerman <mpe@ellerman.id.au> (powerpc)
Acked-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2018-03-18 07:38:47 -07:00
..
alpha
arc
arm
arm64 arm64 fixes: 2018-03-09 16:49:30 -08:00
blackfin
c6x
cris
frv
h8300
hexagon
ia64
m32r
m68k
metag
microblaze microblaze: switch to NO_BOOTMEM 2018-03-16 12:51:27 +01:00
mips
mn10300
nios2
openrisc
parisc
powerpc mm: Add address parameter to arch_validate_prot() 2018-03-18 07:38:47 -07:00
riscv
s390 KVM fixes for v4.16-rc5 2018-03-09 16:59:19 -08:00
score
sh
sparc sparc64: Add auxiliary vectors to report platform ADI properties 2018-03-18 07:38:46 -07:00
tile
um
unicore32
x86 signals, sparc: Add signal codes for ADI violations 2018-03-18 07:38:45 -07:00
xtensa
.gitignore
Kconfig