From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from foss.arm.com ([217.140.101.70]:41891 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752801AbcHOQp7 (ORCPT ); Mon, 15 Aug 2016 12:45:59 -0400 Message-ID: <57B1F1B7.2090003@arm.com> Date: Mon, 15 Aug 2016 17:45:43 +0100 From: James Morse MIME-Version: 1.0 To: Greg KH 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 References: <1471025480-10394-1-git-send-email-james.morse@arm.com> <20160814155432.GA27321@kroah.com> In-Reply-To: <20160814155432.GA27321@kroah.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: stable-owner@vger.kernel.org List-ID: 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? Thanks, James