Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1256806imm; Wed, 22 Aug 2018 23:15:09 -0700 (PDT) X-Google-Smtp-Source: AA+uWPyByL24hGJShhIfgKuXlxca6OS70qXf9kVJAQ0/CknEFvYeBTrh4x378LMHvtG4hdkDs2d8 X-Received: by 2002:a63:b64e:: with SMTP id v14-v6mr11570493pgt.437.1535004909669; Wed, 22 Aug 2018 23:15:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535004909; cv=none; d=google.com; s=arc-20160816; b=RQbkwWRga4ypdzb9Qe5Ln+mmdW849FEpxsm42BwWH/kJK7c7akLK8XOodXG4bufjCd IM+nb7b1U1lK4z1uDj23oqnAusTlhpAprQ9nrzojsEMwU5XOdFwJ5NX6GPzsoujkuaNs S+yVoBkYVRjTrN6SbskwH2uCESX/aXYwZDQDtlhw1R+lXRmhT6KJSibrq8vr2P9UySXs EqRsXyAZI+dRvsSqjoZ7msp3YuSN5amDnLRDrLKf7NpIlr/Zocmd66sT+U9aLE/PtpjD xyCl8nkkmXZmfDsRSZ/knwAmAYxqIQaHkDeeA2JA4G97eDV0uc4r4J/xkap+PpmSY2jJ 2EpA== 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=riuB4d/5d3OGWH1SObalpHkbYLLR6iOlM3RuyMgiThk=; b=rs4mnh541vgwFRcxmItSGOjjF+oE/rzW3JVspxXwRHXgO1hJBDFAiQgPqB0VUMvip7 48auUPTqm8kySWFzhGrtYbLq1Hj9WorGQelXOyN0JaQ5f806liUtcP9oeI1090jmfKcJ xjGROe4iL4cCJqxKdB4rwxyFDI6a7iSKkwfDnRf0tj9ig2chmIDh5zaEmRBj/xRlw9qT +zn2tNH5bzJfEA8SYJ71NYNobK0fYw4LVsBhqAyozfFROLcHFCiKrNnMAhclTmB28Drp idTKNLFvIIJNigmX/ayNHNCKj59vLbL9z4wCbX9jLMzoZmukacFRostf+vC/1wLAdtZG cIOw== 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 k126-v6si1421027pgc.34.2018.08.22.23.14.42; Wed, 22 Aug 2018 23:15:09 -0700 (PDT) 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 S1726198AbeHWJlA (ORCPT + 99 others); Thu, 23 Aug 2018 05:41:00 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:37596 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726075AbeHWJlA (ORCPT ); Thu, 23 Aug 2018 05:41:00 -0400 Received: from localhost (5355525A.cm-6-6b.dynamic.ziggo.nl [83.85.82.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 6543D49B; Thu, 23 Aug 2018 06:12:56 +0000 (UTC) Date: Thu, 23 Aug 2018 08:12:53 +0200 From: Greg Kroah-Hartman To: Roland Dreier Cc: LKML , stable@vger.kernel.org, ben.hutchings@codethink.co.uk, matt@codeblueprint.co.uk, bp@suse.de, Andrew Morton , Andy Lutomirski , luto@kernel.org, ard.biesheuvel@linaro.org, bp@alien8.de, brgerst@gmail.com, davej@codemonkey.org.uk, dvlasenk@redhat.com, "H. Peter Anvin" , Linus Torvalds , Peter Zijlstra , sai.praneeth.prakhya@intel.com, sds@tycho.nsa.gov, Thomas Gleixner , toshi.kani@hp.com, linux-efi@vger.kernel.org, Ingo Molnar , Yazen.Ghannam@amd.com Subject: Re: [PATCH 4.4 103/105] Revert "x86/mm/pat: Ensure cpa->pfn only contains page frame numbers" Message-ID: <20180823061253.GA8803@kroah.com> References: <20171215092305.994559179@linuxfoundation.org> <20171215092311.347628971@linuxfoundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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, Aug 22, 2018 at 05:48:32PM -0700, Roland Dreier wrote: > On Fri, Dec 15, 2017 at 2:20 AM Greg Kroah-Hartman > wrote: > > This reverts commit 87e2bd898d3a79a8c609f183180adac47879a2a4 which is > > commit edc3b9129cecd0f0857112136f5b8b1bc1d45918 upstream. > > > > Turns there was too many other issues with this patch to make it viable > > for the stable tree. > > This was sort of a long time ago, but does anyone remember why this > needed to be reverted from 4.4? I tried to dig through my old emails, but could not find anything, sorry. > The reason I ask is that without this, commit 02ff2769edbc / > "x86/mm/pat: Make set_memory_np() L1TF safe" in 4.4.148 is broken. > That patch has > > - set_pud(pud, __pud(cpa->pfn | _PAGE_PSE | > - massage_pgprot(pud_pgprot))); > + set_pud(pud, pud_mkhuge(pfn_pud(cpa->pfn, > + canon_pgprot(pud_pgprot)))); > > (and similarly for pmds) but pfn_pud() is operating on page frame > numbers and __pud(cpa->pfn... in the old code is operating on physical > addresses. > > This is bad enough that 4.4.148 and all newer 4.4.y crash early in > boot on some EFI systems that I have. Ugh, not good. > For now I am re-applying the "ensure cpa->pfn only contains page frame > numbers" patch, ported on top of 4.4.151. I can try to add it back and see what blows up, want me to attempt that? :) thanks, greg k-h