From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DB269C433DB for ; Mon, 22 Mar 2021 11:33:40 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 83D526198E for ; Mon, 22 Mar 2021 11:33:40 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 83D526198E Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=shutemov.name Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 749106B00BE; Mon, 22 Mar 2021 07:14:49 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 6F8926B00C0; Mon, 22 Mar 2021 07:14:49 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 536BB6B00C1; Mon, 22 Mar 2021 07:14:49 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0095.hostedemail.com [216.40.44.95]) by kanga.kvack.org (Postfix) with ESMTP id 32CC46B00BE for ; Mon, 22 Mar 2021 07:14:49 -0400 (EDT) Received: from smtpin25.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id 46D3918024E2F for ; Mon, 22 Mar 2021 11:33:39 +0000 (UTC) X-FDA: 77947300158.25.0ECC4A9 Received: from mail-lf1-f51.google.com (mail-lf1-f51.google.com [209.85.167.51]) by imf28.hostedemail.com (Postfix) with ESMTP id CFAE7200024B for ; Mon, 22 Mar 2021 11:33:38 +0000 (UTC) Received: by mail-lf1-f51.google.com with SMTP id b83so20692117lfd.11 for ; Mon, 22 Mar 2021 04:33:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=shutemov-name.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=aC2zWxKh8h9yHiD2xeuwLXX1xV0ZgyBrKCIhHDY5H2o=; b=ZSGptlNY3TV6osXspfB6Yn0ZJO3GuxZfOL/Fu0isJaoYmVcMpPSQbVTSBn9c5mTSEA LTMelrPjHBm5crPLQkr9bPUQQYhynmbUipldWsBGQW2vnGJepKZ/QXFFhvUMRTACUhuw s9S/jbqIKXf2Vey3tdRYq6C15FpKTEc0pIR5uFfDmGz6QRdKhz9JMkd5bKgXenraMCQ8 sX2QV60eMpa3rEE/iRF4PdvRdUdcorAtjcYY/ZdFAVPtSa0puiPKeYXNL3i5bwe+lcna occ6hoU7QY/zFYyxuEn9nExU2MqpMwJMmI6TKwxtodNgA0dSGLCyL8cyS3GfjnFdo4RS nMYQ== 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=aC2zWxKh8h9yHiD2xeuwLXX1xV0ZgyBrKCIhHDY5H2o=; b=ksYh662dn2Jvq9U2xSP59CvjNJWUvn9CuE5v7206J5Pe68ZQAHi/nJ9cpQUSXrR4KE rqY+Xrz2Dou7PxSsTvgQqT2PV7sOdr3q+iv3kEQZDaAI00JIEg8TtweEXBoCPpqcde9P /EiulHdq6FmL8mwjY87VrUFZmKNoXc6SUW+cXvvEUDeGmegnPbRdNjPqMOhD3HXFH976 K4S/N/KeFJbIivKLjyZ1f7btMcKDv0sH1+PSTTNU99Jbr5qaxO5zW3KOhJHbVCPJUFML bwjHt2TFe8FsbGmZlr8qZ6k5GcAO2NP2UYGH2zSyICVGsfFPAAyRRY5g22gqOpMW8L+d 53Gw== X-Gm-Message-State: AOAM531xViRIx2ZiVZL7vfe1w1RthHiKuP2vUrGFaEzR/d25Q4Aq43Uq WMcBrZfst7Lu8PnBb7wAWrjnCA== X-Google-Smtp-Source: ABdhPJxMnipHkRpXAneqmErx/D3g0D2rkXq/Hs50ihFqlwye/4wxG9jeysmcs7uX5nhojYOuLACxOw== X-Received: by 2002:a19:712:: with SMTP id 18mr8623697lfh.591.1616412817450; Mon, 22 Mar 2021 04:33:37 -0700 (PDT) Received: from box.localdomain ([86.57.175.117]) by smtp.gmail.com with ESMTPSA id w13sm1918639ljw.2.2021.03.22.04.33.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Mar 2021 04:33:36 -0700 (PDT) Received: by box.localdomain (Postfix, from userid 1000) id 5440A101DEB; Mon, 22 Mar 2021 14:33:44 +0300 (+03) Date: Mon, 22 Mar 2021 14:33:44 +0300 From: "Kirill A. Shutemov" 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 , Kees Cook , Mike Kravetz , Nadav Amit , Oleg Nesterov , Pavel Machek , Peter Zijlstra , Randy Dunlap , "Ravi V. Shankar" , Vedvyas Shanbhogue , Dave Martin , Weijiang Yang , Pengfei Xu , Haitao Huang Subject: Re: [PATCH v23 13/28] mm: Introduce VM_SHSTK for shadow stack memory Message-ID: <20210322113344.vf55cya7frr5hvoo@box> References: <20210316151054.5405-1-yu-cheng.yu@intel.com> <20210316151054.5405-14-yu-cheng.yu@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210316151054.5405-14-yu-cheng.yu@intel.com> X-Rspamd-Server: rspam04 X-Rspamd-Queue-Id: CFAE7200024B X-Stat-Signature: ygpw8hgs7bdp8ou38wbibhyo8em19ktt Received-SPF: none (shutemov.name>: No applicable sender policy available) receiver=imf28; identity=mailfrom; envelope-from=""; helo=mail-lf1-f51.google.com; client-ip=209.85.167.51 X-HE-DKIM-Result: pass/pass X-HE-Tag: 1616412818-304030 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Tue, Mar 16, 2021 at 08:10:39AM -0700, Yu-cheng Yu wrote: > +#ifdef CONFIG_X86_CET > +# define VM_SHSTK VM_HIGH_ARCH_5 > +#else > +# define VM_SHSTK VM_NONE > +#endif > + Why not VM_SHADOW_STACK? Random reader may think SH stands for SHARED or something. -- Kirill A. Shutemov