Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1901527ybl; Sat, 14 Dec 2019 02:12:51 -0800 (PST) X-Google-Smtp-Source: APXvYqw3q6j2KebEAjAOWxfX5Y3fkLVdn4ZnUXDoeT2ybxPjFBDpYwG/YixB4bbUmaFnd2ydYhHg X-Received: by 2002:a9d:bcb:: with SMTP id 69mr20195597oth.290.1576318370927; Sat, 14 Dec 2019 02:12:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576318370; cv=none; d=google.com; s=arc-20160816; b=pvCIZ77AdQdVMScgC6w+PLabIiHodvwKgqocLAV6OzeU6aKiMd1qU1626GOp/1IneY T3iCGvUsUS8zTAMuf0rmFbP7m0S049gYRvN0/TUAMMtjvN/J7u9gjTqK+Z0FNFY0Wop4 t6bAlrxPVuS4X2HaUMJowHDR0kRDn7xtDya4fTmwX3aRdinyTlOdRoCpypG1JsD/Eb7F AZyHHEOLaLpRF57U92ftFZOOxkfn3UQqBkbGV38P6Eu3AFdqrvtaKBDt/GdOx/K8SBKN EOWJX+HTDzy6lkDkWRN3/tU9rv94UThWoSp1wzK+Nii3fv+EgTKRqD+txKLPqRrYskyg 9/GQ== 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:dkim-signature; bh=M7DjxLpVUDmrMfYFPEAv8TSiRH6FhuBM4F+xzNTmV2w=; b=Jgdszw480cNFSvyVl2pj91pnVEFRnSJgS1h0RHvLGjR2IGGNWckDb1747QA43axtBP bOPJX4/6OmmWjzjYH0p2VXfEbf2Cw95E5/MI+paPxjEJKll27DeI3zDveaJxlRJ74Js8 UHPLis68Yw6990BYGJY2Vuov7kkNWldBooSFrO8ktIfcOMgYv0U1tnIQnbPDwYVyzz8M +HxeIXBkEZvhZ3W1701olV30Ax2VvGPHOcjC+DuzAA8J0g7XHlEHA635wGXgS810yywJ pVDMfaAmjq68KOFMbXRSRg5bCjT+WrbEwUvhSUQPmNm/ZpjLwK+lAaRr1R81UkKKaud2 XQQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=hCx6Hcds; 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i2si6340472otc.130.2019.12.14.02.12.13; Sat, 14 Dec 2019 02:12:50 -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=@redhat.com header.s=mimecast20190719 header.b=hCx6Hcds; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725975AbfLNKHO (ORCPT + 99 others); Sat, 14 Dec 2019 05:07:14 -0500 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:48406 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725862AbfLNKHN (ORCPT ); Sat, 14 Dec 2019 05:07:13 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1576318032; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=M7DjxLpVUDmrMfYFPEAv8TSiRH6FhuBM4F+xzNTmV2w=; b=hCx6HcdsyaTF800VQphvj+AUcMTp4ViJCe58rsIxOwWoAOfiZA0v0M2bLjHWYyMuecSCWh TPrP9g1DH1DjgLqsxoGKQfB9ZziLoiG0/INljDcejR2O6qQRu7daTvd2Ij/m5RCHBZZLs7 G8ieVIT9HA/5c8FWYoLMR+qQw4rZRFo= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-143-VQmF1x_SMJafxx7yLz7sDg-1; Sat, 14 Dec 2019 05:07:08 -0500 X-MC-Unique: VQmF1x_SMJafxx7yLz7sDg-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 7E5761005512; Sat, 14 Dec 2019 10:07:06 +0000 (UTC) Received: from localhost (ovpn-12-17.pek2.redhat.com [10.72.12.17]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 37CB219C4F; Sat, 14 Dec 2019 10:07:02 +0000 (UTC) Date: Sat, 14 Dec 2019 18:07:00 +0800 From: Baoquan He To: Borislav Petkov , Masayoshi Mizuma Cc: Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , x86@kernel.org, Masayoshi Mizuma , linux-kernel@vger.kernel.org Subject: Re: [PATCH v5 4/4] x86/mm/KASLR: Adjust the padding size for the direct mapping. Message-ID: <20191214100700.GK28917@MiWiFi-R3L-srv> References: <20191115144917.28469-1-msys.mizuma@gmail.com> <20191115144917.28469-5-msys.mizuma@gmail.com> <20191212201916.GL4991@zn.tnic> <20191213132850.GG28917@MiWiFi-R3L-srv> <20191213141543.GA25899@zn.tnic> <20191213145448.GH28917@MiWiFi-R3L-srv> <20191213163818.GB25899@zn.tnic> <20191213232928.GI28917@MiWiFi-R3L-srv> <20191214071329.GA28635@zn.tnic> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191214071329.GA28635@zn.tnic> User-Agent: Mutt/1.10.1 (2018-07-13) X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/14/19 at 08:13am, Borislav Petkov wrote: > On Sat, Dec 14, 2019 at 07:29:28AM +0800, Baoquan He wrote: > > OK, you mean parsing SRAT again before kernel_randomize_memory(). I > > think this is what Masa made this patchset to avoid. Then we will have > > three times SRAT parsing. > > Can the SRAT parsing be *moved* up so that it is done before > kernel_randomize_memory() ? > > So that it doesn't happen 3 times and acpi_numa_init() can simply use > the already parsed results. Not very sure, It could be doable. Maybe Masa can have a try.