Return-Path: Received: from out4-smtp.messagingengine.com ([66.111.4.28]:58459 "EHLO out4-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750899AbeBDLaR (ORCPT ); Sun, 4 Feb 2018 06:30:17 -0500 Date: Sun, 4 Feb 2018 11:58:45 +0100 From: Greg KH To: Michael Ellerman Cc: stable@vger.kernel.org, linuxppc-dev@ozlabs.org Subject: Re: [PATCH v4.4 backport 10/16] powerpc/64s: Convert slb_miss_common to use RFI_TO_USER/KERNEL Message-ID: <20180204105845.GG7519@kroah.com> References: <20180204050010.13669-1-mpe@ellerman.id.au> <20180204050010.13669-11-mpe@ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180204050010.13669-11-mpe@ellerman.id.au> Sender: stable-owner@vger.kernel.org List-ID: On Sun, Feb 04, 2018 at 04:00:04PM +1100, Michael Ellerman wrote: > From: Nicholas Piggin > > commit c7305645eb0c1621351cfc104038831ae87c0053 upstream. > > In the SLB miss handler we may be returning to user or kernel. We need > to add a check early on and save the result in the cr4 register, and > then we bifurcate the return path based on that. > > Signed-off-by: Nicholas Piggin > [mpe: Backport to 4.4 based on patch from Balbir] > Signed-off-by: Michael Ellerman > --- > arch/powerpc/kernel/exceptions-64s.S | 22 ++++++++++++++++++++-- > 1 file changed, 20 insertions(+), 2 deletions(-) also applied to 4.9.y