Message ID | 20230227222957.24501-18-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 16B92C7EE3A for <linux-mm@archiver.kernel.org>; Mon, 27 Feb 2023 22:31:59 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id B059E6B008C; Mon, 27 Feb 2023 17:31:47 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 86B176B008A; Mon, 27 Feb 2023 17:31:47 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 5AA966B0095; Mon, 27 Feb 2023 17:31:47 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id 340266B008C for <linux-mm@kvack.org>; Mon, 27 Feb 2023 17:31:47 -0500 (EST) Received: from smtpin15.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 01B4BAB051 for <linux-mm@kvack.org>; Mon, 27 Feb 2023 22:31:46 +0000 (UTC) X-FDA: 80514520254.15.29CE3F6 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by imf28.hostedemail.com (Postfix) with ESMTP id 14789C0010 for <linux-mm@kvack.org>; Mon, 27 Feb 2023 22:31:44 +0000 (UTC) Authentication-Results: imf28.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b="Yc1L1//M"; spf=pass (imf28.hostedemail.com: domain of rick.p.edgecombe@intel.com designates 192.55.52.136 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=1677537105; 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=/86SfoVQQ8nfu81V3XQo7ipVqL9sa+8xwOyr++XyGK4=; b=2qteqjz7+58J5iAo8ioeOJ8A2Lwc1ztAPSyJVyh2Sb9PSHpc7Ob0SUBj5jIvR9u3Yi64gd REQB5cnyVV6Fk//oxof8wNpxK+9LRxliAbPKxkgUzFnO8oXhCnQYt+/p11Cxx1X8q4N85u bxvAKpCdzEupJF5w7EuJ1/cOMNx8a7A= ARC-Authentication-Results: i=1; imf28.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b="Yc1L1//M"; spf=pass (imf28.hostedemail.com: domain of rick.p.edgecombe@intel.com designates 192.55.52.136 as permitted sender) smtp.mailfrom=rick.p.edgecombe@intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1677537105; a=rsa-sha256; cv=none; b=JF3QkmczJZL6PoX4c9ZJVJDrNX6T2+KjFXxqNaK10LJZ9T7d3C1G8lh7EqUtloPSfJX++k x6gWlZjmB9kN3omkF7yt1u+cLuBXN3epTyb2tQ8pdNGTxZUOBfWzF13JB9bsRPeet7y7W9 NrLYaDpQ5flp3I1DUpbMHmku6JFq0pk= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1677537105; x=1709073105; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=CMdfKd48MBBKKroi4bf9lEd66dWh8s6uGF9cifN2Nfs=; b=Yc1L1//M3ArliK0JF8e+hJp7gs7lduea3rhSrRBrCNd0zKb28U4QhD7h bMQjQAEROVUT3KmxeaPEw6tKgTMryOEcMvbU8FQdWZanwUIXZlKbVdbJv uAFq811qUXSyhiXimcVbPSSPLq7Hi/8WOfcBGpyNgojBtGYAl6lFgB11E yrS39P6pIITwDR8L53HDtwcx6p3cWTUf63rOTnwJuzzLdciCSn7G8bWzS WAPJm3OXSwJzwv3OWNpmvXc3kp9VfbUfjUDd9vt0gf7LWwUiLI1xcOm3O PZUnzI9f/LoPH+1KhI9GIgc8jFHDX4HfW/dhqQNwMSRB8FglGkXKXa5TN g==; X-IronPort-AV: E=McAfee;i="6500,9779,10634"; a="313657413" X-IronPort-AV: E=Sophos;i="5.98,220,1673942400"; d="scan'208";a="313657413" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Feb 2023 14:31:23 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10634"; a="848024589" X-IronPort-AV: E=Sophos;i="5.98,220,1673942400"; d="scan'208";a="848024589" Received: from leonqu-mobl1.amr.corp.intel.com (HELO rpedgeco-desk.amr.corp.intel.com) ([10.209.72.19]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Feb 2023 14:31:19 -0800 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>, 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, Andrew.Cooper3@citrix.com, christina.schimpe@intel.com, david@redhat.com, debug@rivosinc.com Cc: rick.p.edgecombe@intel.com, Yu-cheng Yu <yu-cheng.yu@intel.com>, Peter Xu <peterx@redhat.com> Subject: [PATCH v7 17/41] mm: Move VM_UFFD_MINOR_BIT from 37 to 38 Date: Mon, 27 Feb 2023 14:29:33 -0800 Message-Id: <20230227222957.24501-18-rick.p.edgecombe@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230227222957.24501-1-rick.p.edgecombe@intel.com> References: <20230227222957.24501-1-rick.p.edgecombe@intel.com> X-Rspamd-Server: rspam05 X-Rspamd-Queue-Id: 14789C0010 X-Stat-Signature: i7omett9ayu1txuje6z3jmp31j947pdu X-Rspam-User: X-HE-Tag: 1677537104-258285 X-HE-Meta: U2FsdGVkX1+yeh+Ak1Qy3LE0KzM/PcOVMfHF5sJO7dQYFfVjR7wSFSi5iDshohQUB5PGiGMgRQj6nGK2BP6SOlgwDA7Z/S2Gb1ljzFxh9kw7z7lPJDJsyPUZTnxZ2IsN3a9HoBq3fsaFfkyNItQxQpDgFH4Hdjprx4QB64KOzbfyuh8AKRDFOChm3gPUpGOQomr45SSWtaq8oQrpeKiBYZSxjQ9B2qtHW3Pia0B2ar+wnm9h3ntr9KA6SWXsiD8uRJ/mBz0oFiLK7tH0a4aonmxmumWES//VHYbiXotGjekldv6Ue5CBmTvyWqmhJPBORdJOPruVbXQa64BvFVXkp4GzzFxVCgYBrMIiajiOlNgxWIg2MFiyJGMWOfQXounZAo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ests=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
|
diff --git a/include/linux/mm.h b/include/linux/mm.h index af652444fbba..a1b31caae013 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h @@ -377,7 +377,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