Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp4848297ybf; Wed, 4 Mar 2020 11:55:24 -0800 (PST) X-Google-Smtp-Source: ADFU+vvUZ9Eg3Zkprpe1GqX623m9GjjXypquXXsx8yMUMqCcrHyCV1tuaqAXUnD6hmTwrfqBXWaS X-Received: by 2002:a05:6830:1284:: with SMTP id z4mr3567783otp.291.1583351724030; Wed, 04 Mar 2020 11:55:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583351724; cv=none; d=google.com; s=arc-20160816; b=Rc/DkqtJFRPFdJF9V/ZVYhPjDO4YsdON/EAVTv+tDB4hyUJF/dGkdYbL454IneKTX0 634cEM5GlH87kiFzxt/RB4KixIS//nOQWYSaIbU3TuQCgPbEhrOy6vXSOSNRyN2hh+I8 VL+ooYQaI3ww012PDDCaxNQWtBqkWVlLLsqE82wenWxN+p7+efvidpXHK0Ds2S+OfzJK X51VaEE6ueTokkapTfUhWa0+Adld6HifW2hQUyKSSkzMJB2Kz8+6O8zQqNqe5ZpV/zM0 k3puebKFD3ixp7/maBgfQh2SUrIKFE+rO+a0SK+kHp1qY8ani+67qvrjhiVammq7ootv WMWQ== 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:date:from:dkim-signature; bh=Der7PfXctUbuhZwpZLRkccXATBZ5Hd74PYiD6oH1JBo=; b=KbQTVcD2UldgH8CHFRyyLNaRPbBxpf016XfuZ01jQyuaywabPtaOEYHwMYmC/ISc8L My+ahsUc9b4kTGMpjUB/WdPHl1QpG8oEqwzgc5JNy58cACytLsJCPbzAb9/6Q4go2AbU VCcW8TVy6fONQvo0sMXY66seJ6fGi0g4MG4Fa2WGUSy1QkTZ3UiohYmJRdefkD3R9zKN WLPt4RzbdcAJKydQPSsTYVGi3f1SV7iY810dcY1yqgDNShLTJoSO+omt73eogYC4VQwW xTLta8Hh4G5uQ1pf7MrkEsMRI6DmLljXKeOuphPhKj5pw3AFaAkdYffxKaU1yaEHkchu /DQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=J31KVlv2; 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 j10si1995135otr.268.2020.03.04.11.55.11; Wed, 04 Mar 2020 11:55:24 -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=fail header.i=@gmail.com header.s=20161025 header.b=J31KVlv2; 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 S1729499AbgCDTyv (ORCPT + 99 others); Wed, 4 Mar 2020 14:54:51 -0500 Received: from mail-qt1-f195.google.com ([209.85.160.195]:36924 "EHLO mail-qt1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728955AbgCDTyu (ORCPT ); Wed, 4 Mar 2020 14:54:50 -0500 Received: by mail-qt1-f195.google.com with SMTP id j34so2353263qtk.4; Wed, 04 Mar 2020 11:54:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:date:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=Der7PfXctUbuhZwpZLRkccXATBZ5Hd74PYiD6oH1JBo=; b=J31KVlv2/mnOly6BumvfB1PwUnPby40m1/mH3vfkoye8+kHF1mkn5M4kr0DS/ubJMg Psc6JFuy0Q0Gapmi4OQdJ35AIsccbBXEOeuTELpB8s+qof3PdpXcDPpum9QJBoeVxLhg NIl97gLln6JG7Uh9XMQIF00U9wcxSP1NOiMHqW/vHpD9HjKljiNAyJ+SAUtYg+oWWbJS Zw0sH36vR6Qs/wBJ+13sOJkxBLKcBSuYvpt4o1z63/iBL7Vz+cVL/awPakwslhID/fWf zF1sFWsMMtX/ul3iU68H8ZVxdTtzpRI5IsEKKoV2hTSTUbl5nzAL2+1P/o+dC9fW+3xf syDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:date:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=Der7PfXctUbuhZwpZLRkccXATBZ5Hd74PYiD6oH1JBo=; b=PDQoBZZoJmVQ8CToSnG1w11wha/R7XvDQQNR6f6eJUY3DzSSi1D1Hu6mXbY/H30RKE 79mA+QXeFWp3G69JwuRymIsCAiO2Cm4bTquDukpECDAH2BigmHkh9h8q10Vry2O71GJl aSpdYO9tyqUe9Gr6IQJVn+y39nG0mkvD/SbWu25J7OqjMwl1t/pEitynOsgUD1bl7mj9 1PeanOZ1Wi7P8NffifjiZJ52QvuFzcRJ3caxlJRuN/R50OXFS3zMx4wudqJcn+ojmbWq Iyi6+DWGoI/AKiq/zBgZMvcERxJPRP/uiCem7je87bNIoAlprAG3+p0K6vNiE2TL9qxN TyHw== X-Gm-Message-State: ANhLgQ0lcW5PoPZ0VKYgIMtkxccYvG9BmMyu9Ig7SpPjbhRTCkCBECYO g8Pcdp6DmiBkDQtv4xcklWI= X-Received: by 2002:ac8:c4f:: with SMTP id l15mr3990412qti.177.1583351689795; Wed, 04 Mar 2020 11:54:49 -0800 (PST) Received: from rani.riverdale.lan ([2001:470:1f07:5f3::b55f]) by smtp.gmail.com with ESMTPSA id p18sm14352924qkp.47.2020.03.04.11.54.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Mar 2020 11:54:49 -0800 (PST) From: Arvind Sankar X-Google-Original-From: Arvind Sankar Date: Wed, 4 Mar 2020 14:54:47 -0500 To: Ard Biesheuvel Cc: Arvind Sankar , Dave Hansen , Andy Lutomirski , Peter Zijlstra , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , the arch/x86 maintainers , linux-efi , Linux Kernel Mailing List Subject: Re: [PATCH 1/4] x86/mm/pat: Handle no-GBPAGES case correctly in populate_pud Message-ID: <20200304195447.GA295419@rani.riverdale.lan> References: <20200303205445.3965393-1-nivedita@alum.mit.edu> <20200303205445.3965393-2-nivedita@alum.mit.edu> <20200304154908.GB998825@rani.riverdale.lan> <20200304185042.GA281042@rani.riverdale.lan> <20200304191053.GA291311@rani.riverdale.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 04, 2020 at 08:22:36PM +0100, Ard Biesheuvel wrote: > The wrong one, obviously :-) > > With Haswell, I get [before] > > [ 0.368541] 0x0000000000900000-0x0000000000a00000 1M > RW NX pte > [ 0.369118] 0x0000000000a00000-0x0000000080000000 2038M > RW PSE NX pmd > [ 0.369592] 0x0000000080000000-0x00000000b9800000 920M > pmd > [ 0.370177] 0x00000000b9800000-0x00000000b9856000 344K > pte ^^ so this is showing the region that didn't get mapped, so you did reproduce the issue. > [ 0.370649] 0x00000000b9856000-0x00000000b9a00000 1704K > RW NX pte > [ 0.371066] 0x00000000b9a00000-0x00000000baa00000 16M > ro PSE x pmd > > and after > > [ 0.349577] 0x0000000000a00000-0x0000000080000000 2038M > RW PSE NX pmd > [ 0.350049] 0x0000000080000000-0x00000000b9800000 920M > pmd > [ 0.350514] 0x00000000b9800000-0x00000000b9856000 344K > pte ^^ but it didn't get fixed :( This region should now be mapped properly with flags RW/NX. > [ 0.351013] 0x00000000b9856000-0x00000000b9a00000 1704K > RW NX pte > > so i'm still doing something wrong, I think? You're *sure* the after is actually after? There seems to be no change at all, the patch should have had some effect.