Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp619927pxb; Tue, 1 Feb 2022 07:08:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJz02OqVDOMmPmLZAlKQfDCU7CHGX6uILg4EfsRZqRpk6PPAZPUOKkogwhRa6mVLkFH+2r2B X-Received: by 2002:a17:907:3ea7:: with SMTP id hs39mr21044259ejc.729.1643728098962; Tue, 01 Feb 2022 07:08:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643728098; cv=none; d=google.com; s=arc-20160816; b=x0MTPCyCGmbR7fU/lhKD0LM5yVOsdWEdz2x2tp1pxbIXEE/mgRsYr4JmibyZlZw9nK Jbmo3l00aOsLcMa/av6uFGGOQwVyt8Mnks9hTa58kTz61D5ytndBQe3pvvEvWT4gT5CM u5S9U9uF2pNCXWghu1/kd0CoqBs3aDjqmiUEGZmrqDjgdWvuawb9C6ZTpabrJs8s52Sd 8vBxDG29chd+QxILxGXpBoAWY8EoWBkprEBd34cMA+BQ0JjRVZ8erdTyLXR2Izi+MyjP ZXXHlSnX0Bq/MmfdrDyewX/8/DlrDDnlehR6EdskKlB92wf1ZQ1Fd92JO6voLrVeoQyQ SdqQ== 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=rWOA7x4JTGmUaaqer4V8M/UqUsskm1TU7+zgP9SdxMw=; b=IKrpAA84f2hhAQ1p0HAtbg2wtGbgVFVPEqxaSBs/3WQ5/nk8OXh5wOM5lGdgSTghtM qoTiTkerengAmCpNSviHmU3YKZEv/tHRyDt2q8hFa4WhRbptK9KR9JriEltmiyxREk0I QtGN7yIbf/RHnZC2IPGojNUQo02TiHjj6PPwj/+blXWwT6ZVs3m2aKt9KE5lva6oU1Pu rLeqo0TsoZczb68dfoxv8AKdUaE/YCe/XKUAG/rd8j4Z670fLLuL6rSD6H8NwbMocy0n Gcy6WXU/5jBWuCfIBuWBLNgdmzQkTDiWB8VEa4MMgCP4BCsrYlw/prw0tkkknne74mZN n/uQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="M83wa1/o"; 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=pass (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 s7si9843783edq.265.2022.02.01.07.07.52; Tue, 01 Feb 2022 07:08:18 -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; dkim=pass header.i=@intel.com header.s=Intel header.b="M83wa1/o"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1356726AbiA3VWt (ORCPT + 99 others); Sun, 30 Jan 2022 16:22:49 -0500 Received: from mga06.intel.com ([134.134.136.31]:52029 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1356498AbiA3VV6 (ORCPT ); Sun, 30 Jan 2022 16:21:58 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1643577718; x=1675113718; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=QfQ3gnydDk43tc7xRks6jpks+dE4z+Vv7IsUEppemXA=; b=M83wa1/o1T12qpgh+d/uQbSRpsb96rrdY41Fkda/+uSA9RaSq3c4My18 PGRLt/GGD7sOTiNlxz18KaotTqLCn9PrPO9aOa/TsYnhb9E2a9w0sClDK bUvJH8BONOt0I4lNQF7XHJabZbk7z7M/AuxsSNDG3Qd0cKjzrcfFXSsv0 2+IF9igJotEfeUca+1amqdfEdUMW1q0jdUhoDf0dzRAsq1HhJJ0sjiDxN 4aXQ0RTcynfMqPK1LUHVJZbIrIXZ8vdoGSNbXj2IUCg9d3aMDBxUgs9GY STi6y9iwiSGjnMn1ktW9oP30q0a4iX4zuDm/S1+0aoIaZgi7DzEajewhy Q==; X-IronPort-AV: E=McAfee;i="6200,9189,10243"; a="308104927" X-IronPort-AV: E=Sophos;i="5.88,329,1635231600"; d="scan'208";a="308104927" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Jan 2022 13:21:56 -0800 X-IronPort-AV: E=Sophos;i="5.88,329,1635231600"; d="scan'208";a="536856770" Received: from avmallar-mobl1.amr.corp.intel.com (HELO rpedgeco-desk.amr.corp.intel.com) ([10.209.123.171]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Jan 2022 13:21:55 -0800 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" , Dave Martin , Weijiang Yang , "Kirill A . Shutemov" , joao.moreira@intel.com, John Allen , kcc@google.com, eranian@google.com Cc: rick.p.edgecombe@intel.com, Yu-cheng Yu , Peter Xu Subject: [PATCH 13/35] mm: Move VM_UFFD_MINOR_BIT from 37 to 38 Date: Sun, 30 Jan 2022 13:18:16 -0800 Message-Id: <20220130211838.8382-14-rick.p.edgecombe@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220130211838.8382-1-rick.p.edgecombe@intel.com> References: <20220130211838.8382-1-rick.p.edgecombe@intel.com> 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 e1a84b1e6787..2e74c0ab6d25 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h @@ -359,7 +359,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