Received: by 10.223.176.5 with SMTP id f5csp1839771wra; Wed, 31 Jan 2018 12:25:17 -0800 (PST) X-Google-Smtp-Source: AH8x2265YHj5AT08GSr2J9akzpj9U8iTCOfs0cJMxVJP/dEVbW9O6z84a2eoAQIjHRTunkgdkQeK X-Received: by 2002:a17:902:9a04:: with SMTP id v4-v6mr28972266plp.252.1517430317305; Wed, 31 Jan 2018 12:25:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517430317; cv=none; d=google.com; s=arc-20160816; b=CtJ6zIsqtJbJjts8K723yulu05D0Asa7xMxCTBPzpe+DHiPauKFv6VsA2tb8//AHSW 5Bc2EubsSRw9x1cEC4ADVuZsOtyPs+SpaR8m0rM8k7yP60YaPgrqE9tolhgEHE6qHlZX JGmQ1bDbt6iFAcRLu1A/zD4l8QMBWHVnZ9Mle09BJMzyidkw9m3r0UvURgei6En3V5kd 48hSJ8NGi/49IOMDwUE33wa7j8m0S2sHtq7DGhNEvs6VKA75v/Il4hg4+UVeySUDe+/7 k/VoqNWOJFpZxTWD2o2M162QCWTv0U6qd8ZIkilCSIwnBfOXOlr4AcpkhshztCbZ0DtS 9LOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=BhnlLYKWbgiLg1LsGoMA4vlRYprvRLKAbfctErTA++c=; b=AMnXsXm7mxFcVYDsHiTWa/rLcvr5A2NwtCcCVPaXcfAhuNLSmhWK8GGDiLvwbmuRRB l+HF62TM4p78zef5qIk/aHPYeAdUcwUnnjIycz+k6u8kvQLWxoavcI1/Nhce1viERUl3 6TuYeO8CQTCijBbupoGdGGhWFfReZm68kf20UyZWzL9JMUligVTmDbshjqGE15T+0/xY jwvggzgj8+z9e4SxjhUUlLEn68zGdndgbEY5DGRRtYLkSZO/hcZZowvtd/AzYgmYQ0s7 0RkJHETFKh6AWCRTuMBLz+dHml45rpSYfP5tnrtAIwcN3jPwMKX1YV1gRB0vUZ9jJCKn TGcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=O50ahREK; 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 64si11524770pgd.45.2018.01.31.12.25.01; Wed, 31 Jan 2018 12:25:17 -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=O50ahREK; 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 S1752781AbeAaUYL (ORCPT + 99 others); Wed, 31 Jan 2018 15:24:11 -0500 Received: from mail-io0-f194.google.com ([209.85.223.194]:43474 "EHLO mail-io0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751988AbeAaUYK (ORCPT ); Wed, 31 Jan 2018 15:24:10 -0500 Received: by mail-io0-f194.google.com with SMTP id 72so16567739iom.10 for ; Wed, 31 Jan 2018 12:24:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=BhnlLYKWbgiLg1LsGoMA4vlRYprvRLKAbfctErTA++c=; b=O50ahREKGfNIV5Ws58/ewVto6kcAH9/NdPoaPyScv2SmSReAfYP0ruqSkYQeIKE79W pYu7sCFiThg8Y7OcR0390TMHH/1E4g12Q8wbRzXq0jJD8CDGO664H+YWcle4xuYsRhxk tOHoX2K0OoeYnDFfC0NDviuBpfl7AxXZU25bA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=BhnlLYKWbgiLg1LsGoMA4vlRYprvRLKAbfctErTA++c=; b=GvGT1mQOe21KOmRIFHLNzUn86FP/tGvDLcycb307fdc5zXs1yndgLVtM1DeF17sZt7 ck/KjCARjMNpRzXEWSDVk9+vi9EMpHr8xKgV8wmHj5jCLylzbyMDNLxMhZMX7+UeH06P UCgbuZSCqhDuH2kb01M2FtC+C3l6MD7sVhvsL1O5TzrDk3QTbSlvKT8oUnIaUVE5DOCj tZcpTHeDOKAGV/JmbgKbA3bLupvfbTjMzURhORvwI6mf2EwXcQIgT2LLsOvw+2jn+6VU G33GSfD27ME6taXVY29u7wrJUdrQwED/8CbKO7v/vINbExSDE04OREsomRcCmBS78SSJ 84oQ== X-Gm-Message-State: AKwxyterCcDtTMNgACYOeibO7RLrTWPYl+4Pxhb4RbEi4pXKxx48mG9s aZU7QL3twE6ffAMFsiI2nYUz42+UNfivkZ+v2KKViA== X-Received: by 10.107.25.195 with SMTP id 186mr22004890ioz.200.1517430249761; Wed, 31 Jan 2018 12:24:09 -0800 (PST) MIME-Version: 1.0 Received: by 10.107.112.13 with HTTP; Wed, 31 Jan 2018 12:24:09 -0800 (PST) In-Reply-To: <20180131201911.19253-1-anders.roxell@linaro.org> References: <20180129234900.11121-1-anders.roxell@linaro.org> <20180131201911.19253-1-anders.roxell@linaro.org> From: Ard Biesheuvel Date: Wed, 31 Jan 2018 20:24:09 +0000 Message-ID: Subject: Re: [PATCHv2] arch/arm/Kconfig: default ARM_MODULE_PLTS to 'y' To: Anders Roxell Cc: linux-arm-kernel , Linux Kernel Mailing List , Russell King , Arnd Bergmann Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 31 January 2018 at 20:19, Anders Roxell wrote: > 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 > -- > 2.11.0 > > > _______________________________________________ > linux-arm-kernel mailing list > linux-arm-kernel@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel