From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 8E2D6C3DA7F for ; Thu, 15 Aug 2024 10:40:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=SDXOleNrW5fLFKpGjkr8JfEk3TQJNhZjAUb1mija8II=; b=AU8JZhg4fL8ez0rfDxBPPR8pNM i3REeLvC7OMvo7+ZwMH4a64IpHuCKtKGsohGTquZp9uOJo7Bh+ScXuaYWiaqa2fqmPjY0NjKU53aM XqC+atWzTRLWDkq64Tt9Q8AQ8vs9nvdYZAKuT9q/afJ5kJmg60MOoSGiCaD2UHPU3Dgh/3lXHHzaV KCdan4lj+UuD9gTsFBUvcrlKeYjp7IIVolVW7JJ0XT7Az/jEtXLweA/KjFslDSGWYmvTZuWG64rBZ eKm7iVjdihav1o+OpUWArOei+ZvAdh6Z5c765e1v0TIsc7IZ8k8IplkdMRO/awxUm3Oi15Qcoc84h UPSXLWbA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1seXu0-00000009eRi-3bAW; Thu, 15 Aug 2024 10:40:20 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1seXtI-00000009eAg-1uY5; Thu, 15 Aug 2024 10:39:41 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id B9B6861D97; Thu, 15 Aug 2024 10:39:35 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E7B1FC32786; Thu, 15 Aug 2024 10:39:29 +0000 (UTC) Date: Thu, 15 Aug 2024 11:39:27 +0100 From: Catalin Marinas To: Mark Brown Cc: Will Deacon , Jonathan Corbet , Andrew Morton , Marc Zyngier , Oliver Upton , James Morse , Suzuki K Poulose , Arnd Bergmann , Oleg Nesterov , Eric Biederman , Shuah Khan , "Rick P. Edgecombe" , Deepak Gupta , Ard Biesheuvel , Szabolcs Nagy , Kees Cook , "H.J. Lu" , Paul Walmsley , Palmer Dabbelt , Albert Ou , Florian Weimer , Christian Brauner , Thiago Jung Bauermann , Ross Burton , linux-arm-kernel@lists.infradead.org, linux-doc@vger.kernel.org, kvmarm@lists.linux.dev, linux-fsdevel@vger.kernel.org, linux-arch@vger.kernel.org, linux-mm@kvack.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org Subject: Re: [PATCH v10 01/40] arm64/mm: Restructure arch_validate_flags() for extensibility Message-ID: References: <20240801-arm64-gcs-v10-0-699e2bd2190b@kernel.org> <20240801-arm64-gcs-v10-1-699e2bd2190b@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240801-arm64-gcs-v10-1-699e2bd2190b@kernel.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240815_033936_577994_B361A5B2 X-CRM114-Status: UNSURE ( 9.46 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Thu, Aug 01, 2024 at 01:06:28PM +0100, Mark Brown wrote: > Currently arch_validate_flags() is written in a very non-extensible > fashion, returning immediately if MTE is not supported and writing the MTE > check as a direct return. Since we will want to add more checks for GCS > refactor the existing code to be more extensible, no functional change > intended. > > Reviewed-by: Thiago Jung Bauermann > Signed-off-by: Mark Brown Reviewed-by: Catalin Marinas