Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp391380imj; Thu, 7 Feb 2019 06:02:32 -0800 (PST) X-Google-Smtp-Source: AHgI3IZqDXrrf3Kr+RqOlGz09imIklOqGCF5L2oeeMs54flZlTLItpkgyfWOy/ngNeW3K4m4urJq X-Received: by 2002:a62:1212:: with SMTP id a18mr16716567pfj.217.1549548152789; Thu, 07 Feb 2019 06:02:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549548152; cv=none; d=google.com; s=arc-20160816; b=QV+AKu+8Ru4wynNqBGGwZrikuqM9q0zkSU91sHoDOcPUrAjA7dORCfTjrUOnzIpDBc 7DkMX6sn57Z/89tnqV3UnY7seR3E8V94e7ICGJU0eRCh9bvLaWo2SPe31ROjuBgDYqsR mFM4j7Zki14U5InhXTEUetHAnychNJ0Rn/5dZDAFIimXujm2jXkmkq+Ls+3sJ23cHY0d JKXCdxf/XHQUPji2E2OtYSCUWUp4kFuJmEdtjE/Pycs4mnYbc9fEnQDfau8WHmE3OSEq yP33duy2p3s/XqTKpKE0Pxf8Q2lymdeMRHZnC+pead6nt53fwzLTGeAjI62bRxfoTrER 4MFA== 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=AewIT6yEpMwwuUCQuV/zuqKv5UYFpbkS2e0N8nJZ44s=; b=aCCWXLQiHFvAw6BL5MQJb9Dj305Cu6oa4/QObShC+LgH0BKzXDxLSJKPOHPEKc9hE2 +okcml8Gatb0iPsd6W2nebNWtldnJmv4ZmUvjexo2AQ++bfjbrWiFu73q4dy+mCKRJ8d cbzeAknHElowRoqrRM9Ru7NlQUq1FolfveKAMNAVPunJ4BoY0AHtk78M5gWNmhPSxtZj hFQXJxozFoErdLEbVOwMQIajwefGy49peIZ5YqyDTrkmmJiB2GjFmGWJxb/kDQROt8dy Lo2dduIeczFEL043Ln+em29+jYxh6PGmDRLMtiesrogfdKyVmVftBAZAWtwiXxfxuy0T qtEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=3mJF1Fut; 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 v11si9159484plp.85.2019.02.07.06.02.16; Thu, 07 Feb 2019 06:02:32 -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=@infradead.org header.s=merlin.20170209 header.b=3mJF1Fut; 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 S1727057AbfBGOBu (ORCPT + 99 others); Thu, 7 Feb 2019 09:01:50 -0500 Received: from merlin.infradead.org ([205.233.59.134]:42238 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726732AbfBGOBu (ORCPT ); Thu, 7 Feb 2019 09:01:50 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=AewIT6yEpMwwuUCQuV/zuqKv5UYFpbkS2e0N8nJZ44s=; b=3mJF1FutYd9OY/Ml674OVBDOq E6FItD0VTbHjEqBsNg9qDvAcRpR0Rray5Mjzdt77eevfqCOrbjGu2R26Y54p1DlMWHGEK/SBCP5Er EWoB4wNO20WSw9ZrdOUbGZqUgNb90SqwsaEjsSvXG3I2xTVSkvB2Xh43ZzRfskZc4a/K2F8ZUgCl0 4MBRLnw86cdxahKO9E7CI22CAHfADNMjYQoR7rlw2YBBheOpwq3g/esmfuEEktkn7X7EYj2FcAycO CDP/GXZyoRC3TtVTXg8Zhl0Ip2r6XteQg3ucVoyQRkqZC58Txys1XUGWnj8LxN/WGbbM42IlziYEv 2/NAxhZGg==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1grkFA-00050O-W6; Thu, 07 Feb 2019 14:01:33 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id BF944201A1B24; Thu, 7 Feb 2019 15:01:31 +0100 (CET) Date: Thu, 7 Feb 2019 15:01:31 +0100 From: Peter Zijlstra To: Linus Torvalds Cc: Dan Williams , "Luck, Tony" , Ingo Molnar , Linux List Kernel Mailing , Dave Hansen , Andy Lutomirski , Borislav Petkov , Thomas Gleixner , Rik van Riel Subject: Re: [GIT PULL] x86/mm changes for v4.21 Message-ID: <20190207140131.GB32477@hirez.programming.kicks-ass.net> References: <20181224231106.GA27438@gmail.com> <20190207001737.GA32096@agluck-desk> <20190207101846.GB32511@hirez.programming.kicks-ass.net> 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 Thu, Feb 07, 2019 at 11:50:52AM +0000, Linus Torvalds wrote: > If you re-generate the canonical address in __cpa_addr(), now we'll > actually have the real virtual address around for a lot of code-paths > (pte lookup etc), which was what people wanted to avoid in the first > place. Note that it's an 'unsigned long' address, not an actual pointer, and (afaict) non of the code paths use it as a pointer. This _should_ avoid the CPU from following said pointer and doing a deref on it. But yes, I didn't go all the way down, maybe I missed some.