Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933686AbdGSTBP (ORCPT ); Wed, 19 Jul 2017 15:01:15 -0400 Received: from mx1.redhat.com ([209.132.183.28]:58860 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755267AbdGSTBO (ORCPT ); Wed, 19 Jul 2017 15:01:14 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 4CE614A712 Authentication-Results: ext-mx09.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx09.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=yauheni.kaliuta@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 4CE614A712 From: Yauheni Kaliuta To: Lucas De Marchi Cc: linux-modules , Ard Biesheuvel , lkml Subject: Re: [PATCH] libkmod-elf: resolve CRC if module is built with MODULE_REL_CRCS References: <20170719145649.20334-1-yauheni.kaliuta@redhat.com> Date: Wed, 19 Jul 2017 22:04:19 +0300 In-Reply-To: (Lucas De Marchi's message of "Wed, 19 Jul 2017 10:51:44 -0700") Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.38]); Wed, 19 Jul 2017 19:01:14 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1168 Lines: 35 Hi, Lucas! >>>>> On Wed, 19 Jul 2017 10:51:44 -0700, Lucas De Marchi wrote: > On Wed, Jul 19, 2017 at 7:56 AM, Yauheni Kaliuta > wrote: >> Normally exported symbol's crc is stored as absolute (SHN_ABS) >> value of special named symbol __crc_. >> >> When the kernel and modules are built with the config option >> CONFIG_MODULE_REL_CRCS, all the CRCs are put in a special section >> and the __crc_ symbols values are offsets in the >> section. See patch description of the commit: >> >> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=56067812d5b0e737ac2063e94a50f76b810d6ca3 >> >> Add kmod support of this configuration. [...] > LGTM. I'll give this a try and apply. Thanks! I would also like to get some feedback from the kernel feature author, Ard Biesheuvel, that this does not miss other usecases. > Do you think it's possible to build an out-of-tree module with this > option so we can add one to the testsuite? I'll check what I can do. The problem is seen if you run depmod with -e -E, which I guess is not used too often. -- WBR, Yauheni Kaliuta