From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pl1-f198.google.com (mail-pl1-f198.google.com [209.85.214.198]) by kanga.kvack.org (Postfix) with ESMTP id 3E7F26B3D1B for ; Sun, 26 Aug 2018 18:16:12 -0400 (EDT) Received: by mail-pl1-f198.google.com with SMTP id k17-v6so530417pll.21 for ; Sun, 26 Aug 2018 15:16:12 -0700 (PDT) Received: from bombadil.infradead.org (bombadil.infradead.org. [2607:7c80:54:e::133]) by mx.google.com with ESMTPS id t32-v6si345561pgl.484.2018.08.26.15.16.11 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 26 Aug 2018 15:16:11 -0700 (PDT) Date: Sun, 26 Aug 2018 15:15:41 -0700 From: Matthew Wilcox Subject: Re: TLB flushes on fixmap changes Message-ID: <20180826221541.GB30765@bombadil.infradead.org> References: <8E0D8C66-6F21-4890-8984-B6B3082D4CC5@gmail.com> <20180826112341.f77a528763e297cbc36058fa@kernel.org> <952A64F0-90B3-4E2F-B410-7E20BE90D617@amacapital.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: owner-linux-mm@kvack.org List-ID: To: Kees Cook Cc: Thomas Gleixner , Andy Lutomirski , Andy Lutomirski , Masami Hiramatsu , Nadav Amit , Linus Torvalds , Paolo Bonzini , Jiri Kosina , Peter Zijlstra , Will Deacon , Benjamin Herrenschmidt , Nick Piggin , 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 On Sun, Aug 26, 2018 at 03:03:59PM -0700, Kees Cook wrote: > I thought the point was that the implementation I suggested was > NMI-proof? (And in reading Documentation/preempt-locking.txt it sounds > like disabling interrupts is redundant to preempt_disable()? But I > don't understand how; it looks like the preempt stuff is advisory?) Oter way round; disabling interrupts implicitly disables preemption