Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1467096pxb; Thu, 4 Feb 2021 13:52:37 -0800 (PST) X-Google-Smtp-Source: ABdhPJyZvx+DnhWNp0I/S0ernM34k0enRI8ISfeO8BiU78g8lEuyCcHOVO3JnEpib+OsVqF477jZ X-Received: by 2002:a05:6402:110b:: with SMTP id u11mr627174edv.57.1612475557579; Thu, 04 Feb 2021 13:52:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612475557; cv=none; d=google.com; s=arc-20160816; b=qie2spV2RATr2tvIWC5i6UNkbK8MU9h4Xx6b4yhF2KTpDUyFegaTM0tsaFObEQK97Z X6cRevvpdUWJLVaGvcpANm81d+3kqpxku3ceMRNnmW5Hj732AAPkJVe71+NqYAAbqm8s USwnWrZTRRej1VHa/4Z5Za7HzasoQzV5aB/uvwDbeh6/OgQ/VeRsMxkKM16OdeJ8l9TO 4psEVWuSi0RoI3Fk1itk6PPWiDMDZkH0/i1wRqpjSMSkj1bUDn/2Ofn+nxQay8YQUjv4 7tiN9Jix9WVo+bQ82+sMd95xeL14dAvmvxMMrpTA4Xzczvlhjp1uUAc7GL7cNLU71+g2 A+gw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:ironport-sdr:ironport-sdr; bh=aR+vBUyrpNq5PDflIsqSRiiiIygAaRWUJ5c5XOwUbFU=; b=gxaHKtlchCZsBrN8tuVjuYkKrqo3gLgqERfWh04HIDvpSJ4iAm4awFvFUihqJF4VQe xhGUY1bv7eVlAKLhXm7RXckz1OP1baYcau9e9flvcyy5RzuRao1GVXnie/7Di6Xy0BIv +3zxfVsPyM4IuNVaxjJd6YNF4w+VQ3DKDlH2dk07NmMteWHsAS0AsSjY5KvratA3dzRr mzCiV6CAbWzAgFG5fKdOAX4L0YqNtO+Hdvr+waBPBa5TrJnP1X6zMubhdCGSOqxe72Z+ oiLCM4/YjIoOXwCQCGL7cyEFP6vf1jhTc+3ONwbT04udNf8sdoWq50VbJ4szGyQogmn+ q5rA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ox16si4034500ejb.449.2021.02.04.13.52.13; Thu, 04 Feb 2021 13:52:37 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230245AbhBDVuC (ORCPT + 99 others); Thu, 4 Feb 2021 16:50:02 -0500 Received: from mga14.intel.com ([192.55.52.115]:4838 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229613AbhBDVti (ORCPT ); Thu, 4 Feb 2021 16:49:38 -0500 IronPort-SDR: pY+Nr6jAgIxyBSpAvvvsgXOwo2hNItuw9siAkK7SOvOxAnkVR0xZ2PX5iO24yXStyRd4G6C3S7 yUGldeJTw3/w== X-IronPort-AV: E=McAfee;i="6000,8403,9885"; a="180557971" X-IronPort-AV: E=Sophos;i="5.81,153,1610438400"; d="scan'208";a="180557971" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Feb 2021 13:48:49 -0800 IronPort-SDR: myV1KE9j7kkbr5D5pXV2bGsPNu9vv8X5WxtJ9c2sz4znxzOvH794zrs0zwYjGwOu0gcq//xvG6 PNYTZBCr3OEg== X-IronPort-AV: E=Sophos;i="5.81,153,1610438400"; d="scan'208";a="393459920" Received: from yyu32-mobl1.amr.corp.intel.com (HELO [10.209.100.6]) ([10.209.100.6]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Feb 2021 13:48:34 -0800 Subject: Re: [PATCH v19 12/25] mm: Introduce VM_SHSTK for shadow stack memory To: Cyrill Gorcunov 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 References: <20210203225547.32221-1-yu-cheng.yu@intel.com> <20210203225547.32221-13-yu-cheng.yu@intel.com> <20210204204636.GH2172@grain> From: "Yu, Yu-cheng" Message-ID: <44f18779-efdb-e3f9-55d4-b46fb35d60cd@intel.com> Date: Thu, 4 Feb 2021 13:48:34 -0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.7.0 MIME-Version: 1.0 In-Reply-To: <20210204204636.GH2172@grain> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/4/2021 12:46 PM, Cyrill Gorcunov wrote: > 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. > I will add that. Thanks!