Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp2825493rwb; Thu, 29 Sep 2022 15:56:44 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6KtvASsk9f5xIQDrscQnidxg3iKLP2g9dV6dXkcL6ZvcTPFwCzbIy7WDA63WeqWHGe7XFk X-Received: by 2002:a17:907:2d2a:b0:782:3b7d:a848 with SMTP id gs42-20020a1709072d2a00b007823b7da848mr4290954ejc.569.1664492204236; Thu, 29 Sep 2022 15:56:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664492204; cv=none; d=google.com; s=arc-20160816; b=F0jzn0dyns9OK+sNc9VL+gbe72F9ZPbjhV4RKp/ORMBXOSEGzEbmzMqVEwmYC6JdOp Zc4Ugl2TFuQBK7jS5cyUfbJuGbWLp+mep8tffp5hYTQsN7eF4kpym/yuz5RrZZU0M/// lEK7c0QHpP25cqYAwGQEyDqquTxR6P9g8yCwOfPnjWX6cx7kYrepp9CAwGuqze+ZUwha YfroLuePNIYc4PvFw3LABptVnhO06tf6TiZEmSggXLKQgLo3H6dsgR/fYMWQyVcLtU6b WSLTtr9iKeAJ2Wori77IBAYpfr9kpF8o8xLKm5c2n1dS3c4g16vrkdXXQw4q5VfiNwcf GsEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=jypyb0PivqULfUeLI/7ij5TbVGZAEVUq6T/gxHCECB8=; b=D2jPeEkzqZ4tD4SjCwwWh03V0PcGsSrKdv0+6RgKwSfSL9pTeuCar9SN01B0FEgkqX M05pRXFD49ryiZ+YNEKi+KbQ8+1fZsmmjYJ97IkV9o5p9I/wnyJUbkRFQLONErMOFsGw Dv/5T0birW7O1Hv5zfzZsJJ2HITrFueT66se8lpVUxNRTkzStWzOD8gaKQQDVbCej0j6 MOQe/KebJvLnypD44Y6gstRWC35fiSyI3BySm6MQD5bJkR76wdsFvfszvmY8mMGQ4/Pf QbmUkuhn81MHzbfMhTVpYJROq9MIFEZ2dAGK6Av4xdM4KoJepCS439alAZJqW2juCiCm ZOgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=fIDnnP7a; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j9-20020a05640211c900b00454488ae8cesi825952edw.126.2022.09.29.15.56.18; Thu, 29 Sep 2022 15:56:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=fIDnnP7a; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230191AbiI2WeO (ORCPT + 99 others); Thu, 29 Sep 2022 18:34:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59366 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229644AbiI2WdN (ORCPT ); Thu, 29 Sep 2022 18:33:13 -0400 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7EABF2FFDA; Thu, 29 Sep 2022 15:31:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1664490665; x=1696026665; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=vKTf+AsczWlZQi59ytE2TWI1uBC+j04xvFTJcZyikik=; b=fIDnnP7aIYpDjeRs5e3b1mdarsKX4eYjWVlMJskz5T9Ql00/6eHlSR57 Ui4HtXMUwAFSeTADqmJtPHChhie84ySSdljZa4GIHD/r4dCwc2BZl2IBP MjGjFhV0vDxH8iml9HRdoyqkUseWcjEYfaSPLH5QS8j7ytY+UzgMoyNLp +6yS9/8CWPDLR49mIAJw/4cjM3qkCbm9Kva+dv50LPV4TcIhRAOdxbpcD 9zegRcoGiRXazW4eeUd8DiTL0dw+EOIiWNrxDMf8F8afSSS6dF9DxTOSt OnGQO7Q/Q1aOYCPsDpQ9VCydD4frfd0Okp3vKQRKLgTTRPCqiLnMC5TLF g==; X-IronPort-AV: E=McAfee;i="6500,9779,10485"; a="303531418" X-IronPort-AV: E=Sophos;i="5.93,356,1654585200"; d="scan'208";a="303531418" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Sep 2022 15:30:12 -0700 X-IronPort-AV: E=McAfee;i="6500,9779,10485"; a="691016195" X-IronPort-AV: E=Sophos;i="5.93,356,1654585200"; d="scan'208";a="691016195" Received: from sergungo-mobl.amr.corp.intel.com (HELO rpedgeco-desk.amr.corp.intel.com) ([10.251.25.88]) by fmsmga004-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Sep 2022 15:30:10 -0700 From: Rick Edgecombe To: 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" , Weijiang Yang , "Kirill A . Shutemov" , joao.moreira@intel.com, John Allen , kcc@google.com, eranian@google.com, rppt@kernel.org, jamorris@linux.microsoft.com, dethoma@microsoft.com Cc: rick.p.edgecombe@intel.com, Yu-cheng Yu , Peter Xu Subject: [PATCH v2 13/39] mm: Move VM_UFFD_MINOR_BIT from 37 to 38 Date: Thu, 29 Sep 2022 15:29:10 -0700 Message-Id: <20220929222936.14584-14-rick.p.edgecombe@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220929222936.14584-1-rick.p.edgecombe@intel.com> References: <20220929222936.14584-1-rick.p.edgecombe@intel.com> X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Yu-cheng Yu 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. Signed-off-by: Yu-cheng Yu Reviewed-by: Axel Rasmussen Signed-off-by: Rick Edgecombe Cc: Peter Xu Cc: Mike Kravetz --- include/linux/mm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/mm.h b/include/linux/mm.h index 21f8b27bd9fd..be80fc827212 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 -- 2.17.1