From patchwork Wed Jan 31 20:19:11 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anders Roxell X-Patchwork-Id: 126411 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp1062915ljc; Wed, 31 Jan 2018 12:19:20 -0800 (PST) X-Google-Smtp-Source: AH8x225JT75DWQ3W+WxrbHtFgKhGUV82+mEjUGwc7SGkYN/TgoQC5NPJ3eTIMU1zRO4w/pRSwliB X-Received: by 2002:a17:902:8c87:: with SMTP id t7-v6mr15802399plo.205.1517429960307; Wed, 31 Jan 2018 12:19:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517429960; cv=none; d=google.com; s=arc-20160816; b=bytaZRyxiA0b4sPiOlB9YqOCbWZduQEI5/0IeEAQMudK9p5464PVbsKzuPrKi5IDXn 6LJxh34fvjHkVpMAvvTEODKQovbj9uoFPLKlHu4iWhL28HhYhw61zyQla1lBlFosFz35 9RBz/5zFSHws2ewHs/32myuGcZEEwBSJF8KVtGVD5Qohf3ZZ47lQ3zB2sc1TVEnOK3t1 /xk2GGbn5y6ZLRStoVRT9N6GyYHNkKIHsqDstrKzD7KLvKHUQGxq13udCs1WQrGzsh94 H/S9/Z15mDUQ7xp7HmyTyAIaOGOnmFbqwgTyO4kHSVS8e2ND93GUPR3EpfXhH8T+aZjZ l+PA== 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 q90si256543pfa.91.2018.01.31.12.19.20; Wed, 31 Jan 2018 12:19:20 -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 S1752704AbeAaUTS (ORCPT + 23 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(+) -- 2.11.0 Acked-by: Ard Biesheuvel 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