]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/603: Always fault when _PAGE_ACCESSED is not set
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Sat, 10 Oct 2020 15:14:30 +0000 (15:14 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 5 Nov 2020 12:34:07 +0000 (23:34 +1100)
commit67376f2bfe5c060ce38927d3293de4d9540fbbd8
tree6a96577e173b5500934664a609a3c8eeb48fb953
parent7e9cf9c2ba885ca7b3791d1c6e6c30be69f1ee2b
powerpc/603: Always fault when _PAGE_ACCESSED is not set

The kernel expects pte_young() to work regardless of CONFIG_SWAP.

Make sure a minor fault is taken to set _PAGE_ACCESSED when it
is not already set, regardless of the selection of CONFIG_SWAP.

Fixes: 4cceb161aa5b ("powerpc/603: don't handle PAGE_ACCESSED in TLB miss handlers.")
Cc: stable@vger.kernel.org
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/a44367744de54e2315b2f1a8cbbd7f88488072e0.1602342806.git.christophe.leroy@csgroup.eu
arch/powerpc/kernel/head_book3s_32.S