From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.5 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_DKIMWL_WL_HIGH,URIBL_BLOCKED, USER_AGENT_MUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8DABDC04AB5 for ; Thu, 6 Jun 2019 15:21:44 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 642CD20673 for ; Thu, 6 Jun 2019 15:21:44 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="rMUaAyDG"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="WXkkQoMB" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 642CD20673 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender:Content-Type: Content-Transfer-Encoding:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=cMYOyiILkpGnF83jBpKW8SIVyhrFXuiBeQ6jU2u+iMI=; b=rMUaAyDGjBdoZHOY4MHmeSKHQ h5htR5uHL+J2pCkyWYd40sNiH5NAlh9TqpI+6AzaBeV4TnQtIqEAw7/unXdDBKRm9wNGdzDzyaKI/ WpjxgXdhxI3xmZlOSsDgJ0TpiAmunD2Qje6GY0MKnGuU/O9XRxWtxEPT9PpBkfjOfiqC56RbMbipa T5t7eTFIsq9fvtMNgZ2PGBHWpL7NbD+5mMadzHWR3gZKECpuq+T4qopVuidh/6lkDFAVY/3iv9A5M iHAuNldapLNwInJPhhsrBG/Qnf+K3jECBcY8y2PsyC/+FaMgOQROttTACazdkvOgJn/tullLhLv9w /dZ6m7ueA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hYuCx-0000Ei-9K; Thu, 06 Jun 2019 15:21:39 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hYuCu-0000EH-LK for linux-arm-kernel@lists.infradead.org; Thu, 06 Jun 2019 15:21:37 +0000 Received: from linux-8ccs (ip5f5ade8c.dynamic.kabel-deutschland.de [95.90.222.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 04BB620673; Thu, 6 Jun 2019 15:21:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1559834496; bh=mLdxV+RudsCb8mYr7BWKmOmkMo1rkI6oaKHldh70dBY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=WXkkQoMB08AdfjyhCVRCQWQK02WMFqgmrVf8sccWUDOBYEl1wbdCpwyj01MITAJCK FUBd9MjAsy7bpv2HUF0UZNYm0a8rx2DCvKFl/k+2uqqfqYXvECShDsV/E6UI+yh4wI zEJGEpXilEp9ARxc0/YIA0DKNxtViD+snItNjCls= Date: Thu, 6 Jun 2019 17:21:31 +0200 From: Jessica Yu To: Matthias Schiffer Subject: Re: [PATCH modules 0/2] Fix handling of exit unwinding sections (on ARM) Message-ID: <20190606152131.GB27669@linux-8ccs> References: <20190603105726.22436-1-matthias.schiffer@ew.tq-group.com> <61f233518ba863f9d5783dd10e468ee5bf22b69a.camel@ew.tq-group.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <61f233518ba863f9d5783dd10e468ee5bf22b69a.camel@ew.tq-group.com> X-OS: Linux linux-8ccs 5.1.0-rc1-lp150.12.28-default+ x86_64 User-Agent: Mutt/1.10.1 (2018-07-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190606_082136_710475_6F9F477A X-CRM114-Status: UNSURE ( 9.69 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-ia64@vger.kernel.org, Russell King , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org +++ Matthias Schiffer [06/06/19 10:14 +0200]: >On Mon, 2019-06-03 at 12:57 +0200, Matthias Schiffer wrote: >> For some time (050d18d1c651 "ARM: 8650/1: module: handle negative >> R_ARM_PREL31 addends correctly", v4.11+), building a kernel without >> CONFIG_MODULE_UNLOAD would lead to module loads failing on ARM >> systems with >> certain memory layouts, with messages like: >> >> imx_sdma: section 16 reloc 0 sym '': relocation 42 out of range >> (0x7f015260 -> 0xc0f5a5e8) >> >> (0x7f015260 is in the module load area, 0xc0f5a5e8 a regular vmalloc >> address; relocation 42 is R_ARM_PREL31) >> >> This is caused by relocatiosn in the .ARM.extab.exit.text and >> .ARM.exidx.exit.text sections referencing the .exit.text section. As >> the >> module loader will omit loading .exit.text without >> CONFIG_MODULE_UNLOAD, >> there will be relocations from loaded to unloaded sections; the >> resulting >> huge offsets trigger the sanity checks added in 050d18d1c651. >> >> IA64 might be affected by a similar issue - sections with names like >> .IA_64.unwind.exit.text and .IA_64.unwind_info.exit.text appear in >> the ld >> script - but I don't know much about that arch. >> >> Also, I'm not sure if this is stable-worthy - just enabling >> CONFIG_MODULE_UNLOAD should be a viable workaround on affected >> kernels. >> >> >> Kind regards, >> Matthias > > >Hi, >any comments on these patches? If not, who is going to take them in >their tree? I don't mind either way. I can take the patches through my tree if Russell ack's the second one (after comments have been addressed). Thanks! Jessica _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel