Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp5269445imm; Sun, 26 Aug 2018 15:17:30 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZaeMRY3xK4KCpBLUh4u6PGpXvQBAeLENMdZfL1Z3EcKuzIAbBSF5fB/x6gYBXbVa7WPLPv X-Received: by 2002:a63:d74f:: with SMTP id w15-v6mr9778368pgi.306.1535321850454; Sun, 26 Aug 2018 15:17:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535321850; cv=none; d=google.com; s=arc-20160816; b=Om9aRy+2R0/Irc6FrZjH3KldPLE11PjEx1pKqlcQUIeyOE9FCKyaVjfiCyIGA3+wKR jNp0evfmSk4NNE6A4LxK8N1ipT6HsOfUBMr3jKLkYV+42JoJcDR9WZfGa0dbd5cc7O5Z 8AVcdM1MHa69IWuZtTVAHS/KTppiizr+v8JA74ug6E9vylpa0gbZUTf2b6PIHbb+Ath1 TNj7LvTgh7Xq49vsxLPoiIuG5CEs0Q4YngFLqyTedWyUUthcxpL6faw9AOMSt8eY6Lid TulYDmiUBawZS1iS45dMq3jD7+IIZYQ/5DYKpkgfY5j3TlQazQq3es9t29mPDefUQffM W58g== 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:arc-authentication-results; bh=U1xK8R2nt5oLYf6ZDOXGtnO7yEEcsyGQ7xnTDDSx+tI=; b=vaOQMyt9pNBNZIssWU509UkCK2APsIzAc/SpIiZPb0gkU0vDPFH7mXplqTXEtttkWu FUXwAJI4b7Go+Clj5U3RvWnU/WFDp1YLvt3gyEMMFf9DLN0GIYVo8+CiXM0oTLHlnOCG jmwLn/+2JbyWwfcbNXuUvxxDSxywWysDGEL+DqnqQKvWO+XnaNdxn0fJuFOfX5i3wod/ GAxBwzSM77fiyb2kgUoHfAN3mDry0+LLWc7SOyBZR+YZLAP6P+HRVJdHj0uOQl/zzOZI JJYksWny45dn7ySOrcW7/xlYk8AwEJt/bm8Vu9J3oTXpFdHEE8r8SUK80ePGrmKds7f2 GdSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=Ug98x9Zk; 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 f62-v6si12754913plf.164.2018.08.26.15.17.15; Sun, 26 Aug 2018 15:17:30 -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=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=Ug98x9Zk; 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 S1726978AbeH0CAE (ORCPT + 99 others); Sun, 26 Aug 2018 22:00:04 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:52068 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726831AbeH0CAD (ORCPT ); Sun, 26 Aug 2018 22:00:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.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=U1xK8R2nt5oLYf6ZDOXGtnO7yEEcsyGQ7xnTDDSx+tI=; b=Ug98x9ZkRhZg5xujjnsbiQnT8 SV5o5I+FN1NGyRL5Lk+22gyMFgImFcyAVdSjxIpSAb8bCIGN2JEMjV4Xo/iylLwNR8kdd9vFseyfr uo8K5Fpe/byxvyth8KQ5G6XCeYJfLIoNehrrPLGcdreeUl2rX2r3kgCjZkj6mP5d6+wEVgZfZMDdP CdHkgf5G8AMLuzpWVcjquOdLdhvCnOy2jw6kETnARJ6knbE0Jbo183GzYc4h/8dMSdOZteDUHg6c5 n1FnT4HpUBU4J1CfcKT5pM0UoJxBvlcrhs+4jAqOB/AwYgDAg5KkQohqkID3O7+Q4gP/u2ftW5srU A7dM3x4rA==; Received: from willy by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1fu3Jt-0001KP-Pg; Sun, 26 Aug 2018 22:15:41 +0000 Date: Sun, 26 Aug 2018 15:15:41 -0700 From: Matthew Wilcox 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 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: User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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