Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp2480253ybd; Mon, 24 Jun 2019 07:10:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqxWVet+qj8eJxiX7q2Gxjiouw5xVcURtyctI/qTtOWGrghbdXeohpEnSne9v+0c39CPUPar X-Received: by 2002:a63:2109:: with SMTP id h9mr33391547pgh.51.1561385431053; Mon, 24 Jun 2019 07:10:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561385431; cv=none; d=google.com; s=arc-20160816; b=wvV4Qz6rV0eMJVXWyKCeO8+XAbE/FrDrVvQm9enVsyw2arhijOAF8FNPFem64g1Sft 7DdNz5Ul6l4jPCYdl5AX4rO99+nVcSWB9odBqXP3m48ItGcFusw4GlN3+hU+pxis02HA fey+Yqu5cguBEriQ51KzOqQUiwpa9BpAM9sP/0y9OF6JykoRXYX20xXkbf78t6MiT6Xu 5Bo8gtQc1NGCjY88oxO9SvKY/uaDKqvGjwSnmG/DyXUS5bAVD21nV3VZwEZmfZWbasGx KIyliWNj3prNn6GZwD+ykujIi2CczoCbNcbcrKei25y4Gb4j+gwrmp6+7shHANZ7WriU crgQ== 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=z+g7ZEEL4vnZ0hXMpggJPRNQVbn/Rvf4IHYwPERbaTE=; b=zhDth9Cpaq5VI5vFtmeDnHQE/hh/4EsgwOzdW2NckMu5XrGFkEilQPxhymKt/TbK9j a6Wd8JyG7qVZNnr5LyfCyppeFLm8RuI6noiKgpEREvfdCKcV38TKdBlZ+8grcinlii/H Abb3x3cIgZu+zDY6PolHS4BcuC2SyBqlXbDoYYCucogR1lfZdhpj04RUuc0r8sdqvuvQ rtuaIkWTWoEYy9a3HNURuQeqRooAdLdY1tKbYW+vYSaNG/C0I62SnX1LmLZY+Cs5soy8 tfEEic9P1afJ3RMEetZ+JL3X0MKt5BQIwCvKN0nw6dC5yAgFQtG4veA8b3pakX9ve+Sz 6m4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=iLycqTq+; 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 bc8si9829496plb.322.2019.06.24.07.10.15; Mon, 24 Jun 2019 07:10:31 -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=iLycqTq+; 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 S1730237AbfFXMcF (ORCPT + 99 others); Mon, 24 Jun 2019 08:32:05 -0400 Received: from mail.kernel.org ([198.145.29.99]:43302 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726453AbfFXMcF (ORCPT ); Mon, 24 Jun 2019 08:32:05 -0400 Received: from linux-8ccs (nat.nue.novell.com [195.135.221.2]) (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 5F2E8205C9; Mon, 24 Jun 2019 12:32:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1561379524; bh=a3K3DY7Vl1R9i4uY3YJgDprYWQNpO5K3lg8iFltccQg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=iLycqTq+aNbxd3gjPjNE9eolP7uheTaiE+2YXket8RcX0W8qyre9yJudYBufPfpKm jUvfAJJrJXmZeGmgaflV39AQzCx0zIiY52gWJ3gnVpF8VcEWbtYqYnKXHsBz1END0/ P3jMzy4V3tkHZRmIVZqd5LCLKdT6/vx5oRoZkvgM= Date: Mon, 24 Jun 2019 14:32:00 +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 v2 0/2] Fix handling of exit unwinding sections (on ARM) Message-ID: <20190624123200.GB22519@linux-8ccs> References: <20190607104912.6252-1-matthias.schiffer@ew.tq-group.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: 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 [21/06/19 14:35 +0200]: >On Fri, 2019-06-07 at 12:49 +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. >> >> v2: Use __weak function as suggested by Jessica > >Hi Russell, > >this patch series is still waiting for your thoughts - in reponse to >v1, Jessica already offered to take it through her tree if you give >your Acked-by. > >Thanks, > >Matthias Hi Matthias, There doesn't seem to be any complaints and I think the patchset looks good, so I've taken it up the modules-next tree. Thanks! Jessica