linux-stable/arch/arm64
Will Deacon 3dcaf25993 KVM: arm64: Ensure target address is granule-aligned for range TLBI
commit 4c36a15673 upstream.

When zapping a table entry in stage2_try_break_pte(), we issue range
TLB invalidation for the region that was mapped by the table. However,
we neglect to align the base address down to the granule size and so
if we ended up reaching the table entry via a misaligned address then
we will accidentally skip invalidation for some prefix of the affected
address range.

Align 'ctx->addr' down to the granule size when performing TLB
invalidation for an unmapped table in stage2_try_break_pte().

Cc: Raghavendra Rao Ananta <rananta@google.com>
Cc: Gavin Shan <gshan@redhat.com>
Cc: Shaoqin Huang <shahuang@redhat.com>
Cc: Quentin Perret <qperret@google.com>
Fixes: defc8cc7ab ("KVM: arm64: Invalidate the table entries upon a range")
Signed-off-by: Will Deacon <will@kernel.org>
Reviewed-by: Shaoqin Huang <shahuang@redhat.com>
Reviewed-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20240327124853.11206-5-will@kernel.org
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-04-10 16:35:51 +02:00
..
boot arm64: dts: qcom: sc7180-trogdor: mark bluetooth address as broken 2024-04-10 16:35:48 +02:00
configs arm64: defconfig: enable syscon-poweroff driver 2023-09-28 09:17:05 +02:00
crypto crypto: arm64/neonbs - fix out-of-bounds access on short input 2024-03-06 14:48:40 +00:00
hyperv
include arm64/sve: Lower the maximum allocation for the SVE ptrace regset 2024-03-26 18:19:11 -04:00
kernel arm64/sve: Lower the maximum allocation for the SVE ptrace regset 2024-03-26 18:19:11 -04:00
kvm KVM: arm64: Ensure target address is granule-aligned for range TLBI 2024-04-10 16:35:51 +02:00
lib arm64 fixes for -rc1 2023-09-08 12:48:37 -07:00
mm arm64: mm: Fix "rodata=on" when CONFIG_RODATA_FULL_DEFAULT_ENABLED=y 2023-12-03 07:33:05 +01:00
net arm64: bpf: fix 32bit unconditional bswap 2024-04-10 16:35:40 +02:00
tools arm64: Rename ARM64_WORKAROUND_2966298 2024-01-31 16:18:55 -08:00
xen
Kbuild
Kconfig arm64: ftrace: Don't forbid CALL_OPS+CC_OPTIMIZE_FOR_SIZE with Clang 2024-03-26 18:19:53 -04:00
Kconfig.debug
Kconfig.platforms
Makefile arm64: add dependency between vmlinuz.efi and Image 2023-12-20 17:02:00 +01:00