From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailapp01.imgtec.com ([195.59.15.196]:60895 "EHLO imgpgp01.kl.imgtec.org" rhost-flags-OK-OK-OK-FAIL) by eddie.linux-mips.org with ESMTP id S23991232AbcKAJ1xCMtUu (ORCPT ); Tue, 1 Nov 2016 10:27:53 +0100 From: Paul Burton Subject: Re: [PATCH 1/4] MIPS: Fix ISA I FP sigcontext access violation handling Date: Tue, 1 Nov 2016 09:27:39 +0000 Message-ID: <3679706.n1bQkNAIWn@np-p-burton> In-Reply-To: References: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2082248.U7eFgs0xAx"; micalg=pgp-sha256; protocol="application/pgp-signature" Return-Path: Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org List-help: List-unsubscribe: List-software: Ecartis version 1.0.0 List-subscribe: List-owner: List-post: List-archive: To: "Maciej W. Rozycki" Cc: linux-mips@linux-mips.org, Ralf Baechle , linux-kernel@vger.kernel.org Message-ID: <20161101092739.UOYmhd8Q1o8qwtMG6fO8ULpis9WW2L-ZU1fCypghu_c@z> --nextPart2082248.U7eFgs0xAx Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" On Monday, 31 October 2016 16:25:44 GMT Maciej W. Rozycki wrote: > Complement commit 0ae8dceaebe3 ("Merge with 2.3.10.") and use the local > `fault' handler to recover from FP sigcontext access violation faults, > like corresponding code does in r4k_fpu.S. The `bad_stack' handler is > in syscall.c and is not suitable here as we want to propagate the error > condition up through the caller rather than killing the thread outright. > > Signed-off-by: Maciej W. Rozycki > --- > I guess it hardly ever triggers and code still builds, so it has aged so > well... > > Maciej > > linux-mips-isa1-sig-fp-context-fault.patch > Index: linux-sfr-test/arch/mips/kernel/r2300_fpu.S > =================================================================== > --- linux-sfr-test.orig/arch/mips/kernel/r2300_fpu.S 2016-10-22 > 02:36:46.000000000 +0100 +++ > linux-sfr-test/arch/mips/kernel/r2300_fpu.S 2016-10-22 02:37:20.891186000 > +0100 @@ -21,7 +21,7 @@ > #define EX(a,b) \ > 9: a,##b; \ > .section __ex_table,"a"; \ > - PTR 9b,bad_stack; \ > + PTR 9b,fault; \ > .previous > > .set noreorder Hi Maciej, Looks good to me: Reviewed-by: Paul Burton Thanks, Paul --nextPart2082248.U7eFgs0xAx Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- iQIcBAABCAAGBQJYGGALAAoJEIIg2fppPBxl3WkQAI5HhsSeuvTTh3oKocYTAlLz JwZlV7zWmG0P6yQrVtjdzlsRhlJoF2RLpRw2rKrwvgIWkEOJUlLG1swkM7JUWcIK qK6oDSrfN/3Fo0q0P8l55XnmXB4iFx83i4Toec4OEcfl97Wp5Nlf09GTTbljP9zo GWggGSIbEIUUg+oCe6zAdrjiXo4f1iQ2eMxp1Ym2XlSmjpdhkcVBtJucvFpRodNy /VsZPZCeHcW5SFFb6wGu0U47JKfy6b7pkptzquQQpHqnH7JkSPeBO8v4ecRJTCpW VVMo+difjo3HeARKlWIR0SBtwinpdgh2WcWUkPcvq3+sbFwEeLRE7lLENnGOCQqD WoT2qhWWE293wDHdgMFGCr1CvYytJynTEdLNVLREM+Xu+0Utc4QOHVc7OvgO3eqR 09CgKuzkYzNI2DfdQaAVasKHs3qnfAq5slsjl2SYv3blIjmIvjUFkdzj82uvbune KXV61yORDknFY9RQZLO5MPSbEUvw8vRfg271r93A6r540A6t/Opk9ekESQn8EEQV E1MtVfZ6gY+c5v0v5XUksdInlePycjHcqBrP5D206C7JT22LXDHPzT11cvXmObUy G9DDZKJ6gHHqdE9pJyZrvTpkGzg5e2UMGXFjORpSiC49yex/nRnyPXNRhttyEUjv 5igexToaU7KsAG72wKuD =1ZQ6 -----END PGP SIGNATURE----- --nextPart2082248.U7eFgs0xAx--