From patchwork Sun Nov 22 07:08:55 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "YoungJun.park" X-Patchwork-Id: 11923787 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=-13.7 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT 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 28FFDC5519F for ; Sun, 22 Nov 2020 07:11:11 +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 B78392078E for ; Sun, 22 Nov 2020 07:11:10 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="rxc9elTv"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="AoG96uhp" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B78392078E 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: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=TDi7A8cJDpKk9VFS2xfswfxgrJ5c3P55ydcejlKc/To=; b=rxc9elTvzSeQquYQfx68CnD10L 7INvJj0i4vuN3AkwlQUGdunXtWwi5k2ZuAoyEqAjrMPGpuF3flFdYrLpOz47TATCmysOYnrw2qKYR vJxTGIv+a/n4sEOGHStNVDfW5iZ0huYFqWxdyb9XQelJuKtz6YIatN2PCfKYLfISMrFLayhM1wf9W sYBgadCGFpctl+NT9Zsky8N16+e7M85RqpSGTQ7mfysCfAcsWeGWRk9Ajop2ayIPHdkkN5V6ESDt7 p5R3ovM4FmEoYf1+pkMwwp1Cw+d/A0NqsfpPmP7gkMXpmpUebJgbNY4N/GRuqYspSQ0CclUVUONtE sEzKht5A==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kgjUk-0007Hl-T0; Sun, 22 Nov 2020 07:09:10 +0000 Received: from mail-pf1-x442.google.com ([2607:f8b0:4864:20::442]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kgjUh-0007HS-I1 for linux-arm-kernel@lists.infradead.org; Sun, 22 Nov 2020 07:09:08 +0000 Received: by mail-pf1-x442.google.com with SMTP id q5so11934787pfk.6 for ; Sat, 21 Nov 2020 23:09:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=tIWLDLxgHHbMnYBlFKmQF404/X4q6NlxjtbUaFoy66M=; b=AoG96uhpVszrOhyX/3vSp80TU6YkMJ462ehNRT2ymhqlC1P5Cr9mOF5xJfhdo9Z8E0 dQtrKF5/7eXi7SJ1dVSu3+PZOC/V4W86NAC4woK6eviZyMXUSTy26DF21ShwtP8vqWE+ otEjoaa7a7YCSC4C89eZq0XKkUmIUh04Z5NojZ26tdOXVEQFcX5lEWuMfBi+cg1bQaLJ WPQHgyt7KnGg3sWWGRadRBRMdVVVPTcql3JpSOVXxyALyDTv2trI70BcbwrXdQCqOxUW 38bBzbuVE1XoSi5xs7HyZCO4fGPfOSqy5W00LVGOzFfx/sGFy+tCTkHsACZ0VOWkn/FW 3OdQ== 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=tIWLDLxgHHbMnYBlFKmQF404/X4q6NlxjtbUaFoy66M=; b=LPzxRQUMYTcUaAhgau4jsswIfq+ffIBp3awMaLV0aKJzvnuKX5r2YQhuYt3e6h0O12 wfQRKkhXbDEjVJpOHfIf/UDKkG4ZOmUDAjRe/2CqrRtUzi23iYoJRYqHinToIqwZkPXt ihE+6uOcPieS1O9TNDArMheWPP/yggxeh2QCZgHRk7nx5RYwXwUP3Z1dnxSXUXSgzS+3 91hNKym3Hcv7XLtUaSaub2ye+5ltb6S7CFn+uh45CLE27EzOqt2bkYNPBj4U1iJF2vyF 2kxuECRcSqwX+RtfYYq6/fycL40cguW8JVPXlbzNOxdFbZz3eM6uF4a/ibuNY9Sbh/bw 2kHg== X-Gm-Message-State: AOAM530uzExPw/FDHQI6jfIUIFecKLc7Lm7v9yZYR6gSM3pawmocpJbf mTc2MsQrz5aBTKKs79OEfLQ= X-Google-Smtp-Source: ABdhPJwd3pG7kY7Qsip+S8FqdJvhv0SmE7AN5Gi+r01wFUA2LKPe08BYwN4cVJmqifnhggYpMMRovQ== X-Received: by 2002:a17:90a:62c3:: with SMTP id k3mr5830340pjs.24.1606028943711; Sat, 21 Nov 2020 23:09:03 -0800 (PST) Received: from ubuntu.localdomain ([220.116.27.194]) by smtp.gmail.com with ESMTPSA id w22sm7557598pge.25.2020.11.21.23.09.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 21 Nov 2020 23:09:03 -0800 (PST) From: youngjun To: Will Deacon , Catalin Marinas Subject: [PATCH] arm64: update RANDOMIZE_MODULE_REGION_FULL config description Date: Sat, 21 Nov 2020 23:08:55 -0800 Message-Id: <20201122070855.10506-1-her0gyugyu@gmail.com> X-Mailer: git-send-email 2.17.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201122_020907_632916_2244C5DF X-CRM114-Status: GOOD ( 13.98 ) 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: youngjun , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org module randomization is reduced. (range to 2 GB) RANDOMIZE_MODULE_REGION_FULL config description is not updated. update RANDOMIZE_MODULE_REGION_FULL config description. Signed-off-by: youngjun --- arch/arm64/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 1515f6f153a0..0da551828a59 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -1804,11 +1804,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