summaryrefslogtreecommitdiffstats
path: root/crypto/crct10dif_common.c
diff options
context:
space:
mode:
authorCatalin Marinas <catalin.marinas@arm.com>2015-09-11 19:22:01 +0200
committerWill Deacon <will.deacon@arm.com>2015-09-14 13:28:41 +0200
commit62d96c71d248834af2891293dc23cc344ae2ec36 (patch)
tree0cab58cfe00d23e610a671f13ed7dc3e2ee66903 /crypto/crct10dif_common.c
parentarm64: Fix the pte_hw_dirty() check when AF/DBM is enabled (diff)
downloadlinux-62d96c71d248834af2891293dc23cc344ae2ec36.tar.xz
linux-62d96c71d248834af2891293dc23cc344ae2ec36.zip
arm64: Fix pte_modify() to preserve the hardware dirty information
The pte_modify() function with hardware AF/DBM enabled must transfer the hardware dirty information to the software PTE_DIRTY bit. However, it was setting this bit in newprot and the mask does not cover such bit. This patch sets PTE_DIRTY on the original pte which will be preserved in the returned value. Fixes: 2f4b829c625e ("arm64: Add support for hardware updates of the access and dirty pte bits") Cc: Julien Grall <julien.grall@citrix.com> Tested-by: Julien Grall <julien.grall@citrix.com> Tested-by: Will Deacon <will.deacon@arm.com> Signed-off-by: Catalin Marinas <catalin.marinas@arm.com> Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'crypto/crct10dif_common.c')
0 files changed, 0 insertions, 0 deletions