From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.5 required=3.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 83053C388F7 for ; Sat, 7 Nov 2020 14:31:57 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 15EE3207C3 for ; Sat, 7 Nov 2020 14:31:57 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="T5bALC0T"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="MOG9SjST" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 15EE3207C3 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-ID:Subject:To:Date: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=HNeLhAnLdHB6ZrewMgLEfMDcClXetjLuwulHd2O2wIM=; b=T5bALC0TMJNaAhvY8OPAxSrigq puVlvAiiyMz7+yAyv8X8WOuie/JG/QCxCcbapBvOOO8ZyaC5swxZvaDenwLyqN3LB0ZYqnB7qJ2jS 8mKuO+jF4XnztE7kZFQHufoXZIXOmgPl8ijBYNMTgzEastoLwxUZvhm34s8qkMHUCYyRDb1kxH3Ot Xqd1mju4zcJWs1PmyVQLaUCCJR8y1KBO6dXh4OifH8acQrwodhr9W+tkaYKvsKN1N5w/1uNryE0w8 7lKxWG6l9UZHnvmjFA23PwN5lQap1/3wfrL8GpKca0IXgyR3HlksJ7a1SEIv19p4wEdjc8B2uiutM aMSVgzxw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kbPFW-0000YT-3l; Sat, 07 Nov 2020 14:31:26 +0000 Received: from mail-wm1-x341.google.com ([2a00:1450:4864:20::341]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kbPFU-0000Y4-P7 for linux-arm-kernel@lists.infradead.org; Sat, 07 Nov 2020 14:31:25 +0000 Received: by mail-wm1-x341.google.com with SMTP id 10so3351644wml.2 for ; Sat, 07 Nov 2020 06:31:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:date:to:cc:subject:message-id:mime-version:content-disposition; bh=cOKbteCpi5Q6uBi8D9m+e6XFBoCTjPj5CgvksRZRE44=; b=MOG9SjST05NAXo/n/yi5X6mBvpWDJrHCmeXRZI9n0k5H+IlOvH7cb7NAFa7jpQ9Dh3 DYBCR1NU80Eq8z30wRgbbBNlKP5wqG4iiIWCnTCCl8MTjl3HEEe+8IzO1KLJIRQquzUj KCDV4QsdMRlvOcKD72aU87/ys+Le+1OHcRuI5BYfkgYr13g8kCrbI0m3BZKeCdPXyOoI TCiBa8y2wX9BU2X83QubFz56r+iGyWXspvdrZTQYeiqzCzJusg+mMTFpYr16xaj1z+A1 umHzlUfqQuNkdp1LNlt2a2OfVzrPVnIJeYbVtO3AlfNlDf2Zzor6XVPzrVX9jFvBU/0d zRmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:message-id:mime-version :content-disposition; bh=cOKbteCpi5Q6uBi8D9m+e6XFBoCTjPj5CgvksRZRE44=; b=gXFFXfLTmR98fRRMWkNfLf2tWhjL9GYOBdUtK+GFWK7SC15N2XEN1o6/gUQ7gp9FsE 75/aSiOloZL+Flzft/Er5hxbciekPhuMDOW27c+Ub/T8Hx1Jaj6hDgaVJXe/HXlNJ2TG df9aWEvNqcfHB/XA+DEakObR+iXsQrz3GInEzsVr+MnYSDtuEVDEeSEjQdxXvran44gr FYCSB9uXCCO9h2x9TqidfhzTy88DYZ94+Jhs+lKpYD2tM2k2uC9h4QYvwTpxx4rBCY7R t2FMjoq24zrKV6uACz0ctGn6fCRf8+kM5U/60w0VexDFpj7n961kFSUzukWAlzjQZjX3 JHMQ== X-Gm-Message-State: AOAM532IOH4cnrTxXypD5JyaKSKpBMUa1myaW9kh0lfY7tqyC+8NuYSk q2D24BrA1NCdbVyT47XtAzY= X-Google-Smtp-Source: ABdhPJzYVmvHdtfIV5PM2Meni/7gBbHOgsR7BLLdb3n8h26Sqfc6i9S6eZ9i4c4Y1MAxGskZq9vq7A== X-Received: by 2002:a1c:3c4:: with SMTP id 187mr4999749wmd.14.1604759482370; Sat, 07 Nov 2020 06:31:22 -0800 (PST) Received: from Charon.home ([2a00:23c7:5602:c100:5d4a:753f:cdca:8b92]) by smtp.gmail.com with ESMTPSA id u81sm7175319wmb.27.2020.11.07.06.31.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 07 Nov 2020 06:31:21 -0800 (PST) From: Ross Meikleham X-Google-Original-From: Ross Meikleham Date: Sat, 7 Nov 2020 14:31:19 +0000 To: catalin.marinas@arm.com Subject: [PATCH] arm64: Kconfig RANDOMIZE_MODULE_REGION_FULL correction Message-ID: <20201107143119.GA98510@Charon.home> MIME-Version: 1.0 Content-Disposition: inline X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201107_093124_851610_5253ACE4 X-CRM114-Status: GOOD ( 14.09 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: trivial@kernel.org, will@kernel.org, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org In the 5.1.5 Kernel RANDOMIZE_MODULE_REGION_FULL was a 4GB window, however this was changed to 2GB from 5.1.6 (see /arch/arm64/kernel/kaslr.c). This updates the config description for RANDOMIZE_MODULE_REGION_FULL in /arch/arm64/Kconfig to reflect this. Signed-off-by: Ross Meikleham --- arch/arm64/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 6d232837cbee..b8fd2c590057 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -1782,11 +1782,11 @@ config RANDOMIZE_BASE If unsure, say N. config RANDOMIZE_MODULE_REGION_FULL - bool "Randomize the module region over a 4 GB range" + bool "Randomize the module region over a 2 GB range" depends on RANDOMIZE_BASE default y help - Randomizes the location of the module region inside a 4 GB window + Randomizes the location of the module region inside a 2 GB window covering the core kernel. This way, it is less likely for modules to leak information about the location of core kernel data structures but it does imply that function calls between modules and the core -- 2.18.0 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel