From mboxrd@z Thu Jan 1 00:00:00 1970 From: Helge Deller Subject: Re: Aw: Re: kernel 4.6-rc unbootable due to module changes Date: Fri, 8 Apr 2016 21:43:09 +0200 Message-ID: <570809CD.3060203@gmx.de> References: <570409DA.1060508@gmx.de> <57058332.8050204@gmx.de> <5706E3A0.2020902@gmx.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Cc: Mikulas Patocka , John David Anglin , linux-parisc@vger.kernel.org To: unlisted-recipients:; (no To-header on input) Return-path: In-Reply-To: List-ID: List-Id: linux-parisc.vger.kernel.org On 08.04.2016 16:59, Helge Deller wrote: >>>>> So, it seems that handling exceptions from modules never worked on >>>>> pa-risc, it was just masked by the fact that exceptions from modules don't >>>>> happen during normal use. >>> >>> Sadly you seem to be right :-( >>> I did more testing with the test_user_copy module (with vanilla kernel 4.5 and without the relative extable support). >> >> The attached patch fixes the exception handling for modules for me. >> This is realized by saving the %r27 register in the fault handler and restoring it in the exception path. >> With this patch the "test_user_copy" kernel module succeeds when loaded. >> Mikulas, can you try it with your testcases ? > > Attached patch additionally adds support for resolving R_PARISC_PCREL32 relocations, > which fixes the 32bit extable change which was introduced with kernel 4.6-rc1. > > With that I think we have all module issues resolved ? I've pushed all relevant changes into my for-next tree which can be pulled: http://git.kernel.org/cgit/linux/kernel/git/deller/parisc-linux.git/log/?h=for-next Helge