From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on archive.lwn.net X-Spam-Level: X-Spam-Status: No, score=-5.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=unavailable autolearn_force=no version=3.4.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by archive.lwn.net (Postfix) with ESMTP id C56797D87A for ; Fri, 21 Sep 2018 02:06:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388798AbeIUHwd (ORCPT ); Fri, 21 Sep 2018 03:52:33 -0400 Received: from mx1.redhat.com ([209.132.183.28]:40372 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388699AbeIUHwd (ORCPT ); Fri, 21 Sep 2018 03:52:33 -0400 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id BAFE3A6DF4; Fri, 21 Sep 2018 02:06:03 +0000 (UTC) Received: from MiWiFi-R3L-srv.redhat.com (ovpn-8-16.pek2.redhat.com [10.72.8.16]) by smtp.corp.redhat.com (Postfix) with ESMTP id 1BDBA600C8; Fri, 21 Sep 2018 02:05:59 +0000 (UTC) From: Baoquan He To: mingo@kernel.org, tglx@linutronix.de, hpa@zytor.com Cc: linux-kernel@vger.kernel.org, kirill.shutemov@linux.intel.com, x86@kernel.org, thgarnie@google.com, corbet@lwn.net, linux-doc@vger.kernel.org, peterz@infradead.org, Baoquan He Subject: [PATCH 1/3] x86/KASLR: Update document about KERNEL_IMAGE_SIZE Date: Fri, 21 Sep 2018 10:05:48 +0800 Message-Id: <20180921020550.13095-2-bhe@redhat.com> In-Reply-To: <20180921020550.13095-1-bhe@redhat.com> References: <20180921020550.13095-1-bhe@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.38]); Fri, 21 Sep 2018 02:06:03 +0000 (UTC) Sender: linux-doc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-doc@vger.kernel.org Currently CONFIG_RANDOMIZE_BASE=y is default set, update the relevant document about KERNEL_IMAGE_SIZE. Signed-off-by: Baoquan He --- arch/x86/include/asm/page_64_types.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/arch/x86/include/asm/page_64_types.h b/arch/x86/include/asm/page_64_types.h index 6afac386a434..2288ceabdb9c 100644 --- a/arch/x86/include/asm/page_64_types.h +++ b/arch/x86/include/asm/page_64_types.h @@ -61,9 +61,10 @@ /* * Kernel image size is limited to 1GiB due to the fixmap living in the * next 1GiB (see level2_kernel_pgt in arch/x86/kernel/head_64.S). Use - * 512MiB by default, leaving 1.5GiB for modules once the page tables - * are fully set up. If kernel ASLR is configured, it can extend the - * kernel page table mapping, reducing the size of the modules area. + * 1 GiB by default, leaving 1 GiB for modules once the page tables are + * fully set up. If kernel ASLR is not configured, it can shrink the + * kernel page table mapping to decrease the size of kernel area to 512 + * MiB, increase the size of the modules area to 1.5 GiB. */ #if defined(CONFIG_RANDOMIZE_BASE) #define KERNEL_IMAGE_SIZE (1024 * 1024 * 1024) -- 2.13.6