]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: Do not mask out PTE_RDONLY in pte_same()
authorCatalin Marinas <catalin.marinas@arm.com>
Wed, 6 Nov 2019 15:41:05 +0000 (15:41 +0000)
committerWill Deacon <will@kernel.org>
Wed, 6 Nov 2019 19:31:56 +0000 (19:31 +0000)
commit05014f98766b03899c3c6f0f99c2f6dcd0429321
treeb135b7602e4c1c99de58cba6f32f20dd5e75ef32
parent3cec29d646cd8ad3f5d8768dbd90922bd3174ae7
arm64: Do not mask out PTE_RDONLY in pte_same()

Following commit 8c5119144bd9 ("arm64: Move PTE_RDONLY bit handling out
of set_pte_at()"), the PTE_RDONLY bit is no longer managed by
set_pte_at() but built into the PAGE_* attribute definitions.
Consequently, pte_same() must include this bit when checking two PTEs
for equality.

Remove the arm64-specific pte_same() function, practically reverting
commit 09275901bcb1 ("arm64: Fix copy-on-write referencing in HugeTLB")

Fixes: 8c5119144bd9 ("arm64: Move PTE_RDONLY bit handling out of set_pte_at()")
Cc: <stable@vger.kernel.org> # 4.14.x-
Cc: Will Deacon <will@kernel.org>
Cc: Steve Capper <steve.capper@arm.com>
Reported-by: John Stultz <john.stultz@linaro.org>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/include/asm/pgtable.h