From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.linuxfoundation.org ([140.211.169.12]:58730 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753218AbdLNV3F (ORCPT ); Thu, 14 Dec 2017 16:29:05 -0500 Date: Thu, 14 Dec 2017 22:29:07 +0100 From: Greg KH To: Christoffer Dall Cc: stable@vger.kernel.org, Marc Zyngier Subject: Re: [PATCH v3.18 backport] arm: KVM: Fix VTTBR_BADDR_MASK BUG_ON off-by-one Message-ID: <20171214212907.GC27981@kroah.com> References: <20171214210424.25740-2-christoffer.dall@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20171214210424.25740-2-christoffer.dall@linaro.org> Sender: stable-owner@vger.kernel.org List-ID: On Thu, Dec 14, 2017 at 10:04:22PM +0100, Christoffer Dall wrote: > From: Marc Zyngier > > Commit 5553b142be11e794ebc0805950b2e8313f93d718 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: f7ed45be3ba52 ("KVM: ARM: World-switch implementation") > Cc: # 3.9 > Reported-by: Kristina Martsenko > Reviewed-by: Christoffer Dall > Signed-off-by: Marc Zyngier > Signed-off-by: Christoffer Dall > --- > arch/arm/include/asm/kvm_arm.h | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) Now applied, thanks. greg k-h