Skip to contentSkip to conversation

Patch "ARM: KVM: Fix size check in __coherent_cache_guest_page" has been added to the 3.19-stable tree

PATCH [email protected] 1 participant 1 message May 2, 2015

Subsystems (2)
lore
Share & tools
lore

[email protected]

author maintainer Applied
#0 lore raw

This is a note to let you know that I've just added the patch titled

ARM: KVM: Fix size check in __coherent_cache_guest_page

to the 3.19-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
arm-kvm-fix-size-check-in-__coherent_cache_guest_page.patch
and it can be found in the queue-3.19 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.

Quoted 1 line

From a050dfb21cc22ac0c666d52531040c1bc48184cc Mon Sep 17 00:00:00 2001

From: Jan Kiszka <[email protected]>
Date: Sat, 7 Feb 2015 22:21:20 +0100
Subject: ARM: KVM: Fix size check in __coherent_cache_guest_page

From: Jan Kiszka <[email protected]>

commit a050dfb21cc22ac0c666d52531040c1bc48184cc upstream.

The check is supposed to catch page-unaligned sizes, not the inverse.

---
 arch/arm/include/asm/kvm_mmu.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/include/asm/kvm_mmu.h +1 -1
@@ -186,7 +186,7 @@ static inline void __coherent_cache_gues
 
 	bool need_flush = !vcpu_has_cache_enabled(vcpu) || ipa_uncached;
 
-	VM_BUG_ON(size & PAGE_MASK);
+	VM_BUG_ON(size & ~PAGE_MASK);
 
 	if (!need_flush && !icache_is_pipt())
 		goto vipt_cache;

Patches currently in stable-queue which might be from [email protected] are

queue-3.19/arm-kvm-fix-size-check-in-__coherent_cache_guest_page.patch