diff options
author | Christophe Leroy <christophe.leroy@csgroup.eu> | 2022-01-31 07:17:57 +0000 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2022-02-03 22:56:44 +1100 |
commit | 4634bf4455fe26f07dabf97c3585c9ccb86353c4 (patch) | |
tree | e1eb453b1256e1c876e6365c4ca0ff5e36037a1a /arch/powerpc/include/asm/nohash/32 | |
parent | 9872cbfb4558bf68219c5a8a65fd5c29b593323d (diff) | |
download | linux-4634bf4455fe26f07dabf97c3585c9ccb86353c4.tar.bz2 |
powerpc/603: Clear C bit when PTE is read only
On book3s/32 MMU, PP bits don't offer kernel RO protection,
kernel pages are always RW.
However, on the 603 a page fault is always generated when the
C bit (change bit = dirty bit) is not set.
Enforce kernel RO protection by clearing C bit in TLB miss
handler when the page doesn't have _PAGE_RW flag.
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/bbb13848ff0100a76ee9ea95118058c30ae95f2c.1643613343.git.christophe.leroy@csgroup.eu
Diffstat (limited to 'arch/powerpc/include/asm/nohash/32')
0 files changed, 0 insertions, 0 deletions