diff options
author | Robin Murphy <robin.murphy@arm.com> | 2020-02-28 14:18:55 +0000 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2020-03-02 17:17:26 +0100 |
commit | 08090744f2dbba6b10d38fb17443c81f66798ca0 (patch) | |
tree | d3f2b6b5c0d7a1cd36202037961608a9cb6069ec /include/video/w100fb.h | |
parent | 77a1bce84bba01f3f143d77127b72e872b573795 (diff) |
iommu/io-pgtable-arm: Fix IOVA validation for 32-bit
Since we ony support the TTB1 quirk for AArch64 contexts, and
consequently only for 64-bit builds, the sign-extension aspect of the
"are all bits above IAS consistent?" check should implicitly only apply
to 64-bit IOVAs. Change the type of the cast to ensure that 32-bit longs
don't inadvertently get sign-extended, and thus considered invalid, if
they happen to be above 2GB in the TTB0 region.
Reported-by: Stephan Gerhold <stephan@gerhold.net>
Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Acked-by: Acked-by: Will Deacon <will@kernel.org>
Fixes: db6903010aa5 ("iommu/io-pgtable-arm: Prepare for TTBR1 usage")
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'include/video/w100fb.h')
0 files changed, 0 insertions, 0 deletions