summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLaura Abbott <labbott@redhat.com>2018-05-23 11:43:46 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-01-23 08:19:34 +0100
commit246eee7b5748cca95ddadadc2d350427ff7bb70a (patch)
tree84b146d7783ff2914998442e298b636e745146a7 /include
parent4f45a0a170355546cc47ba7bbf3973fe187d05cf (diff)
arm64: Make sure permission updates happen for pmd/pud
commit 82034c23fcbc2389c73d97737f61fa2dd6526413 upstream. Commit 15122ee2c515 ("arm64: Enforce BBM for huge IO/VMAP mappings") disallowed block mappings for ioremap since that code does not honor break-before-make. The same APIs are also used for permission updating though and the extra checks prevent the permission updates from happening, even though this should be permitted. This results in read-only permissions not being fully applied. Visibly, this can occasionaly be seen as a failure on the built in rodata test when the test data ends up in a section or as an odd RW gap on the page table dump. Fix this by using pgattr_change_is_safe instead of p*d_present for determining if the change is permitted. Reviewed-by: Kees Cook <keescook@chromium.org> Tested-by: Peter Robinson <pbrobinson@gmail.com> Reported-by: Peter Robinson <pbrobinson@gmail.com> Fixes: 15122ee2c515 ("arm64: Enforce BBM for huge IO/VMAP mappings") Signed-off-by: Laura Abbott <labbott@redhat.com> Signed-off-by: Will Deacon <will.deacon@arm.com> Signed-off-by: Ben Hutchings <ben.hutchings@codethink.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions