Received: by 2002:a05:6358:16cd:b0:dc:6189:e246 with SMTP id r13csp1557304rwl; Fri, 4 Nov 2022 15:53:53 -0700 (PDT) X-Google-Smtp-Source: AA0mqf6jokPKdOD+wyMN2zDk5dDU5CHfYn54iV6r7fadyp9yFJK7s8ypi8+0xIlDyFn8R1XwtjkC X-Received: by 2002:a17:903:442:b0:188:69e3:23e0 with SMTP id iw2-20020a170903044200b0018869e323e0mr3432605plb.100.1667602433520; Fri, 04 Nov 2022 15:53:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667602433; cv=none; d=google.com; s=arc-20160816; b=ZMXdfuX5PVkEKQC1rcnpb7U4WquAaF/SJMdftv0djnOdNOdBK7saiDikbgy5+whdtm G23MhDTfcw112/cWEb/AZkkDq3CAWUAo63qfJQqDDm9DHgrvfwjfvHwx9x0QM3BmAeKn vYfV8PVZ9N91l8M1YPCDwk6baa4fV2su3YGuIMTr0ohE90An01bdofAYS9WWZOocisZw m0nkcBZ76lpAN7ru4eFuIoYHZ1pKkVS+MkX4r2Px8QMU48RdOAGBXUmC2YKhowQEeg66 WY4jQYcMWSn3DoRT84MSrQbtkkVEX+QmKS1UZLcGtdhGbxaB4tfVGEpqbWZSN8Bf3k89 iSJg== 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=Ai+0YI2QFg3LVALS3FzlacVh2cbs76Lwk562aTEZcng=; b=gGmg942njUd5LBed2F4DHUqPeiSpZRRb2xGsIF/PcrDOVcPHSHmul6mpeLsDuRwfbA +f0b46ctUdYNgwiSeTma07GoO0GNXekGeFI/PxrTLdRxN2AZjFqqAa4RYaHRIKye/Xcb 2zqlZAcZcxmf3vkIYe+5nIawS1KnbpSIhoiP/EVjRIEGdOALfKjJamdySeL1R3+PXV0r 3QcDc7k+EnAo6/o+LUb6aXhTwrrbUTOss0gdQ6EHAChYCDUrgfOVMZd+MuXZvy5PbfUX K20U4isZkNPw3fm1B54P8IyEO7+tikhabP3HAQ+UzjcOFKhVgjp5gZRHrMCGy6W+RFSh gGXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="dS+Ey/oE"; 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 j27-20020a63fc1b000000b00439a5dfc7absi963209pgi.365.2022.11.04.15.53.41; Fri, 04 Nov 2022 15:53:53 -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="dS+Ey/oE"; 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 S230197AbiKDWlf (ORCPT + 97 others); Fri, 4 Nov 2022 18:41:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47438 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230079AbiKDWkK (ORCPT ); Fri, 4 Nov 2022 18:40:10 -0400 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0823A3F050; Fri, 4 Nov 2022 15:39:35 -0700 (PDT) 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="311840526" X-IronPort-AV: E=Sophos;i="5.96,138,1665471600"; d="scan'208";a="311840526" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga103.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 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" , John Allen , 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 , Peter Xu 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> X-Spam-Status: No, score=-5.4 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. Tested-by: Pengfei Xu Tested-by: John Allen Reviewed-by: Kees Cook Acked-by: Peter Xu 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 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 -- 2.17.1