Message ID | 20221104223604.29615-14-rick.p.edgecombe@intel.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 779D1C4332F for <linux-mm@archiver.kernel.org>; Fri, 4 Nov 2022 22:39:44 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 575DA8E0006; Fri, 4 Nov 2022 18:39:37 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 4FD8E8E0002; Fri, 4 Nov 2022 18:39:37 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 302AA8E0006; Fri, 4 Nov 2022 18:39:37 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 139978E0002 for <linux-mm@kvack.org>; Fri, 4 Nov 2022 18:39:37 -0400 (EDT) Received: from smtpin14.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id DBF921A0B1F for <linux-mm@kvack.org>; Fri, 4 Nov 2022 22:39:36 +0000 (UTC) X-FDA: 80097227952.14.33F13E4 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by imf30.hostedemail.com (Postfix) with ESMTP id 7212680006 for <linux-mm@kvack.org>; Fri, 4 Nov 2022 22:39:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1667601575; x=1699137575; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=LWmw5Lvcc9LBkkGN/WFq1NU3hxCK/DdQKZluTUtVie8=; b=dS+Ey/oEUopXZY4dxwQ5Zh97Bdd5NDwcNp0EgJJ4lmqBdavxXylEHI2Y xOferj+/qs81gs0vp//mChVYTwGPsXl/hu957cdpYv67r/i1a2b8DVGu0 ZIsOEbyJwCQQbngRzekQL2hgWEMmPaXBhFbF36iXRyAG5dm6BBF3mr74U lb8yO1PQyQ0806SxmhDD39iA3JL5ny6otLhEGTa65RRpLnrIQ40TJXE2d 7usKaQoftZpHuU4PJjiLVlJeC6jTn/Yv5HYGRsa3eBJ5gVTGAHqVqIZ6d KXDYWCKKyF04mhADaKkFNm7KE3MEBPGciK7GFBzDh4iZqxn2EYoqbpMGJ w==; X-IronPort-AV: E=McAfee;i="6500,9779,10521"; a="297559622" X-IronPort-AV: E=Sophos;i="5.96,138,1665471600"; d="scan'208";a="297559622" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Nov 2022 15:39:34 -0700 X-IronPort-AV: E=McAfee;i="6500,9779,10521"; a="668514039" X-IronPort-AV: E=Sophos;i="5.96,138,1665471600"; d="scan'208";a="668514039" Received: from adhjerms-mobl1.amr.corp.intel.com (HELO rpedgeco-desk.amr.corp.intel.com) ([10.212.227.68]) by orsmga001-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Nov 2022 15:39:33 -0700 From: Rick Edgecombe <rick.p.edgecombe@intel.com> To: x86@kernel.org, "H . Peter Anvin" <hpa@zytor.com>, Thomas Gleixner <tglx@linutronix.de>, Ingo Molnar <mingo@redhat.com>, 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 <arnd@arndb.de>, Andy Lutomirski <luto@kernel.org>, Balbir Singh <bsingharora@gmail.com>, Borislav Petkov <bp@alien8.de>, Cyrill Gorcunov <gorcunov@gmail.com>, Dave Hansen <dave.hansen@linux.intel.com>, Eugene Syromiatnikov <esyr@redhat.com>, Florian Weimer <fweimer@redhat.com>, "H . J . Lu" <hjl.tools@gmail.com>, Jann Horn <jannh@google.com>, Jonathan Corbet <corbet@lwn.net>, Kees Cook <keescook@chromium.org>, Mike Kravetz <mike.kravetz@oracle.com>, Nadav Amit <nadav.amit@gmail.com>, Oleg Nesterov <oleg@redhat.com>, Pavel Machek <pavel@ucw.cz>, Peter Zijlstra <peterz@infradead.org>, Randy Dunlap <rdunlap@infradead.org>, "Ravi V . Shankar" <ravi.v.shankar@intel.com>, Weijiang Yang <weijiang.yang@intel.com>, "Kirill A . Shutemov" <kirill.shutemov@linux.intel.com>, John Allen <john.allen@amd.com>, kcc@google.com, eranian@google.com, rppt@kernel.org, jamorris@linux.microsoft.com, dethoma@microsoft.com, akpm@linux-foundation.org Cc: rick.p.edgecombe@intel.com, Yu-cheng Yu <yu-cheng.yu@intel.com>, Peter Xu <peterx@redhat.com> Subject: [PATCH v3 13/37] mm: Move VM_UFFD_MINOR_BIT from 37 to 38 Date: Fri, 4 Nov 2022 15:35:40 -0700 Message-Id: <20221104223604.29615-14-rick.p.edgecombe@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20221104223604.29615-1-rick.p.edgecombe@intel.com> References: <20221104223604.29615-1-rick.p.edgecombe@intel.com> ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1667601575; a=rsa-sha256; cv=none; b=3mrpIn/5LVVHvT5MqNVTZCK6T5+ktbJy3VkZPamiImSctbm+MYCC8y+MjkKlWsNd58rLnh JwFApMNLMYcqRWHctUMpG+RCrV4/UR69HvaTSjucxMqQ+GYtTWBUyisfX+xnSd3IKZ4Dz6 wXwYVp7yxEIcTrz2BsheIwEupEddoSM= ARC-Authentication-Results: i=1; imf30.hostedemail.com; dkim=none ("invalid DKIM record") header.d=intel.com header.s=Intel header.b="dS+Ey/oE"; spf=pass (imf30.hostedemail.com: domain of rick.p.edgecombe@intel.com designates 134.134.136.20 as permitted sender) smtp.mailfrom=rick.p.edgecombe@intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1667601575; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references:dkim-signature; bh=Ai+0YI2QFg3LVALS3FzlacVh2cbs76Lwk562aTEZcng=; b=MvF2YuPwbShuhS6wabK6geDYQZwuvwGQtwI5hR/EZv86W//crctR7lXNtkOKcmRKZOsgRP SREg55+aS7RlhEHyf8aQL1rsIQTTauvT+G1Se2aREad8K8dYDN1EMb/KgMGyZKfp+Alv5y sw9RVv4u8T87RVqmSSwiWxETlnBsY0I= Authentication-Results: imf30.hostedemail.com; dkim=none ("invalid DKIM record") header.d=intel.com header.s=Intel header.b="dS+Ey/oE"; spf=pass (imf30.hostedemail.com: domain of rick.p.edgecombe@intel.com designates 134.134.136.20 as permitted sender) smtp.mailfrom=rick.p.edgecombe@intel.com; dmarc=pass (policy=none) header.from=intel.com X-Rspam-User: X-Rspamd-Server: rspam01 X-Rspamd-Queue-Id: 7212680006 X-Stat-Signature: i4hdyxwp47zyeotcr3g1r7qtr6m6f8xi X-HE-Tag: 1667601575-897450 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: <linux-mm.kvack.org> |
Series |
Shadow stacks for userspace
|
expand
|
On Fri, Nov 04, 2022 at 03:35:40PM -0700, Rick Edgecombe wrote: > From: Yu-cheng Yu <yu-cheng.yu@intel.com> > > To introduce VM_SHADOW_STACK as VM_HIGH_ARCH_BIT (37), and make all > VM_HIGH_ARCH_BITs stay together, move VM_UFFD_MINOR_BIT from 37 to 38. Why thought ?!? Changelog utterly fails to provide rationale.
On Tue, 2022-11-15 at 12:20 +0100, Peter Zijlstra wrote: > On Fri, Nov 04, 2022 at 03:35:40PM -0700, Rick Edgecombe wrote: > > From: Yu-cheng Yu <yu-cheng.yu@intel.com> > > > > To introduce VM_SHADOW_STACK as VM_HIGH_ARCH_BIT (37), and make all > > VM_HIGH_ARCH_BITs stay together, move VM_UFFD_MINOR_BIT from 37 to > > 38. > > Why thought ?!? Changelog utterly fails to provide rationale. I can beef this up. It is just a cleanup type thing to make things less scattered around. Thanks.
diff --git a/include/linux/mm.h b/include/linux/mm.h index 8bbcccbc5565..5314ad0a342d 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h @@ -365,7 +365,7 @@ extern unsigned int kobjsize(const void *objp); #endif #ifdef CONFIG_HAVE_ARCH_USERFAULTFD_MINOR -# define VM_UFFD_MINOR_BIT 37 +# define VM_UFFD_MINOR_BIT 38 # define VM_UFFD_MINOR BIT(VM_UFFD_MINOR_BIT) /* UFFD minor faults */ #else /* !CONFIG_HAVE_ARCH_USERFAULTFD_MINOR */ # define VM_UFFD_MINOR VM_NONE