Received: by 10.223.176.5 with SMTP id f5csp3590094wra; Mon, 29 Jan 2018 15:49:58 -0800 (PST) X-Google-Smtp-Source: AH8x224d29UWZNYQ8KFC+dqKsYSnsMO3AuqrQh17BYdgfoZ7hnOeAvYikU6mls1S+CF9a82p25LH X-Received: by 2002:a17:902:b78b:: with SMTP id e11-v6mr2740599pls.85.1517269798892; Mon, 29 Jan 2018 15:49:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517269798; cv=none; d=google.com; s=arc-20160816; b=nVOe2Y1rDdjJjef9XQM/UTkJR/lqgTuUJOlRhl5OMQlpyQgkgqJgZmD3QMQwzhdWHb e9ctsYpQGaD2VNeQKkfJTwv4QQSaD0e2t9xasuWUQ0KUEF0rDz/mM66KcXVbFPjXduVF zuOX7ULwhqj2voPl7hMKxyu9baoDF5h5mp6BuCSANXKKI4BFgqIjn1QyeZnRgb/qJnci qGOyAKVLd0ii3n3WnmNfzustjzOH4u6zVXyPcYBgtSfKI2KhfGWNP8Oo7Nd9zbUqFn0m xaXDu+JQ3YJxyJ0Pk0ctHxS2430GkmUSBp3y6fxWaPvCO1Bb2LZq0WrwSSUZDQd5Ujxn pvNA== 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 w13si8142702pgq.199.2018.01.29.15.49.44; Mon, 29 Jan 2018 15:49:58 -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 S1752035AbeA2XtS (ORCPT + 99 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(+) 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) -- 2.11.0