From patchwork Mon Jan 29 23:49:00 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anders Roxell X-Patchwork-Id: 10191103 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 4300F60212 for ; Mon, 29 Jan 2018 23:49:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 368F928793 for ; Mon, 29 Jan 2018 23:49:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2AC31287B2; Mon, 29 Jan 2018 23:49:38 +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 AA95928793 for ; Mon, 29 Jan 2018 23:49:37 +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: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:In-Reply-To: References:List-Owner; bh=/jQve+w4yUkZtlvLq+hxKsaLUIe7plv+5BzYZRsL6xU=; b=FsD 9SSZqkevUWTwKuhnTu8+d9VDlCNohHBs5+OChkqJNhyVi4FJhClbx/KOZYlIWHisxMie2PbI269ud c57LZ+QFnprA6iJ2AWama3I53q1yA6Qe3eMhf57LzsJkaWEoPwKE5VXKebdF5ZkdqU8/ogYIFL/oG 9YUAhYqmep0khFmsmYLXWTiH1B2WuG26rFU0GBOm8AfRPYLNVVVkWbR9uu/Orn7oBP7oUFgLu1APw +AwFpt2QdlmqHhtWCVIngCasYkMzQ4xatlz/ZZNi7qGRImW6r7rvKyGpY2yzlKHHNzbSscB81KBh6 s4Enol4PGy8JtsTnUupmbMtfoe3gjgQ==; 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 1egJB6-0006jN-NQ; Mon, 29 Jan 2018 23:49: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 1egJB2-0006im-Kt for linux-arm-kernel@lists.infradead.org; Mon, 29 Jan 2018 23:49:30 +0000 Received: by mail-lf0-x244.google.com with SMTP id g72so12585168lfg.5 for ; Mon, 29 Jan 2018 15:49: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; bh=C9OMik1RJjT/cNe1+x+P+sHXVgSVYPZ2XkttcVqupyM=; b=b6uwS1PiMIoYpL7i2WLRuNB6TsRwE1O91/ffVHb03eTK9sGqV4jbHoHIR8mptOvg8K pfI32ZizkDxELOMjhV825en4plzNDNTwUL9lO35/HdKhJZnDhbIQSaQODnkc/B1+aZSa GCw+haZY4fQgcfZOv9BYx9YoDsOtkicLx9d38= 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; bh=C9OMik1RJjT/cNe1+x+P+sHXVgSVYPZ2XkttcVqupyM=; b=r2IBGQvfqVYjU6cpZoJ3L7nxPzjitJAOdxRbQgwfkiyK4LuhGe7tCx9ib85D3i6Zvm 5PKAHULDu1LTyvV2U+/RlWxfu0HAeRa/0sHh86Brvh8fSdmZPGM63cTzQC3a55NMgn+F YfNQCwc8f22c8xpPcGXtWa0Jd95mcbRaUPZAj27Ox+ZeZwpZag0Xs4BLMFnVUnmWs9CC d8oeHTsgu3iExEztw0XvrDoRKbWJhV3aIT9/HintYFDJ0zB9NjTINf+jqm8/PDrphppE 0LR+kylNeNzx8vFQ2Q3Vv6JIJrN4doNre1uJAryytKfOis29hE7+GYYZ6oLN4E3gZxEd YHNw== X-Gm-Message-State: AKwxytfQo1YIkKy/5yX7ewjxYuAfBofttI/cKP6bYrmLx9HS+Nhgq6W3 BCvcgbuRVcI1b2i+2vzneDjm24+xyEI= X-Google-Smtp-Source: AH8x224cj4qqNpiHJIDT0jc9Mj6maSylndYKOZ3PhefAM4/GuHoB9JjytaY8lZZq/w9SvPT79o/Xwg== X-Received: by 10.46.83.69 with SMTP id t5mr15089401ljd.128.1517269755547; Mon, 29 Jan 2018 15:49: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 o26sm2451721ljc.68.2018.01.29.15.49.14 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 29 Jan 2018 15:49:14 -0800 (PST) From: Anders Roxell To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] arch/arm/Kconfig: enable ARM_MODULE_PLTS when LOCKDEP=y Date: Tue, 30 Jan 2018 00:49:00 +0100 Message-Id: <20180129234900.11121-1-anders.roxell@linaro.org> X-Mailer: git-send-email 2.11.0 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 --- arch/arm/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 51c8df561077..a339157497c6 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -20,6 +20,7 @@ config ARM select ARCH_USE_BUILTIN_BSWAP select ARCH_USE_CMPXCHG_LOCKREF select ARCH_WANT_IPC_PARSE_VERSION + select ARM_MODULE_PLTS if LOCKDEP select BUILDTIME_EXTABLE_SORT if MMU select CLONE_BACKWARDS select CPU_PM if (SUSPEND || CPU_IDLE)