Skip to content

Commit 83b086c

Browse files
chleroyScott Wood
authored and
Scott Wood
committed
powerpc/8xx: mark _PAGE_SHARED all types of kernel pages
All kernel pages have to be marked as shared in order to not perform CASID verification. Signed-off-by: Christophe Leroy <[email protected]> Signed-off-by: Scott Wood <[email protected]>
1 parent eeba1f7 commit 83b086c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

arch/powerpc/include/asm/pte-8xx.h

+6-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,12 @@
6262

6363
/* We need to add _PAGE_SHARED to kernel pages */
6464
#define _PAGE_KERNEL_RO (_PAGE_SHARED | _PAGE_RO | _PAGE_KNLRO)
65-
#define _PAGE_KERNEL_ROX (_PAGE_EXEC | _PAGE_RO | _PAGE_KNLRO)
65+
#define _PAGE_KERNEL_ROX (_PAGE_SHARED | _PAGE_RO | _PAGE_KNLRO | \
66+
_PAGE_EXEC)
67+
#define _PAGE_KERNEL_RW (_PAGE_SHARED | _PAGE_DIRTY | _PAGE_RW | \
68+
_PAGE_HWWRITE)
69+
#define _PAGE_KERNEL_RWX (_PAGE_SHARED | _PAGE_DIRTY | _PAGE_RW | \
70+
_PAGE_HWWRITE | _PAGE_EXEC)
6671

6772
#endif /* __KERNEL__ */
6873
#endif /* _ASM_POWERPC_PTE_8xx_H */

0 commit comments

Comments
 (0)