From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out2-smtp.messagingengine.com ([66.111.4.26]:59805 "EHLO out2-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752279AbcHQMuf (ORCPT ); Wed, 17 Aug 2016 08:50:35 -0400 Date: Wed, 17 Aug 2016 14:50:03 +0200 From: Greg KH To: James Morse Cc: linux-arm-kernel@lists.infradead.org, Will Deacon , Catalin Marinas , stable@vger.kernel.org Subject: Re: [stable:PATCH 1/2] arm64: kernel: Save and restore addr_limit on exception entry Message-ID: <20160817125003.GA8428@kroah.com> References: <1471025480-10394-1-git-send-email-james.morse@arm.com> <20160814155432.GA27321@kroah.com> <57B1F1B7.2090003@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <57B1F1B7.2090003@arm.com> Sender: stable-owner@vger.kernel.org List-ID: On Mon, Aug 15, 2016 at 05:45:43PM +0100, James Morse wrote: > Hi Greg, > > On 14/08/16 16:54, Greg KH wrote: > > On Fri, Aug 12, 2016 at 07:11:19PM +0100, James Morse wrote: > >> commit e19a6ee2460bdd0d0055a6029383422773f9999a upstream. > >> > >> If we take an exception while at EL1, the exception handler inherits > >> the original context's addr_limit value. To be consistent always reset > >> addr_limit and PSTATE.UAO on (re-)entry to EL1. This prevents accidental > >> re-use of the original context's addr_limit. > >> > >> Based on a similar patch for arm from Russell King. > >> > >> Acked-by: Will Deacon > >> Reviewed-by: Mark Rutland > >> Signed-off-by: James Morse > >> Signed-off-by: Will Deacon > >> [ backport to stop perf misusing inherited addr_limit. > >> Removed code interacting with UAO and the irqstack ] > >> Link: https://bugs.chromium.org/p/project-zero/issues/detail?id=822 > >> Signed-off-by: James Morse > >> Cc: #4.1 > > > > Fails to apply to 4.4-stable, can you provide a backport for both of > > these to that tree if you want them there? > > Sorry - that is what I was trying to do! > > v4.4: > http://lists.infradead.org/pipermail/linux-arm-kernel/2016-August/448685.html > > v4.1 (this one): > http://lists.infradead.org/pipermail/linux-arm-kernel/2016-August/448684.html > > > Did I mess something up in the cc/sign-off area? Ah, that was confusing. You sent 2 patches, as a series, and didn't make it obvious what they were to be applied to. Please make it so I can't miss it, otherwise I will :) now queued up. greg k-h