linux/arch/arm/include
Marc Zyngier 6ed459712e arm: KVM: Fix VTTBR_BADDR_MASK BUG_ON off-by-one
commit 5553b142be upstream.

VTTBR_BADDR_MASK is used to sanity check the size and alignment of the
VTTBR address. It seems to currently be off by one, thereby only
allowing up to 39-bit addresses (instead of 40-bit) and also
insufficiently checking the alignment. This patch fixes it.

This patch is the 32bit pendent of Kristina's arm64 fix, and
she deserves the actual kudos for pinpointing that one.

Fixes: f7ed45be3b ("KVM: ARM: World-switch implementation")
Reported-by: Kristina Martsenko <kristina.martsenko@arm.com>
Reviewed-by: Christoffer Dall <christoffer.dall@linaro.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2017-12-14 09:28:14 +01:00
..
asm arm: KVM: Fix VTTBR_BADDR_MASK BUG_ON off-by-one 2017-12-14 09:28:14 +01:00
debug ARM: brcmstb: Add earlyprintk support using run-time checks 2016-08-08 11:14:09 -07:00
uapi/asm ARM: wire up new pkey syscalls 2016-10-19 10:18:47 +01:00