Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp2819905pxp; Tue, 8 Mar 2022 02:27:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJxPcYvOHmJBg/gEBf633PnWQEzeB8t3Zx2iaUX/NNf6nBJ6LqqRsbdx30J+PsVtinxS1DJK X-Received: by 2002:aa7:d4d6:0:b0:416:30a2:58c7 with SMTP id t22-20020aa7d4d6000000b0041630a258c7mr11994843edr.271.1646735221575; Tue, 08 Mar 2022 02:27:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646735221; cv=none; d=google.com; s=arc-20160816; b=V2xrM5nJAsMz9O6tMSQvUoH8iXdZIeZsOe65mc4K0MMV0H7gKgTV1x70CImj9qPHYP yoUmrSgxrh9efcGC4Hk75DKw4x7wRpfj/iOjbtw10/UxmZ6OYIqFPvzZ0wjrQ5r0TRYW 2i4TMC/oWhbhw07BUykdeWNcFfjTvyIcZf+KHEqON44sspW0adZtPbo61vr1VIXjY26H Ox0AgDhcHKKlNv0u/a3vpL4xjhRtBVtUPljflZOjX7b18rIV/2f+VQfb+uusVdoPJ08a zHbv7YiU8fFFC+zZ0IJbO9aw3qdL/PwGt3eiGE/eAh6IJQNJ41hqVa/A8HFMRirdeuDc 8QKw== 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=jYGBOhY+YvOBE5ajs2EKO/Fw4vwhlIv5/OzecyNBxUY=; b=l2IW6WqsIML0jlPN4UA/Brg81xRkQnuywJPBbV5iPWtplkWncR2HPZdarApfpFoEQ6 t29XmZ0Ucxu/2Q+AU16pudDBJfPR9jdvlwpAXV6nxsJKTz1728MxB1jFJjcBnHtJwHYe PS2xC2D8wxDNCpjOT4VcnhvP9IjuJXICOmpy2PQj9nHSayap8mC6b2FTQuKhl6Dsu/Qw 8xgEmLcgjiKDdyKXlza1158//4+m8bwAzEMAb3PRNkaA8X4Jb7uzCIxVRKOtm/y1P3wA MpZl4rhm1qx8OxSLtksDBw86khlekbZHGYkVFD15RXyjzCKd7Jy+a83wTyHVq4Zqrl/A gUtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=MhVTEzfX; 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 hs1-20020a1709073e8100b006da68ea5bc3si13368684ejc.692.2022.03.08.02.26.37; Tue, 08 Mar 2022 02:27:01 -0800 (PST) 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=MhVTEzfX; 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 S245205AbiCGT6S (ORCPT + 99 others); Mon, 7 Mar 2022 14:58:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49706 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245234AbiCGT56 (ORCPT ); Mon, 7 Mar 2022 14:57:58 -0500 Received: from mail-pj1-x1036.google.com (mail-pj1-x1036.google.com [IPv6:2607:f8b0:4864:20::1036]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 663248A6CA for ; Mon, 7 Mar 2022 11:57:03 -0800 (PST) Received: by mail-pj1-x1036.google.com with SMTP id cx5so15074146pjb.1 for ; Mon, 07 Mar 2022 11:57:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=jYGBOhY+YvOBE5ajs2EKO/Fw4vwhlIv5/OzecyNBxUY=; b=MhVTEzfX5LNA3eMH4yHZ97/d4z2HLkI847Lak9vMWfOCsnxCKRkJarB6Z0uoMDtHIM rLIx2BOpMYdKEUxZnuXYu05aPKWFhrr0yibtTroCkQdK+KT+UgxHfq1J29KiozjMHbii iBv9/FOQazz0oO+Pwamqw9fCHZEwuzKjUbWEQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=jYGBOhY+YvOBE5ajs2EKO/Fw4vwhlIv5/OzecyNBxUY=; b=q3GQ2pNDNY63k3+jMIj9NipS81Ll5jWNrHwiejSWmX81VOMfBb4hOBJctvrTdrauO0 0OuTgUTxE32Ay0JZnKiWimLP0L6dvz+I033Sx228WgEGzenbiksO14sXTsCnCDWUTa2T 0wW98j+zeMIKfWcMZPs3s/BAwxDAayohJQ95kL0V56aXnnnW1H0Yq7E/EHdj7t2toHRw uqWYMVoyo/sHpDudi6lCNDIQm1jesVNUkNcLXV85aJIHXAL7XEsOIfInTD5ktJm5fd1s T06gRtw/y8aDzA3ZbLct1XBRFjv8uKYUOK65cBYx2Zh3wBE4uGHXk42idrHgJRPrfQTg BkRA== X-Gm-Message-State: AOAM530yvQ+TDi61BdaoeYhpZo8Uo2UISsAyuZgrkFZDbvlPG2eXUg40 yHLq2n3fLPZqQq2GfTijpSOzRktK3DxzqA== X-Received: by 2002:a17:902:cccf:b0:14e:eb44:40a1 with SMTP id z15-20020a170902cccf00b0014eeb4440a1mr13882125ple.111.1646683022900; Mon, 07 Mar 2022 11:57:02 -0800 (PST) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id q12-20020a17090aa00c00b001bc6f1baaaesm164252pjp.39.2022.03.07.11.57.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Mar 2022 11:57:02 -0800 (PST) Date: Mon, 7 Mar 2022 11:57:02 -0800 From: Kees Cook To: Max Filippov Cc: linux-xtensa@linux-xtensa.org, Chris Zankel , linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org Subject: Re: [PATCH 1/2] xtensa: rename PT_SIZE to PT_KERNEL_SIZE Message-ID: <202203071157.2218B9B29@keescook> References: <20220306064435.256328-1-jcmvbkbc@gmail.com> <20220306064435.256328-2-jcmvbkbc@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220306064435.256328-2-jcmvbkbc@gmail.com> X-Spam-Status: No, score=-2.6 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,T_SCC_BODY_TEXT_LINE 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 Sat, Mar 05, 2022 at 10:44:34PM -0800, Max Filippov wrote: > PT_SIZE is used by the xtensa port to designate kernel exception frame > size. In preparation for struct pt_regs size change rename PT_SIZE to > PT_KERNEL_SIZE for clarity and change its definition to always cover > only the kernel exception frame. > > Signed-off-by: Max Filippov Reviewed-by: Kees Cook -- Kees Cook