summaryrefslogtreecommitdiff
path: root/drivers/i2c
diff options
context:
space:
mode:
authorRobin Murphy <robin.murphy@arm.com>2020-02-28 17:18:55 +0300
committerJoerg Roedel <jroedel@suse.de>2020-03-02 19:17:26 +0300
commit08090744f2dbba6b10d38fb17443c81f66798ca0 (patch)
treed3f2b6b5c0d7a1cd36202037961608a9cb6069ec /drivers/i2c
parent77a1bce84bba01f3f143d77127b72e872b573795 (diff)
downloadlinux-08090744f2dbba6b10d38fb17443c81f66798ca0.tar.xz
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 'drivers/i2c')
0 files changed, 0 insertions, 0 deletions