Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp3209222imm; Fri, 24 Aug 2018 12:34:04 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYu9ka8IWAIul5v+G0Na9mkWLO5C7jP+y5Q/mJiNX5SD/hTUgiILK4qIcoT1pQXMswn3Rj0 X-Received: by 2002:a65:4cc7:: with SMTP id n7-v6mr2861265pgt.451.1535139244741; Fri, 24 Aug 2018 12:34:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535139244; cv=none; d=google.com; s=arc-20160816; b=DmljxhzOHWnMZ7e2sjMeTUD+OebiiumXjWTLo1pkEnpFuis1Lnj5GbbdoOaxl0wK+4 BBOiUadwHCYy6HETgOWZJ6G2UYmnhT4AJHPZhRYOF1PFwXZkSSQ0/0D+DhMT4R9EDGpO OmSchnFMSX9MSep9fYGjLQopZXVhEg+99Y6rG1AyXJKqE+J//wnFTzY540x/p39Lo5LB FhQjm1HFmm5iHLpJ9j5UU8AttRBTtWZQE2VJoE7t46E64gdLvvsA4lWlCzBeK6hBqWoP mz7xBQGpbXfGAr38MZnvxthW8b+jWaC1BKx8bqsnYqRHda4WQDhfh+O+1g3wpmjd+Bhv YP7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature :arc-authentication-results; bh=UTGa7sDU/z28MVac97/J+iDgWoqaFqtnUCGAtC6fPGk=; b=vk8wdZar1WfDsW0eAs6GZvqnguzRgXLsdUCmRxspcLTOgDhcEnDUuARt2lfu2pUNF5 oVRyz6MGGE4Jx1W3s/0kL8JvHn5uln8oK5eSpwL8AwlgKvIlCH+1CXpMJQcGTyHX51ij NLPLIwulGJTSU6lltYoiwvf0xdUZgmyODKeplNZ7iBYZB5Mz1+v0e+axBdFqGQn+2WXC 4pLxrXSsX8sDzmkgyDC1OAwW4NgeP3s4N9MG5EOlr/HAHY+AtHDN/X6FwmAlT9PtRkIh djZv2Hv3AaagSAdb0r/yEhv+TFHBZTxMKvRCdJ+j9M0CUyy9+2xWHLZZD4DCtXOJzLmp vLzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=XODSPtma; 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 o3-v6si7272909plk.321.2018.08.24.12.33.47; Fri, 24 Aug 2018 12:34:04 -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; dkim=pass header.i=@linux-foundation.org header.s=google header.b=XODSPtma; 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 S1726943AbeHXXII (ORCPT + 99 others); Fri, 24 Aug 2018 19:08:08 -0400 Received: from mail-it0-f50.google.com ([209.85.214.50]:52612 "EHLO mail-it0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726728AbeHXXII (ORCPT ); Fri, 24 Aug 2018 19:08:08 -0400 Received: by mail-it0-f50.google.com with SMTP id g18-v6so3616061itg.2 for ; Fri, 24 Aug 2018 12:32:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=UTGa7sDU/z28MVac97/J+iDgWoqaFqtnUCGAtC6fPGk=; b=XODSPtmamULoJSXqfxmGJR4prRFTbt6iKQKblIbdvfVJp9YRsB9LdaR6eNDmOq0luA kOKxl7oeIXg9aVjGbYaqL47UErl5FkUhvjgZuq3g0qRx4PReaOYNgnE0qI6veUMiYLB/ uSL/QFoza0IikdDc2/FqF4YySYJD2St+RSuLw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=UTGa7sDU/z28MVac97/J+iDgWoqaFqtnUCGAtC6fPGk=; b=CP4tKkFCfkKIz3azcBBqAVEtStcsm1iPh8TleuuHBTpEvNOHl4dVIRlFt9wR+S/28t LTE0Z6lZxBC69kiXbc/uwGpH85465Cq5ohzknzYMCFfL1GtlOFVlDfK0B+Hxt5Ig5j/K 8p+bdhKO/A5xdPOtll2gEzqLvHeeELt4h6mZzqJ8kJ8Pj6iZymYrbkxTiQSh/3xOMlSI SEn2ua0SwA/u13OQrYhDHb+uRymto839ncjDb4zPoJ6u/4jT+GZtEGN9HgL/udek0n9i yBmVowjLd8OC6X1rdDbsYxQCDSWkmkWQnfKUDKdzPfS9noWvwddcB6O2UdxiXp/E/g5A 8/GA== X-Gm-Message-State: APzg51C2Uf55u377pYucBeYCUcK5sc99n/HbmJHzASO4y1XZ/EVaqkYt N5lkFeOezmzupjUReZCqvhjm41j0OaCi6fg4bQg= X-Received: by 2002:a24:3046:: with SMTP id q67-v6mr2620693itq.9.1535139129385; Fri, 24 Aug 2018 12:32:09 -0700 (PDT) MIME-Version: 1.0 References: <20180822153012.173508681@infradead.org> <20180822154046.823850812@infradead.org> <20180822155527.GF24124@hirez.programming.kicks-ass.net> <20180823134525.5f12b0d3@roar.ozlabs.ibm.com> <776104d4c8e4fc680004d69e3a4c2594b638b6d1.camel@au1.ibm.com> <20180823133958.GA1496@brain-police> <20180824084717.GK24124@hirez.programming.kicks-ass.net> <20180824180438.GS24124@hirez.programming.kicks-ass.net> <56A9902F-44BE-4520-A17C-26650FCC3A11@gmail.com> In-Reply-To: <56A9902F-44BE-4520-A17C-26650FCC3A11@gmail.com> From: Linus Torvalds Date: Fri, 24 Aug 2018 12:31:57 -0700 Message-ID: Subject: Re: TLB flushes on fixmap changes To: Nadav Amit Cc: Peter Zijlstra , Will Deacon , Benjamin Herrenschmidt , Nick Piggin , Andrew Lutomirski , "the arch/x86 maintainers" , Borislav Petkov , Rik van Riel , Jann Horn , Adin Scannell , Dave Hansen , Linux Kernel Mailing List , linux-mm , David Miller , Martin Schwidefsky , Michael Ellerman Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 24, 2018 at 11:36 AM Nadav Amit wrote: > > > > > Urgh.. weren't the fixmaps per cpu? Bah, I remember looking at this > > during PTI, but I seem to have forgotten everything again. > > [ Changed the title. Sorry for hijacking the thread. ] > > Since: > > native_set_fixmap()->set_pte_vaddr()->pgd_offset_k() The fixmaps should be entirely fixed after bootup to constant mappings, except for the KMAP ones, and they are indexed per-cpu. That's what my mental model is, at least. Can you actually find something that changes the fixmaps after boot (again, ignoring kmap)? Maybe worth adding some debugging to verify that? Linus