Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1432980pxb; Thu, 4 Feb 2021 12:52:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJxuJjiAoHUXqiqbR3K8oMgU9sjiIgmv8jAJQJ65GyHlTR2zri7SrWxtdFyUPXLBCNcy/x04 X-Received: by 2002:a05:6402:94f:: with SMTP id h15mr426949edz.199.1612471960077; Thu, 04 Feb 2021 12:52:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612471960; cv=none; d=google.com; s=arc-20160816; b=EXbQnyXXz2amgghtI13ofhIRcUJlujUSDlXBZSed3YegO8a/Bcbte7YyuQo4yr37/s tlGIJk8a3XiCkgs+kVRTwCm4pOuiEvaXeLnf1P59xe5Nef2E+LI1TcsreKDNNwqTyjKd +sh5Bg5XvJEZqLNX27DKaxVuEGMAab267L3JCmFyM+DOYRSgf5phnAmYCLdNPq5iFomE Gyfw7yECyQ/Y0OLFbpTJNL9MfDXKCmbKAxbW6W6nA7zejO6Nk7N9mwiTSMS2hWCka5gH 0gSkPeTfP4Y101attan4Yudb36nyAKpIzYim937wvM2iVFhIrtv0TzNZ09dsYK2XOEEc hRzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=3fSrYxUXmlBaB+2NXWGl7tEc3+t2JcOM6NbRWxINsXA=; b=fP+LIHlK7XFNtjtY8f8whA1uRt78m5LS2rdYG07auJhS/6qvwOW7Mylhf+PeKryF36 0O/TLZm91fxzyrF6qQcRxCHe1UaAVdE5ibs1IgY9zZSS+GSodpYWKleo0LMrHBbHbNKj s0XyqCh9qUivnxSwdCWAxWhUCPO4StfQ4OSnWvlKr9uDOkfs7ZO00dg5K7VvP6gVGTRY zTkDxiFXhCbK3ru9Ltep+Nw1kq6+I3AUnPE5Dy5e5UthqIBB7Nc9bSpKqT74+x1MiIa5 LH2leiZpXrzhH0UE/s5JcXW2dXaZ9kVwFR6AC8CaBnrmJToY0RNV88ICR8Ht/sTIV5aS u/hw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=E5L8mx2T; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t19si3858632ejs.405.2021.02.04.12.52.15; Thu, 04 Feb 2021 12:52:40 -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=@gmail.com header.s=20161025 header.b=E5L8mx2T; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230020AbhBDUr0 (ORCPT + 99 others); Thu, 4 Feb 2021 15:47:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51124 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230075AbhBDUrX (ORCPT ); Thu, 4 Feb 2021 15:47:23 -0500 Received: from mail-lf1-x12a.google.com (mail-lf1-x12a.google.com [IPv6:2a00:1450:4864:20::12a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 065DFC0613D6; Thu, 4 Feb 2021 12:46:41 -0800 (PST) Received: by mail-lf1-x12a.google.com with SMTP id m22so6621840lfg.5; Thu, 04 Feb 2021 12:46:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=3fSrYxUXmlBaB+2NXWGl7tEc3+t2JcOM6NbRWxINsXA=; b=E5L8mx2TZxzo7nyiCm8lezIbPoDAbvkz1PckVfaH/u1Mu+Q5TQfbEgPftlNj+Z4Z90 BvexiDRA75M3TXXeiUoQJxOAIDOlD5umJkLm92wGmWwAkHekez0bDy5vtSyyIy1okHm7 MmVy9TTvOCjUbMU/4lHlfxVHFIxC2okBF3e6xo4QozIw0Eyh4udmJudDRKHNvWRGFRRf 0VHGewJPxMLv0sjAfZNJ53BNSjex5br4lRaOZ+fetxtN/MImxZfO6+J4u2rV+nJ3tihx Oite0B9bGX+BeiFQ9/6wpR0qnyaZ7dRZOkbC2FCk78C33GNvq8WNJuBKEUd6DqtikioA aUlg== 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:user-agent; bh=3fSrYxUXmlBaB+2NXWGl7tEc3+t2JcOM6NbRWxINsXA=; b=DPHN6mKcJPR6u7y/nhzynderLJuF+z0sO35vVs1HypV1+FQGfELtOtM7P/61fXPQh1 H3nTCwlwi4mmACgxKb2+KdtOVj6j3Atcb57xneIq/2XfQ80u13f8mnSwDwbHI6d0y/0h SjxCFK2v4OC9dHO6mteQ1DV5LN9YVdC0ZLYcdZN+upxv/Nkx/x+xJyhFLKHsws+YDH1e CwAaEluYp5aEKgNKiTk1GSMczO482au1VyHX8XFzTVyiuRGFzO9+abdleuhC/M0VTP2f 90XaZEMamlKcvf9O9K6LbsaIaHCYfoihMok3eggjCjpWTLu2hkpt1FpOvp7gDmorinlk 0Ezg== X-Gm-Message-State: AOAM532jzIKKtQDlKEUdvTD4FIMiBMKXqLggVtykgJ/n5JJlcUGBANIN E0OfpCnW0wYyT3k6OfXbsxs= X-Received: by 2002:ac2:592b:: with SMTP id v11mr606993lfi.512.1612471598856; Thu, 04 Feb 2021 12:46:38 -0800 (PST) Received: from grain.localdomain ([5.18.103.226]) by smtp.gmail.com with ESMTPSA id d23sm784872ljo.17.2021.02.04.12.46.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Feb 2021 12:46:37 -0800 (PST) Received: by grain.localdomain (Postfix, from userid 1000) id 6A112560087; Thu, 4 Feb 2021 23:46:36 +0300 (MSK) Date: Thu, 4 Feb 2021 23:46:36 +0300 From: Cyrill Gorcunov 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 , 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 Subject: Re: [PATCH v19 12/25] mm: Introduce VM_SHSTK for shadow stack memory Message-ID: <20210204204636.GH2172@grain> References: <20210203225547.32221-1-yu-cheng.yu@intel.com> <20210203225547.32221-13-yu-cheng.yu@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210203225547.32221-13-yu-cheng.yu@intel.com> User-Agent: Mutt/1.14.6 (2020-07-11) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 03, 2021 at 02:55:34PM -0800, Yu-cheng Yu wrote: > > diff --git a/fs/proc/task_mmu.c b/fs/proc/task_mmu.c > index 602e3a52884d..59623dcd92bb 100644 > --- a/fs/proc/task_mmu.c > +++ b/fs/proc/task_mmu.c > @@ -661,6 +661,9 @@ static void show_smap_vma_flags(struct seq_file *m, struct vm_area_struct *vma) > [ilog2(VM_PKEY_BIT4)] = "", > #endif > #endif /* CONFIG_ARCH_HAS_PKEYS */ > +#ifdef CONFIG_X86_CET > + [ilog2(VM_SHSTK)] = "ss", > +#endif > }; IIRC we've these abbreviations explained in documentaion (proc.rst file). Could you please update it once time permit? I think it can be done on top of the series.