Received: by 10.223.176.5 with SMTP id f5csp1840468wra; Wed, 31 Jan 2018 12:25:55 -0800 (PST) X-Google-Smtp-Source: AH8x226QHQ9I2djBMj9gmpv3b1GCDv18hPgG0QBCMilS9xvOnTD57ADYkf+DlFElRfjSIt5OJ6ta X-Received: by 10.99.154.73 with SMTP id e9mr25083896pgo.26.1517430355276; Wed, 31 Jan 2018 12:25:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517430355; cv=none; d=google.com; s=arc-20160816; b=ERhAVLNDzeqcZzz9+51EcXaBoyob/2xeWhWs0wmMAR18D+SKao7n+8Ti91mDWPMxm7 PNl8/iU5yyNiwA8CJC8rBJofspOlWWNmdLNJqra9kki82KpAGoSsB8bUV4llheaf7KPx +psqFgmFFq4mY2XktDaSZGPxBPfAAFJm6PU+4U5HKLxbcDWrODN16VB8TXcpg/jxilpk RBhszDcAkDvmFgkKhG+ufD46iZS2Wsoz5LB40SlSLKICXxJBulGp8AA/AvyGzrB8md43 p6akmS030Wx8TO6H87hO468+JclPbrxuwRXbguViVtLipDKiaDGhkvokKnP7Y1sQLbq6 +J/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=7rHfKQUKgE14BusGoVeDlYQ+3eJreAnYEvIv7f3eMuw=; b=JfDKNd4HKpjTTiiJa5M0gr8INmcxRtoadS+IIa2uW2lAaZu3lVaCnHyKHMOiOjvw0F G44fxnBZaWvCHCpDpttf8BSy88k/iGjdbN7pXCOIncOdPnlvoMAMKHsJgKRBkRXjwMZG pO0L+MwNIl/w6a5Kiryhz8BYPKWBoPSoEe3ryZP3LZCrw15bHEJTXzp56KolIJHVL4hI SCHuiZF71yB/Q6p55eV/Nfh3c/ctfTgBcIqeogNqTGjFNJAG3/ls1DAruSuh8Ectv7B9 QJRKHR9Wta+NxFitwKRmHeg8hDONKbdjrE7YG3NKMzhbM/TK6od34asv/OvGUJ+aFKy9 T20Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=n6Lr+vDK; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 1-v6si131837plo.223.2018.01.31.12.25.40; Wed, 31 Jan 2018 12:25:55 -0800 (PST) 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=fail header.i=@gmail.com header.s=20161025 header.b=n6Lr+vDK; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752792AbeAaUYa (ORCPT + 99 others); Wed, 31 Jan 2018 15:24:30 -0500 Received: from mail-oi0-f68.google.com ([209.85.218.68]:39817 "EHLO mail-oi0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752308AbeAaUY2 (ORCPT ); Wed, 31 Jan 2018 15:24:28 -0500 Received: by mail-oi0-f68.google.com with SMTP id j188so10189513oib.6 for ; Wed, 31 Jan 2018 12:24:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=7rHfKQUKgE14BusGoVeDlYQ+3eJreAnYEvIv7f3eMuw=; b=n6Lr+vDKMWGmiQuNgYxHuCDihhfRkSKAGlMzP1h+FM6775eRa0MfUPjMU+pM85HEYY WxSWnT3SxSUbh6ZHjHu0ajADbrwDaxtWXMZLmgJmvD0IDay+r98JY/nLO4+cM+9dCSeA kWb8DFJlp6b5Yo+Ikjhaaqsal0Bvr5ZsgAgvqmlkX25I6Qf3542r1b6ygN/YU/Z0XmBI Z4BZMG9pcP3JqRRMpqs5iNnWBrd5EiKNZ69SI98K6YT4QLjR5n87R5bCU/rid2he7ED8 YBPara6hoY6SsJsqmjvLgyQW4cUjpZV+3WfqK8gTgOUlblJiWeohv28T/jqC+lUrV90b 1QQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=7rHfKQUKgE14BusGoVeDlYQ+3eJreAnYEvIv7f3eMuw=; b=CVGgYkA/IpbjX5l/tmziSqChws4hBNnGP5exugHXpOEd+PDstpGo+jA35R1dveX7Dg n5b95AqmC0RVD+N3CV8hPJeR1ez8uKBB6Zjdjdeo2R8NryyYOC6ACvCGcs/+KJq49RG4 BcEFjfoZZgcRyXGLOaexPsQnQn2iPPkmOoV5zX2vyF8NkuFxl+nlCtIUUEOgr97d5vVp DOWdlgliecyvFjHrVg+eXct3MiLBAjhsELSaY8yd5vkJ8tEQxtcocdlBI0FicVXR1tez P9kjxib2IGwOcdesKHRgu23wbOTE9O+xl7dTdlPtQzDJHlTivi9p8sg99D7sOEy/kpEh YerA== X-Gm-Message-State: AKwxytcrC9m7rBGWZfCOQAKkCV7izmeRnIJoXLjsYFOU9F59olVftD0L icN7g2MEnM/Wi1PUNxDYTHaziyHqGih97v7lSCU= X-Received: by 10.202.171.143 with SMTP id u137mr6446870oie.98.1517430268223; Wed, 31 Jan 2018 12:24:28 -0800 (PST) MIME-Version: 1.0 Received: by 10.157.68.33 with HTTP; Wed, 31 Jan 2018 12:24:27 -0800 (PST) In-Reply-To: <20180131201911.19253-1-anders.roxell@linaro.org> References: <20180129234900.11121-1-anders.roxell@linaro.org> <20180131201911.19253-1-anders.roxell@linaro.org> From: Arnd Bergmann Date: Wed, 31 Jan 2018 21:24:27 +0100 X-Google-Sender-Auth: MyG_MQZrRKJQtq99DSNObTS8N9s Message-ID: Subject: Re: [PATCHv2] arch/arm/Kconfig: default ARM_MODULE_PLTS to 'y' To: Anders Roxell Cc: Linux ARM , Linux Kernel Mailing List , Russell King - ARM Linux Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 31, 2018 at 9:19 PM, Anders Roxell wrote: > While testing multi_v7_defconfig with LOCKDEP enabled, the kernel > fails to load simple modules, as reported by kselftest: > > [ 34.107620] test_printf: section 4 reloc 2 sym 'memset': relocation > 28 out of range (0xbf046044 -> 0xc109f720) > selftests: printf.sh [FAIL] > > The problem that is seen when LOCKDEP is enabled without > ARM_MODULE_PLTS, is that LOCKDEP eats so much memory that the top of the > kernel gets out of reach from the bottom of the module area. I think we could still use a better explanation here, as Russell said anything could cause the size to grow too much, it's just that you happened to run into it through lockdep, which can cause a very significant growth. Arnd > Suggested-by: Arnd Bergmann > Signed-off-by: Anders Roxell > --- > arch/arm/Kconfig | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig > index 51c8df561077..8014c8c322df 100644 > --- a/arch/arm/Kconfig > +++ b/arch/arm/Kconfig > @@ -1702,6 +1702,7 @@ config ARCH_WANT_GENERAL_HUGETLB > config ARM_MODULE_PLTS > bool "Use PLTs to allow module memory to spill over into vmalloc area" > depends on MODULES > + default y > help > Allocate PLTs when loading modules so that jumps and calls whose > targets are too far away for their relative offsets to be encoded > -- > 2.11.0 >