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: 10194765 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id F15D360380 for ; Wed, 31 Jan 2018 20:19:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D215A28871 for ; Wed, 31 Jan 2018 20:19:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C5D1328874; Wed, 31 Jan 2018 20:19:35 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 4D67D28871 for ; Wed, 31 Jan 2018 20:19:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=hn2auILvDluJlqmqw2HVcb4385Mz8gHKTmMEVsmxov4=; b=pWl6sHBm8z3RttotG/wG4B5axs UVa8f/T+M79HluWxp2zFWnTFmMnm78sN1SXfFYhTkhKGRtRW4WsAcMx25qbXnsRajnJwS3Ap+Wirl bq0YgLj+Lv8yeReO5z8lBnoi7IdE/nt95aQoA+JR4YqLGyAxCd9xGq70QH4OcgssfpsSmf/xgf04W 7FPRmJtMfzQPf9CDPp8KCHRq8dRGoIm0lvKWbZBmBJGxsSjsbzcCjbHYausSuNnlZVJAb9+i+NnC/ GclE9ZuMcnmYIToHbz+L9GgBBWsDVCJyV151EdTDL70Hl2XpnWxIFITB5FERNlPsJm8rL5L9CL9Bb w9mtuNWw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1egyqy-0007hq-B1; Wed, 31 Jan 2018 20:19:32 +0000 Received: from mail-lf0-x244.google.com ([2a00:1450:4010:c07::244]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1egyqu-0007h6-W4 for linux-arm-kernel@lists.infradead.org; Wed, 31 Jan 2018 20:19:30 +0000 Received: by mail-lf0-x244.google.com with SMTP id v188so22662746lfa.11 for ; Wed, 31 Jan 2018 12:19:17 -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=SzK0Hsw0l6YtCKfTVeubFmWv5V0X2Y3VlZHUopv4eQCFwyN+VoH1KFqYX5tQJpM+x3 +7NGgM2U5VlD930PfL38tDI8F10E1j0UFRm+JsuTjBxTkaFylld0mCC26hkOsMzfbg1R ykVN5F6JJhYOK2hBVEj0vAhmWY51ymgKErwqrlr40LtPS7h/xCWIbiK1OjdSY5KD+00/ 64pvL+3tlxS0hGpBiQ4p3fay4WNLa+TB9hB6/CX2N/IeDo5zlFMPd8E9MqBfWnVbbfHQ ViyB3b9fg2x/b8XD105OJBuRwiHzpvLlh+VdpCDAO5yCP5HqwcvcHq1VNOZDviwezkjR 6CfQ== X-Gm-Message-State: AKwxytc9fAYfDjnF8GryR6iP5ywc+zlVrgmyCebJruW17Gpe+Ww23kJf Ks9FLEgTtRPSHwK9OGyTTeqOtE8ecpA= X-Google-Smtp-Source: AH8x224NAOi1Lyfgrf/eMLOxLaG20GW+WdGlHTQ1J78XxI0xigBrkJQphQsazqupYCxakBCQSNSrsA== 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 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> X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Anders Roxell , linux@armlinux.org.uk, arnd@arndb.de MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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 Acked-by: Ard Biesheuvel --- 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