Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp3255926rwb; Mon, 3 Oct 2022 12:00:23 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6dM/i9xTw0tBBTI1Slq2uykfKm3XOmpdBDd1M6UGwElCFJwq9zrZJkOt2cs4LFqoJX0Wsg X-Received: by 2002:a05:6402:42d0:b0:457:d16e:283d with SMTP id i16-20020a05640242d000b00457d16e283dmr19899984edc.395.1664823623309; Mon, 03 Oct 2022 12:00:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664823623; cv=none; d=google.com; s=arc-20160816; b=FqUHbMHPWvuogVTU3dNI/9472cXiE+C7L3JcZbwExj+KwpjXDGnybQJ5PjVs9TesbU 0R7rK5vBoXSdSQJZ1Tg23slZTcFYhusEAa/76RzElB4TUsEKFdOXZxeap0dA4iHs7y1X sCHrjOiQPMxBaqtWZ21YYw/PGBqlQKLV8ePsy1NBeZ/yAj1Q1u5Yc3HjpmaHAvTnXpbf 3XMqeWusstleHM1IBEidgf3JVuDjXkr7cAqCmwKRdJPbAFhbVBUlD8YTkLf1w1EV/afa ywzY7p4JP2T1dh1n0e0ZMddaGovumIc1u/RQn5mmuI/A6x9zp6RnMa5/PDefrl+awg+1 VzGQ== 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=gcdwOpvyFJSGp4cQvt0W+LFd65h9zHXN/GY/Jg8dWAM=; b=V4rwpkvzimVZtUkRPrLPd3IH4D/iBGYuivpfTkHnmyTv3JBYeGEoCn3DX/10jG08pX YmL/fbzdnrR07l/Ld5K4KYVhkyHwf1/p1/SlkXuFhRGOaMtWCZcChbj8nfzQ3bFzDYnR ngPjNqU3dD7HrIO6DfYDjQgXVDc0bAwsE6K/YjwgT27u6hheKr2H+FTMKmS35LSScr4F 1VqCwJmHqzTDVTsAeTX89XmIQpbl0SUVRdHBrKnuWY4hLIDeFs3IKEM5l02S/r/4xNT5 4VfBQB4qXmnS8XpsXJo+MFhZ8WBQ+AaSGJw2gG/V2FHR9C9gYKbXr3KBCgfz3BrxV4oF EIKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=gJcwrq+s; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jr3-20020a170906a98300b007825337afeesi8003032ejb.273.2022.10.03.11.59.58; Mon, 03 Oct 2022 12:00:23 -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=@chromium.org header.s=google header.b=gJcwrq+s; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230028AbiJCSbl (ORCPT + 99 others); Mon, 3 Oct 2022 14:31:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38274 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230087AbiJCSbe (ORCPT ); Mon, 3 Oct 2022 14:31:34 -0400 Received: from mail-pl1-x62e.google.com (mail-pl1-x62e.google.com [IPv6:2607:f8b0:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3CF0142AD0 for ; Mon, 3 Oct 2022 11:31:33 -0700 (PDT) Received: by mail-pl1-x62e.google.com with SMTP id h10so7704960plb.2 for ; Mon, 03 Oct 2022 11:31:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date; bh=gcdwOpvyFJSGp4cQvt0W+LFd65h9zHXN/GY/Jg8dWAM=; b=gJcwrq+sWxdvlCByPEOgZOCHihrWoRmnR3mww8TjthJtRRBcDm1NOT8dEfj3zPwl3/ HsdezaDoUscXjGWYZVZZ9e1w0MI/oGshiG0yfh4722czmPMYeZ/UHIobQ1i9UPyF8U9H nSm1o41vrdbF+umzuEpQcD26W6+yGj/rzsQX0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date; bh=gcdwOpvyFJSGp4cQvt0W+LFd65h9zHXN/GY/Jg8dWAM=; b=0YYi6uPAWj9VWsGegvlhM33fKsWFFpHBazUkttJUJ0BWSBcWfx/kfNsOQPf25e+KXJ IlKOvB6cXrK61kuPmHle3coU4H4rKezVY1IzjS9AHcXOWDSsg434+XezEIbit2DWOlJa Ae1CLg+6zaROvp78DxbGBoLzioRcgkI77/HHZ9gs0+pu+uJhgydhktDuu7K8QCpw0jsC ooTN3hMvqBwQY2IRAPtjJtyVD0bFgkC8pPq3NSOIJ+XNegCX88kQ8xA0Z0LvGCfZN0L1 deFC432JqOiljd18PWbUY89/vDLKyTayGQIMVgiG/gqvfAf9SVNeUxlOQeg4SANUj8gZ g6Bg== X-Gm-Message-State: ACrzQf1uqdk15yGDU8IDBdKyaPaz2MUE7KzaWAuDMPhasPPEvhns6AuE AqZMOdYLpQq066QJJcAPFkBmWg== X-Received: by 2002:a17:90b:1c12:b0:200:b623:455d with SMTP id oc18-20020a17090b1c1200b00200b623455dmr13305214pjb.88.1664821892754; Mon, 03 Oct 2022 11:31:32 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id ij27-20020a170902ab5b00b0016dbaf3ff2esm4262285plb.22.2022.10.03.11.31.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Oct 2022 11:31:32 -0700 (PDT) Date: Mon, 3 Oct 2022 11:31:31 -0700 From: Kees Cook 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 , Mike Kravetz , Nadav Amit , Oleg Nesterov , Pavel Machek , Peter Zijlstra , 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 19/39] mm/mmap: Add shadow stack pages to memory accounting Message-ID: <202210031131.AC6CF1AB@keescook> References: <20220929222936.14584-1-rick.p.edgecombe@intel.com> <20220929222936.14584-20-rick.p.edgecombe@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220929222936.14584-20-rick.p.edgecombe@intel.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS 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:16PM -0700, Rick Edgecombe wrote: > From: Yu-cheng Yu > > Account shadow stack pages to stack memory. > > Signed-off-by: Yu-cheng Yu Reviewed-by: Kees Cook -- Kees Cook