From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752700AbcKYLVq (ORCPT ); Fri, 25 Nov 2016 06:21:46 -0500 Received: from ozlabs.org ([103.22.144.67]:51029 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753160AbcKYLVf (ORCPT ); Fri, 25 Nov 2016 06:21:35 -0500 From: Michael Ellerman To: Ard Biesheuvel Cc: "linux-kernel\@vger.kernel.org" , "linux-arm-kernel\@lists.infradead.org" , jeyu@redhat.com, Will Deacon , Rusty Russell , Andrew Morton , Benjamin Herrenschmidt , "paulus\@samba.org" Subject: Re: [PATCH v3 0/3] modversions: Fix CRC mangling under CONFIG_RELOCATABLE=y In-Reply-To: References: <1477585631-18574-1-git-send-email-ard.biesheuvel@linaro.org> <87eg2kj757.fsf@concordia.ellerman.id.au> User-Agent: Notmuch/0.21 (https://notmuchmail.org) Date: Fri, 25 Nov 2016 22:12:33 +1100 Message-ID: <87r35zsti6.fsf@concordia.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Ard Biesheuvel writes: > On 15 November 2016 at 09:13, Ard Biesheuvel wrote: >> On 10 November 2016 at 05:22, Michael Ellerman wrote: >>> Ard Biesheuvel writes: >>> >>>> On 27 October 2016 at 17:27, Ard Biesheuvel wrote: >>>>> This series is a followup to the single patch 'modversions: treat symbol >>>>> CRCs as 32 bit quantities on 64 bit archs', of which two versions have >>>>> been sent out so far [0][1] >>>>> >>>>> As pointed out by Michael, GNU ld behaves a bit differently between arm64 >>>>> and PowerPC64, and where the former gets rid of all runtime relocations >>>>> related to CRCs, the latter is not as easily convinced. >>>>> >>>>> Patch #1 fixes the issue where CRCs are corrupted by the runtime relocation >>>>> routines for 32-bit PowerPC, for which the original fix was effectively >>>>> reverted by commit 0e0ed6406e61 ("powerpc/modules: Module CRC relocation fix >>>>> causes perf issues") >>>>> >>>>> Patch #2 adds handling of R_PPC64_ADDR32 relocations against the NULL .dynsym >>>>> symbol entry to the PPC64 runtime relocation routines, so it is prepared to >>>>> deal with CRCs being emitted as 32-bit quantities. >>>>> >>>>> Patch #3 is the original patch from the v1 and v2 submissions. >>>>> >>>>> Changes since v2: >>>>> - added #1 and #2 >>>>> - updated #3 to deal with CRC entries being emitted from assembler >>>>> - added Rusty's ack (#3) >>>>> >>>>> Branch can be found here: >>>>> https://git.kernel.org/cgit/linux/kernel/git/ardb/linux.git/log/?h=kcrctab-reloc >>>>> >>>>> [0] http://marc.info/?l=linux-kernel&m=147652300207369&w=2 >>>>> [1] http://marc.info/?l=linux-kernel&m=147695629614409&w=2 >>>> >>>> Ping? >>> >>> Sorry, you didn't cc linuxppc-dev, so it's not in my patchwork list >>> which tends to mean I miss it. >> >> Ah, my mistake. Apologies. >> >>> Will try and test and get back to you. > > Ping? Sorry :/ I tried testing it last week or so but it was interacting badly with the other modversion CRC problems we were having (fixed recently in my fixes branch). I'll rebase on top of those fixes and try again. cheers