Received: by 10.223.176.5 with SMTP id f5csp1834648wra; Wed, 31 Jan 2018 12:20:26 -0800 (PST) X-Google-Smtp-Source: AH8x226prk3GMPw5wErGwFqgKU+RaSG6jqwUChTvmrS8SlZM3jfcTmcO/lXKgstLQPHvCHawgzoZ X-Received: by 2002:a17:902:2702:: with SMTP id c2-v6mr27699638plb.342.1517430026431; Wed, 31 Jan 2018 12:20:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517430026; cv=none; d=google.com; s=arc-20160816; b=NxGCzZBZDgUjdLulxbdSBcBe/tqrWqxQi4z7Mj+Nnd1hBzAr9SawHqhVejmOsWNMdX 6yTnMpY+tw2mSIS150AzeluFlliqf3eSwoOGAHTDUWeUKVyMFVPGjBWf8LlEA8lZumAs NNkH/cKy6wgsCGLmbCrirPxxzAZHQCnHcooxDLiq3+A1mX+iEOSWVml0SF3X4iWayx9+ 9mAXUsZH7YS5CpeecOb2zbJN/GkMRNxNrNRgVry82bnlCkhG/6FL+Egx+wS+ZHH/L/Qk vsk10ZcIH98PTVJPm3r1YfSeWrX9RLPBgGabHRDASuRMVS8g69Y5+4XZOc78oytKgw3n +t3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=rSbeVH6JamamDQoT8bgsmc9GfTwh1cJMEj3rrnVtn88=; b=xkONTvzDQfIkB9Pc/LRH40zZMwEP1lq6ivSpy7aItdnDavgip/lzPJrh1uBtxB+W4y iLCyjIW+xob6ih+kGOKMr2Jzo6T51GCNubSVVAzdijkk/0jXaYKYl0t1GvgNfhX+ZKso wu4Q1gYn3S/hiSVWvL3og+3JdhIrs3Sz95SyOh3ODt5DH7bDCJB21yQsD+dYqYIOTHWc +LPS9JrecQbRPbFs6dYKaiOs7GYkSvFh5Ztr8xocEXza24OZyMjkJtJU1bWdMyTj2fPb LaECXR1Vzf5jrEdPd2PCLnsGYJfCUGa5OWI62D91DLohHDKsANQv3zyA9s7mMNTQbqhx 3mkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YDgfGMTw; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b18-v6si2363080pls.191.2018.01.31.12.20.11; Wed, 31 Jan 2018 12:20:26 -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=pass header.i=@linaro.org header.s=google header.b=YDgfGMTw; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752664AbeAaUTS (ORCPT + 99 others); Wed, 31 Jan 2018 15:19:18 -0500 Received: from mail-lf0-f65.google.com ([209.85.215.65]:43244 "EHLO mail-lf0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751745AbeAaUTQ (ORCPT ); Wed, 31 Jan 2018 15:19:16 -0500 Received: by mail-lf0-f65.google.com with SMTP id o89so22661543lfg.10 for ; Wed, 31 Jan 2018 12:19:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=rSbeVH6JamamDQoT8bgsmc9GfTwh1cJMEj3rrnVtn88=; b=YDgfGMTwGKhsjCecRYe4y3l99LUYxCJyhrCXH+cP7xSV2rDB+AWxI4kO3+B3OO5t+R EaZDrum9cBqStS8gso7MJCRPjJhYFeuup2HTnmGSPusXCtlmX3dls9Mr1A3Cdbk9tvWI zcq0dP3Fv8DMVVrVfwNcjcdl+cYR3lqilfkIA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=rSbeVH6JamamDQoT8bgsmc9GfTwh1cJMEj3rrnVtn88=; b=rwIZJZ5a/zPsz5fV3T9faTKdUh+NOTNA2cbAhFRWnZzoNcHyqiOJrEucppTeukRzFp m46NOHVnI2DHY1wSyz9F/GClZsuPM630kjaHBPfR0ReaR2pw22Di9/Gc427R6OsgmL5w nHwvSIFDK6qBelM3gjR6HjCpHo+l3RjMrMxJSmFxIDK6X0VjGF61fq5XTpRS4dsVeNyA IuFS2bkAJJpHhtU0bW8GoV0DdVWGJjzTPR1QRTI9miwkpvl57M8G2NfZlurAxQRgmoXj O6HrvrYa8JNZWjUFwvveOIoC+oRx05/9v9cz0FJxf6N87UtLxG9aKDI1Uo3iqFf2Dc93 A+HA== X-Gm-Message-State: AKwxytfm9LxfOhSnshazKrvgVfJ4pkwP9vlxmNXhbVOTVFGWVncku3ci ZZr0RAGt8yGs15xKMGs5nHzA+g== X-Received: by 10.46.25.141 with SMTP id 13mr7900232ljz.38.1517429955478; Wed, 31 Jan 2018 12:19:15 -0800 (PST) Received: from localhost (c-2c3d70d5.07-21-73746f28.cust.bredbandsbolaget.se. [213.112.61.44]) by smtp.gmail.com with ESMTPSA id g81sm3422573ljb.74.2018.01.31.12.19.14 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 31 Jan 2018 12:19:14 -0800 (PST) From: Anders Roxell To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: linux@armlinux.org.uk, arnd@arndb.de, Anders Roxell Subject: [PATCHv2] arch/arm/Kconfig: default ARM_MODULE_PLTS to 'y' Date: Wed, 31 Jan 2018 21:19:11 +0100 Message-Id: <20180131201911.19253-1-anders.roxell@linaro.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180129234900.11121-1-anders.roxell@linaro.org> References: <20180129234900.11121-1-anders.roxell@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. 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