Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1588925pxb; Thu, 4 Feb 2021 17:48:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJxt1E52JYDnXZYBlBJAUXTfy45hfcWXtrxXYEMnbU5Y9FNMetz/bRvxxlvXydWwmfWU0gNf X-Received: by 2002:a50:fe85:: with SMTP id d5mr1407080edt.140.1612489688138; Thu, 04 Feb 2021 17:48:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612489688; cv=none; d=google.com; s=arc-20160816; b=QRKASOHckZWdp54NZVGh+VCzxiiULSuXCChHATfecEzSVMpyUOhPEa+6ITdB/gpuoV UufAjHMnKmFAGL1p/u5F149hakPcWkCxSCPoZ4e3Cy8OHBp55q/taQ2earwouXZloJYL 5K86gM8DqRR8vWpJEBm0PDtZblvyEYne/ATBtaGuPJbgm9IS9W+rI178bm5a4IYDFMcS jXzdxmHtXRrZqxB1cTkjRJdYMr8QegyVtJRB8lzn4m3gEhyaYfjS4HvJzprCTMF8wyum ad8Ojt5fUMzrqxfV3zoZ7C+cBnxToGNtWPS1zsUM4khgYdGI8ynXNomZYFHpWV/dvnx4 1Unw== 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=v8ghTr9pbY/sls4eNB3Cpe47CdWbhMFVnLsnjhJ6vZc=; b=sTYCuzUnga/7uQ7ahyshhYmczGtKM3RxHQeMc2HF9da/f6XgkW9ZTDFr+vnUTNtDVU xdSIQJCaJZ8NJMjzj9+jVSaQGq2LIXDDO+fnoaUXhtYTTtD6GaNkYxr+skSKOu61QQHy c/c5fu1mCcloxQ1lA6spD95N9IIseAaYgtFX28MykCSVB+we1bemyFiAmfrlB7NYqXzN fIIYQovbxGabqPxSzpNglWD1yWwjUU1MlB6Lp6xpCmv2lCNapLVsnhmExaW/t1+4ZG1i 3R7XpAP8nabxGjCZsd8j0Wy9bHHgpyhWmXUKibvkVn02ttYay3Cosh9yMqfb+2Nc6SNC wt/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=NfWYk55j; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j19si4424014edq.356.2021.02.04.17.47.43; Thu, 04 Feb 2021 17:48:08 -0800 (PST) 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=@chromium.org header.s=google header.b=NfWYk55j; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239889AbhBDUZs (ORCPT + 99 others); Thu, 4 Feb 2021 15:25:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46350 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240096AbhBDUZ0 (ORCPT ); Thu, 4 Feb 2021 15:25:26 -0500 Received: from mail-pg1-x534.google.com (mail-pg1-x534.google.com [IPv6:2607:f8b0:4864:20::534]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 383A0C06178B for ; Thu, 4 Feb 2021 12:24:46 -0800 (PST) Received: by mail-pg1-x534.google.com with SMTP id t25so2937677pga.2 for ; Thu, 04 Feb 2021 12:24:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=v8ghTr9pbY/sls4eNB3Cpe47CdWbhMFVnLsnjhJ6vZc=; b=NfWYk55j/9pHR6ZwBz1BiHiQ0zm0oSAiebaqx41lmY8ATDui9uD4zOpvr1aLyvQ1N3 cxj4/Lz8KdrMEVhUcrOSC+gPXJol6Oyi1FF2l+7sSp8oIhLsLo4n/2IIXR/XGMyByy9/ f5USnJaT8vnRTsACtxnaMEBT0DQnYr74i4M/A= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=v8ghTr9pbY/sls4eNB3Cpe47CdWbhMFVnLsnjhJ6vZc=; b=e19wpDgd8gCV9TvlFOgkyYCbtaeOpc2Y8O9SOjGDl2wFRuIGBLB2bMmaE7NO5Zrd6S y6YBnr5OiS/Gg3JFXQFe5Va5yJJydQSVVrZcT01n1Lqp2Pb1lVHrVmzauuqxdSkx7Wro osVkFxuQEpE7ZfB7Tues0oBh9JejdhOUwYBFJHWUDPHBPioMrMMikZfi74XH+PRMuMoZ rQVnvbmjD0ym58v/4E+tA9dEGUFA9MZuCBudwEQQ+FXEwNVYaMuS9F479dHpeQh9N0Em T3LUJzKDvyyWF8sZdcs2nGgEevRYe8j+A6m6+ktqy9bLxqmOAHYUb1/GeqZNz4ZVC99a DlZg== X-Gm-Message-State: AOAM530YnUTBVnFsVC5Nqi6/oo/wVlO0/DTPPXv48DgkbCE4WoCdTEiW C1Okg6SJlKOsj0ZK2yHbdxIsyg== X-Received: by 2002:a62:1c47:0:b029:1c8:81d2:b413 with SMTP id c68-20020a621c470000b02901c881d2b413mr889462pfc.56.1612470285277; Thu, 04 Feb 2021 12:24:45 -0800 (PST) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id p17sm3624550pgn.38.2021.02.04.12.24.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Feb 2021 12:24:44 -0800 (PST) Date: Thu, 4 Feb 2021 12:24:43 -0800 From: Kees Cook To: Yu-cheng Yu 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" , Vedvyas Shanbhogue , Dave Martin , Weijiang Yang , Pengfei Xu Subject: Re: [PATCH v19 17/25] mm/mmap: Add shadow stack pages to memory accounting Message-ID: <202102041224.14CB1AA@keescook> References: <20210203225547.32221-1-yu-cheng.yu@intel.com> <20210203225547.32221-18-yu-cheng.yu@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210203225547.32221-18-yu-cheng.yu@intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 03, 2021 at 02:55:39PM -0800, Yu-cheng Yu wrote: > Account shadow stack pages to stack memory. > > Signed-off-by: Yu-cheng Yu Reviewed-by: Kees Cook -- Kees Cook