Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2601056ybt; Tue, 16 Jun 2020 10:01:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzYQ3vH82o/F9/Efdcbi3p87ma+Pl0dslAAks7GuT4OV9LNWvfEtsadRLhaxSDhTD5AIcaw X-Received: by 2002:aa7:cd4b:: with SMTP id v11mr3610666edw.356.1592326918939; Tue, 16 Jun 2020 10:01:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592326918; cv=none; d=google.com; s=arc-20160816; b=z/uuI3/TjfCeZ6QEAI5SSJJ4yBPOgm1yjwYCOHlNHAKHZm71i05RAOY+iBGcmPCsar d9aX5vlv/vj2v8oxRQUJH7udM7X05yyln+8GvBXBQD3daludYSJszL39dBtX8XPqn8Wx ZqKRZCfwNIrXioa5VYvibEcAtS2wPWoD1/nI2jGpcSHa0IoSOVn6Tu+EWyCBSQlnU1Pn tU0utjUvKqPCDhwwU7yeJIli6koTfKciiIWL3lZAM//qblCfgVQq2WLTnk1xqwGE5651 Rbm4VnR48dz2jgtDUXqrh6hOY7TcwZ5fZtuRBGl634QnGGUkurWxoXJUuWS8/mVU0bnY oPKw== 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; bh=JNgPsi+FpPZs5MQWyGxevngisK9hT4bFZZoL5RuSkzg=; b=g7N1cWV0hC2p1/Sty06dyta9b6I+G/AK+TGHM+pEBvD++3KRqOngm3txxEd0BjclQw YDbH3gHWTzZDElj9CIdbs4tej1TJnogpJ8Bb+V/u4WNOPwE6dF0GBJDBx/NTkxbJmaF1 tgBQWSNbpEFRg5Nl0m+cOlrsWUtSOBV7bK+9FlOyLpG2ESbzfmfpAtQGI2Zpmp9G6Wot qQ+QLQkRSKqyXZXB5dkI0yXTlJzQ09AP+pY+UVpN/3w2Hu/FoTmqGRuU2QGHkWoxxmA/ HF5OP54z0WIsz8o/rGfjav+zvsgwLlKUSu5r3JRPbjIUNDo87KrMA8vli07HuWq5mUTR LYWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="0z2UNkU/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f12si11163027ejt.70.2020.06.16.10.01.35; Tue, 16 Jun 2020 10:01:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="0z2UNkU/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730806AbgFPQ7q (ORCPT + 99 others); Tue, 16 Jun 2020 12:59:46 -0400 Received: from mail.kernel.org ([198.145.29.99]:52888 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730554AbgFPQ7n (ORCPT ); Tue, 16 Jun 2020 12:59:43 -0400 Received: from mail-wm1-f46.google.com (mail-wm1-f46.google.com [209.85.128.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 40EAB20C09 for ; Tue, 16 Jun 2020 16:59:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1592326782; bh=8d3TrxrA8Yg5Ytejwq8g7SbccMfxeMH87bM2/PPxd3Q=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=0z2UNkU/quQA4kn04Vf3GVxiG8SHeVXqZx4B3gJ0yB3m2GqsQRphvW8smEv0n/nJQ 0/q6d8dz8BX3EHKGJQoCAF1xc+hXW5k3Qmf12mVju9jXNmKN0C0J3XHKvWE3h9oyny FY8ilYY6KGMe/1s6s9GDVWIGo78rwBB/+/9bY0W8= Received: by mail-wm1-f46.google.com with SMTP id u26so2667928wmn.1 for ; Tue, 16 Jun 2020 09:59:42 -0700 (PDT) X-Gm-Message-State: AOAM530ahhIVGgh46DpgzAl9hfX5GYfD/lp0RwT96G9gRhECXQ5PCW/Y J1cpGt4XImjv1MvWDAaVL9jYvyG5wjWnUCCd4rsyrA== X-Received: by 2002:a1c:bb08:: with SMTP id l8mr4204037wmf.21.1592326780898; Tue, 16 Jun 2020 09:59:40 -0700 (PDT) MIME-Version: 1.0 References: <20200616074934.1600036-1-keescook@chromium.org> <20200616074934.1600036-7-keescook@chromium.org> In-Reply-To: <20200616074934.1600036-7-keescook@chromium.org> From: Andy Lutomirski Date: Tue, 16 Jun 2020 09:59:29 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 6/8] x86: Provide API for local kernel TLB flushing To: Kees Cook Cc: LKML , Christian Brauner , Sargun Dhillon , Tycho Andersen , Jann Horn , "zhujianwei (C)" , Dave Hansen , Matthew Wilcox , Andy Lutomirski , Will Drewry , Shuah Khan , Matt Denton , Chris Palmer , Jeffrey Vander Stoep , Aleksa Sarai , Hehuazhen , X86 ML , Linux Containers , LSM List , Linux API 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 Tue, Jun 16, 2020 at 12:49 AM Kees Cook wrote: > > The seccomp constant action bitmap filter evaluation routine depends > on being able to quickly clear the PTE "accessed" bit for a temporary > allocation. Provide access to the existing CPU-local kernel memory TLB > flushing routines. Can you write a better justification? Also, unless I'm just incompetent this morning, I can't find anyone calling this in the series.