Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp3282017rwb; Mon, 3 Oct 2022 12:24:24 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7SqfNbZVF3T56yQbz7AmF3NQUcrxHafDniqkD/pyEm5CSxYmSdcXMJ8acuCNyL9XGQJ7sN X-Received: by 2002:a17:906:9753:b0:787:8e6a:103c with SMTP id o19-20020a170906975300b007878e6a103cmr16406948ejy.337.1664825064093; Mon, 03 Oct 2022 12:24:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664825064; cv=none; d=google.com; s=arc-20160816; b=HSDtt+53Xwl1NdPCYqJLL2S7Fkq5C/UCsCJ27MckqLCB/526fz3pFzko5rpmkL7UWk A199zx6tlpC+zuffpF0C8W0G8N6D85FgOOaWAwOzYfL9XT9LURFJiL96SMS0r/ExM2o3 bcj9m4URzKVlhBT3QZQb8PI+loo09Zufr4aRAEHyjXewoUT0I0q/0cgTXCi/56JQEs26 oNNdvOlAMQ2RLIYgHSmOAOaf1zOlf8qn90yflYIiPc+CJgwaZoAQAweHuIbo+oDmqGgU CGcE06LoIXq9v6NVNyXyuVo0ijRCYymy8w8XsMy5zk4LnXf8tDIq6BG6+r0AbG3ACKGL CaBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=zRpyaE88IPezVOhw7iDOjlsRbtSXUjPIrXfaa3Vd3zo=; b=Ys5FUtJGw0EA5lB7xPaK5PuYfPV6+kulf13pl4kXuGcailzPHwBAHl+C0EsFp8NpzB xJGGzW/GPsKdh+SJ1Z7N089IddyD/I4D03zyOF6OnvLk5u34WDJpRP9kH41PF3I1jRyA aJB93Ev1dLGoV0e517i5WAmevsdmuOZ4QuWF61Q43hvRuNvvb32DtXIIYg9Zq26thmoP 8un2pD9HWvpW8WneXdt2OYJd/U7K26MyXfss2+wX32PJMxSvmpG6oAgN3hKteVvgPSj7 RDV20V7XWi7CU+7sAtTX0RJ5dNH9oDqPup6YaLFbkZnk7H55Nm8b4JTq+MtFPBUMm5LT 60tA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=PWArMU3a; 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=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i16-20020a170906699000b0077f4fcfe49csi7651045ejr.905.2022.10.03.12.23.57; Mon, 03 Oct 2022 12:24:24 -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=@chromium.org header.s=google header.b=PWArMU3a; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230019AbiJCSMB (ORCPT + 99 others); Mon, 3 Oct 2022 14:12:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56142 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229624AbiJCSLz (ORCPT ); Mon, 3 Oct 2022 14:11:55 -0400 Received: from mail-pl1-x629.google.com (mail-pl1-x629.google.com [IPv6:2607:f8b0:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 53C4E37408 for ; Mon, 3 Oct 2022 11:11:47 -0700 (PDT) Received: by mail-pl1-x629.google.com with SMTP id c24so10388312plo.3 for ; Mon, 03 Oct 2022 11:11:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date; bh=zRpyaE88IPezVOhw7iDOjlsRbtSXUjPIrXfaa3Vd3zo=; b=PWArMU3a7kjBwWCA46WWP4zzfx02BDKVm4Jb2Z339yWHDI+W7ISC2qQN51aA/T1cmp 4qlyLW4V3YZ9vPNyyr7J2q4Gwp/zmqjoyGzZ+I0HRBmpyvbyNFV3jXd6BlreiAM4z9sc 3sAwUQEoaOtYanSqbEquaqOPgyq+F9eL1RUcI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date; bh=zRpyaE88IPezVOhw7iDOjlsRbtSXUjPIrXfaa3Vd3zo=; b=KoSUNFmEjjgugpUFYJAe5nPdckpKsROb6ptvA8lTrV3ze3fDDNfd3BggFYZdEn7VEN 8OiKvb06DmBh4BsU7E5zylvi1pvW2iSdwmsP8ESD7SAlimMVsd0LDVzKGHE/5UBgUZK7 pd4zn8lOZEQfuqpZShWYRA444kzRsSB/F3B3VYJW1jAzLl1DJpxUSWfESoopXOJn1laM e6XmCmX9NQ5DkND1gPEg4zIxyOvpaDKAEVMNdQcVjs5olCyNJrF7jbIFzJpmWNEYBRvj NC7/3buA/XQ2fikIPil6TqNwwptPi/LjoN6w/4N578Rtry9uSPrQZsWCl22g9AJs+PeJ SCxw== X-Gm-Message-State: ACrzQf3lzOOjUOjCLcIkVof+DKRWl9p9yooh8T9icQeRVE+bDSPzMxTw PT3vno2L/Xudc1VhJYtGmzQAfg== X-Received: by 2002:a17:902:e54b:b0:178:75b9:f1e9 with SMTP id n11-20020a170902e54b00b0017875b9f1e9mr23501376plf.104.1664820706785; Mon, 03 Oct 2022 11:11:46 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id a15-20020a170902b58f00b0017849a2b56asm7513913pls.46.2022.10.03.11.11.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Oct 2022 11:11:46 -0700 (PDT) Date: Mon, 3 Oct 2022 11:11:45 -0700 From: Kees Cook To: Rick Edgecombe Cc: 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 , 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, Yu-cheng Yu , Peter Xu Subject: Re: [PATCH v2 13/39] mm: Move VM_UFFD_MINOR_BIT from 37 to 38 Message-ID: <202210031111.01D879A@keescook> References: <20220929222936.14584-1-rick.p.edgecombe@intel.com> <20220929222936.14584-14-rick.p.edgecombe@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220929222936.14584-14-rick.p.edgecombe@intel.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS 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 On Thu, Sep 29, 2022 at 03:29:10PM -0700, Rick Edgecombe wrote: > 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: Kees Cook -- Kees Cook