From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out2-smtp.messagingengine.com ([66.111.4.26]:55619 "EHLO out2-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752060AbcJZImw (ORCPT ); Wed, 26 Oct 2016 04:42:52 -0400 Date: Wed, 26 Oct 2016 10:42:59 +0200 From: Greg KH To: Vladimir Murzin Cc: stable@vger.kernel.org, christoffer.dall@linaro.org, james.morse@arm.com, marc.zyngier@arm.com Subject: Re: [PATCH] arm64: KVM: VHE: reset PSTATE.PAN on entry to EL2 Message-ID: <20161026084259.GF13578@kroah.com> References: <1476456552-31605-1-git-send-email-vladimir.murzin@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1476456552-31605-1-git-send-email-vladimir.murzin@arm.com> Sender: stable-owner@vger.kernel.org List-ID: On Fri, Oct 14, 2016 at 03:49:12PM +0100, Vladimir Murzin wrote: > commit cb96408da4e11698674abd04aeac941c1bed2038 upstream. > > SCTLR_EL2.SPAN bit controls what happens with the PSTATE.PAN bit on an > exception. However, this bit has no effect on the PSTATE.PAN when > HCR_EL2.E2H or HCR_EL2.TGE is unset. Thus when VHE is used and > exception taken from a guest PSTATE.PAN bit left unchanged and we > continue with a value guest has set. > > To address that always reset PSTATE.PAN on entry from EL1. > > Fixes: 1f364c8c48a0 ("arm64: VHE: Add support for running Linux in EL2 mode") > > [ rebased for v4.7+ ] Thanks for the rebase! greg k-h