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: 126191 Delivered-To: patch@linaro.org Received: by 10.46.84.92 with SMTP id y28csp2870910ljd; Mon, 29 Jan 2018 15:49:20 -0800 (PST) X-Google-Smtp-Source: AH8x224aSJcCPG5eF0tsSM5GyP58qcPRAY4n4hIKy0lsDMOwZUHXWD4U9imEaPUvecqR8RbEUq+s X-Received: by 2002:a17:902:14cb:: with SMTP id y11-v6mr3568803plg.294.1517269760456; Mon, 29 Jan 2018 15:49:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517269760; cv=none; d=google.com; s=arc-20160816; b=vn25qkNSnf+HNwK67uhcxnv3/6QaUIaj7N+1U3WzxTnbPg84kylq0QmXNL93IpJpYu Pr0kpQPzIx68xe+h52yDoyhGxoF9ViP7/rlsqvzvuejiiH+j5rjTnUNU2rcp7lDYLsSL /a3d8kwRzkjbAr9/3exStYt50kL7qzpMI6dcT8QpqcJbjvsef1aaaynmnkFcsz5q2d3i reArVCj/uQx7Mbgck700+Dwnw6cXpsEEmuzNU3HsJYf9P9UVLRW+rYRRbH8pjXAIgqXm UU1ytbiVz4thM6zNbYjMpdliSwByE2UAShpEI1vnW+M+GcfodEb9+RUHrX5N5o43wGf0 l1Tw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=C9OMik1RJjT/cNe1+x+P+sHXVgSVYPZ2XkttcVqupyM=; b=nAWXNZUkn2QNR7TRg1v4NlBoAsabVZ1dx6BRGXc4F8uZgSQWqhExhxXlPfUzY44aPO NGf28M71AzrF9ytAT+4Sebdms5efHDUyywarUvWWersgteg/E1bO+b/N7bDa5iiRhJyy eGk65/x79DVTwJZ0XoJSH5yde3gtifpNKOwG3iArRC4Oa/HNkiUVtX7gJ0sm9JJW01lc 2Qtmd3DSAfpaCfuc1JZw6LujS/I0M/FhcZvrTps3AGMIW3yWRMe316oMLfJsYW2I8Gal enxi4QBb0Z3nL0cfI79CTe+Dx3Hab/XjvQJ881NfjZ8wvZX9DcvviK/NYKu9CG3Tiefg AuVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=b6uwS1Pi; 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 a61-v6si623503plc.593.2018.01.29.15.49.20; Mon, 29 Jan 2018 15:49: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=b6uwS1Pi; 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 S1752073AbeA2XtS (ORCPT + 24 others); Mon, 29 Jan 2018 18:49:18 -0500 Received: from mail-lf0-f67.google.com ([209.85.215.67]:42295 "EHLO mail-lf0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751528AbeA2XtR (ORCPT ); Mon, 29 Jan 2018 18:49:17 -0500 Received: by mail-lf0-f67.google.com with SMTP id q17so12581238lfa.9 for ; Mon, 29 Jan 2018 15:49: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; 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=RCj33C+CTcJmqZZW5jGLUNAGWglkBfb+hORCU5Hn/yVhg5YVIbYLcpUS9xHYh2Q1RJ 2DOjDgwhPAZWXXDAFsFNaPMp+ePSPnakeVQ51OBrNRciheKlVQMB/tN36a5pgmMCm6le 2QE4LX3RjBb+9E9LVRQ46iXkc5Fg3hsAmfeWcJlWpWUwjhP92F0j0Vfc0Jlly9i8TZQ3 30eMKqPeyVXxO5nFyn9gBdFI6S1sWdrG3VUjV4qrOqKXFQ9X9U1RQXGHJOch9GyFjXiE /qhfHA/3pT9RD8zcOuGuR5YMnh/JyrQpT4NblgL/zOqqYUUNqRimp/hlGyXdkpb1ShO6 YqHg== X-Gm-Message-State: AKwxytfwmU5On6QkvqoPIksTFcDt+k6MJiS5Uz37OnYoRZ+yRmp1yP9b d/SW/11zZWuwtA8yfXtMdAcWow== 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 Cc: linux@armlinux.org.uk, arnd@arndb.de, Anders Roxell 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 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 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)