Received: by 10.223.185.116 with SMTP id b49csp688282wrg; Wed, 14 Feb 2018 05:34:08 -0800 (PST) X-Google-Smtp-Source: AH8x225gviuXQUR8Goq8S3GmJb8zLoKh3wqMSESmmCYevSSxlLLhO1flqviMWeGj9FhlBxhPNr4b X-Received: by 10.99.120.199 with SMTP id t190mr2622458pgc.72.1518615248231; Wed, 14 Feb 2018 05:34:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518615248; cv=none; d=google.com; s=arc-20160816; b=Q+qkd57HKLt0gpwYAdaLdCObmLfr5lHEPf3cAgk2z2NbtREx517MfCo+8h8zR10CBG OaxS434aGh+IxUGgjWVjwa3HIeYtWNabCUA6CmRgVM0HYt/rmdOf/aZRsbKt0Jp+wi/Y Jc7HqrmIIsVpGDldVaMkdYfuqaOvxd9tc/Y7+pGxNc4Gfty4zQ0FsCGZTB5cmXt4upsI ris7xQWdOHzczJPVvbP+WIHkFvGfNQRwa2+0yLQZXZa/NaUxFD8T+ACca4RxEmUWY6st I8rP8vHGm4Fkpf4dm0uO1zV964jfuB5UYGJRM5VFBQe8vm84cumX8+IGKqId2XycFpHn eDig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=fPfG5r9mTHHyQ75f4rlWFs3PkaSVdaadG1++xcm/eA4=; b=jNhQyD+nztjMHLyllwm4IHGX51bBR1NvrXTHrTQI4KOHKz6ONUssKcuAGSwaZJ7pq1 PHtoIGXAX2YHE4r4cFDVQFRFM3dgx0V2yZ4FW5vZqM8JsKONn5Z7iryNgdzwPLgNNMK5 vft0dSM1NNjuukWzY/5P44EI8sDB4i4mKpKHRCpRPdOsN4LWbVB2dDVUO7GbNiFGXZfF crheZiQuCocO2IKKZQihZss9JROHfnM7mL9c+7LSpsj6Wj7FcxZUIP5QXnqoNAiqYrej c88U3e9n7kVZG880Z7dRNPWTewVZXn1Y/8yGI5NSPFqdA3ik3c7QyXohrKt/hJvCp1d8 9yIQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f30-v6si1197664plf.654.2018.02.14.05.33.53; Wed, 14 Feb 2018 05:34:08 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030302AbeBNNco (ORCPT + 99 others); Wed, 14 Feb 2018 08:32:44 -0500 Received: from mga04.intel.com ([192.55.52.120]:55549 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030198AbeBNNcn (ORCPT ); Wed, 14 Feb 2018 08:32:43 -0500 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 14 Feb 2018 05:32:42 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.46,512,1511856000"; d="scan'208";a="18053995" Received: from black.fi.intel.com ([10.237.72.28]) by orsmga008.jf.intel.com with ESMTP; 14 Feb 2018 05:32:39 -0800 Received: by black.fi.intel.com (Postfix, from userid 1000) id E9535C3B; Wed, 14 Feb 2018 15:32:38 +0200 (EET) Date: Wed, 14 Feb 2018 16:32:38 +0300 From: "Kirill A. Shutemov" To: Ingo Molnar , x86@kernel.org, Thomas Gleixner , "H. Peter Anvin" , g@black.fi.intel.com Cc: Linus Torvalds , Andy Lutomirski , Borislav Petkov , Andi Kleen , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 5/9] x86/mm: Make LDT_BASE_ADDR dynamic Message-ID: <20180214133238.cliqsqp5rdggjzqy@black.fi.intel.com> References: <20180214111656.88514-1-kirill.shutemov@linux.intel.com> <20180214111656.88514-6-kirill.shutemov@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180214111656.88514-6-kirill.shutemov@linux.intel.com> User-Agent: NeoMutt/20170714-126-deb55f (1.8.3) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 14, 2018 at 11:16:52AM +0000, Kirill A. Shutemov wrote: > LDT_BASE_ADDR has different value in 4- and 5-level paging > configurations. > > We need to make it dynamic in preparation for boot-time switching > between paging modes. > > Signed-off-by: Kirill A. Shutemov I've just realized that the patch that I'm splitting has hunk that belong here. Could you fold it in? Sorry for this. diff --git a/arch/x86/mm/dump_pagetables.c b/arch/x86/mm/dump_pagetables.c index 9efee6f464ab..a32f0621d664 100644 --- a/arch/x86/mm/dump_pagetables.c +++ b/arch/x86/mm/dump_pagetables.c @@ -579,6 +579,9 @@ static int __init pt_dump_init(void) address_markers[KASAN_SHADOW_START_NR].start_address = KASAN_SHADOW_START; address_markers[KASAN_SHADOW_END_NR].start_address = KASAN_SHADOW_END; #endif +#ifdef CONFIG_MODIFY_LDT_SYSCALL + address_markers[LDT_NR].start_address = LDT_BASE_ADDR; +#endif #endif #ifdef CONFIG_X86_32 address_markers[VMALLOC_START_NR].start_address = VMALLOC_START; -- Kirill A. Shutemov