Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1825969rwb; Wed, 5 Oct 2022 05:30:44 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7CVAZaCVrex145Ay+HyPV8ARQx2304ie1HfJXNfv4mG9fdHV95IS9DRjLbkaGq1u+0FI7I X-Received: by 2002:a17:903:11c8:b0:179:de93:bd7e with SMTP id q8-20020a17090311c800b00179de93bd7emr32042684plh.95.1664973044138; Wed, 05 Oct 2022 05:30:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664973044; cv=none; d=google.com; s=arc-20160816; b=FqUMzcVKZH7Os8X4JDt085rba1g4Jwj5xa1MQFW226t+ZW3iYwISvZSCEiKDPzeDkQ tF6JD8uhJDwvNrifzQk5PWTpV9Xq0+3ad//pmBvXggxs2K/pun1aLFbKfNyGb4HOKHHP g15APAXG58r/PrwPz/ysqDx0IGR0m8S3jIFfzqrYoD6ZOn6RV4oknRM2/zYcle0txVtx fv+kSfMVf2UQiOx8LtvIn+GY96pAqvI5Uy0ooP3y+4Dm4E1vIe0sM2cm4YLfhL2DfsaY f9STPWFTmnrJudS2VUZivZlv7GBFVHnoZlHEKEViJnEAPl9pfMe8kNHytEcPHXAdV+Q1 wtzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=IfD4r/Qnubl/ZXrWJ/hqbcL8YwiA7Xmp7ErQUUoOr/8=; b=BjjBI8pJ0nK7dC8P8u6kh8zfI8pMWi+HpvPitbeJL/gn1DYYEjAybvj/XOnwQKBfjH yZG60jwamkmitnKVCC4laEfRT4hDEfKICy/YRevyO4rC3axP1lx5ocCi9muLkBOYuinY QG4JiCyeMrf86d5fStCAhMvxUGWWo4sk0J6KBLoLfGzABoJ9OUtt7HV7anCBQKh+SvHp yZjb/RahDQZVhD9gj9mL/ZMm/jWElNW3aMriJC5aD3FweaOWxrjFEv7gOnft1GcJgMyW seC6eLGPU9YxkATFtiKhznOJplWcVGMFn/xnjgAwUDdzWD+50UmY8qvpEK6RZ4htMjSK 3u0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=gsBoeSTn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jx5-20020a17090b46c500b0020ac64a52c0si1739602pjb.47.2022.10.05.05.30.31; Wed, 05 Oct 2022 05:30:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=gsBoeSTn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230033AbiJELex (ORCPT + 99 others); Wed, 5 Oct 2022 07:34:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35596 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229997AbiJELeS (ORCPT ); Wed, 5 Oct 2022 07:34:18 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 45BA8760EC; Wed, 5 Oct 2022 04:33:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.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; bh=IfD4r/Qnubl/ZXrWJ/hqbcL8YwiA7Xmp7ErQUUoOr/8=; b=gsBoeSTnoX+6nNnHosNB3RX2Wm 2KEAZ9IKZ6OFskIwRx4wlx1XDS5f6QKQwxVbR7IEnPXs8WAqjkYjcUmjmD7DHrI27myjjTcWSR4L0 EQAO5RE/1ivJ/IS+G684FlDnjJeT7th1V7fEqLtmbqJYWRPwOFtMKBPaRoHUhXV4kgQAlq/yriK+4 UJsZvNlFIXt9nSU6fX9RzUOYWIqlF67OhnS4+fd+dfHaR0cwVwcRhMSrnb0Db1/ODuryYNf7oxY0a lUkfz/Efv4zbhc47OmDtOlhzmhj6SttDkG3sf6YcYKhp96HsB/gw3aAUP0iQ00IPapI3xFEkiwYIK NLOHHI1A==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1og2eB-000K0k-A8; Wed, 05 Oct 2022 11:33:07 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id AA0493004A1; Wed, 5 Oct 2022 13:33:02 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 90FCA29982FC3; Wed, 5 Oct 2022 13:33:02 +0200 (CEST) Date: Wed, 5 Oct 2022 13:33:02 +0200 From: Peter Zijlstra To: Rick Edgecombe Cc: x86@kernel.org, "H . Peter Anvin" , Thomas Gleixner , Ingo Molnar , linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, linux-mm@kvack.org, linux-arch@vger.kernel.org, linux-api@vger.kernel.org, Arnd Bergmann , Andy Lutomirski , Balbir Singh , Borislav Petkov , Cyrill Gorcunov , Dave Hansen , Eugene Syromiatnikov , Florian Weimer , "H . J . Lu" , Jann Horn , Jonathan Corbet , Kees Cook , Mike Kravetz , Nadav Amit , Oleg Nesterov , Pavel Machek , Randy Dunlap , "Ravi V . Shankar" , Weijiang Yang , "Kirill A . Shutemov" , joao.moreira@intel.com, John Allen , kcc@google.com, eranian@google.com, rppt@kernel.org, jamorris@linux.microsoft.com, dethoma@microsoft.com, Yu-cheng Yu Subject: Re: [PATCH v2 10/39] x86/mm: Introduce _PAGE_COW Message-ID: References: <20220929222936.14584-1-rick.p.edgecombe@intel.com> <20220929222936.14584-11-rick.p.edgecombe@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220929222936.14584-11-rick.p.edgecombe@intel.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 29, 2022 at 03:29:07PM -0700, Rick Edgecombe wrote: Mucho confusion here: > (a) (Write=0,Cow=1,Dirty=0) A modified, copy-on-write (COW) page. > (b) (Write=0,Cow=1,Dirty=0) A R/O page that has been COW'ed. The user page > (d) (Write=0,Cow=1,Dirty=0) A shared shadow stack PTE. When a shadow stack are all identical cases; > (c) (Write=0,Cow=0,Dirty=1) A shadow stack PTE. > (e) (Write=0,Cow=0,Dirty=1) A Cow PTE created when a processor without as are these.