Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp8374273ybi; Thu, 6 Jun 2019 11:09:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqxMuA8DRl70fhjF11hStpfOqF/Mcmi4hFQcVa9fEuYtsfDJ3MYfrS0LmEVtSBpTlIzOPmei X-Received: by 2002:a63:1723:: with SMTP id x35mr4407430pgl.233.1559844582740; Thu, 06 Jun 2019 11:09:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559844582; cv=none; d=google.com; s=arc-20160816; b=ac9EKUnkvzNCND9BfpU4VF60rL7Xh09pJaCvrJhB5qlVX2GWR3HEokJ5UBo1XvlucG AnRgbbRvonfCR3x6o0mXsjocHge63v3aGmnatUUJGGMnDivHFWcUiu34wNLu45BzDyZI 81UEIbNRPBg9/cgkhvdhDdmhQGU5zty1j31oRD1SU7u/x6mDcxouE9tw2WRHZd3v73P2 U2LxF8+U2YQ50z8OWCJrZrh9lVNeYrPotj+S+VEyye9m1BZTmkKednulHWFrAhxvTSqv mxjCXZ4CVJ1IY8WDlF65wBZATt9o56O7KKFcNhhiSCJE12EWFc3P9DQcLvf2a+WhUMnb KPyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=G6LyhEy4TsNCbC2maX+hv3X9CEnhMLcHCwRQoiEzHDI=; b=ZEcXa38IYJrS5D/iXKJqpgzvRPhYDShtChwXvFX/YpV2K2qemxNulcHSCUYyoYUvk1 Qtj6/7MVqE2/yhaPD/D/l6o76J53bRAz9s8z5OxKM9LSde72xnA1ObnXDpuyzV6wFDAB PrUcVghhxqEDxXm+iiB0pEk4I4oTNdZyThrI1UI5SJvDhNV8Jl0y/f6BBku5UAts0Ftw OLcYnx26mPMXuIAdf6JjyiNMzOFuugh75YF+gC11rRajndoFc0OYdzSnBCZdphjJMnFL oY/4Mp6RLjTpuWWknsr9A3J2YDZspFtcWEA7lXk2B5/hOAdjx4aaVCWpBeAou/97M9z/ Tpfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=WXkkQoMB; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j19si2499357pfd.189.2019.06.06.11.09.26; Thu, 06 Jun 2019 11:09:42 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=WXkkQoMB; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729257AbfFFPVh (ORCPT + 99 others); Thu, 6 Jun 2019 11:21:37 -0400 Received: from mail.kernel.org ([198.145.29.99]:41520 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727309AbfFFPVg (ORCPT ); Thu, 6 Jun 2019 11:21:36 -0400 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 Cc: Russell King , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-ia64@vger.kernel.org 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-Type: text/plain; charset=us-ascii; format=flowed 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) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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