From patchwork Mon Jul 15 19:28:17 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 13733844 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 C7D84C3DA4B for ; Mon, 15 Jul 2024 19:29:27 +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:Content-Transfer-Encoding: MIME-Version:Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=huSdnHG5BNUwnYhR1qXTGgC4BVWj7e3x1mqggJx+mwA=; b=sh1nln7ooN4a+1PDDkjWs38QHM jt0gUVgJozyscXCIftbvOFxk7hzdROurmy8ASqLEMCMoqtuc/XyVSK+sUtKJQZxnqkd4jGkOgJoj/ cZcqx64TU4/VS4mTIPNh/JPutH/vfXA/2nGJKvTxhbd7eFI74AvU6Pg1h9HmZEibUpMIZU2PueBcs FU+ccxTjwxmf3yyxdj5YQ7obAK9F2ZDp0pko5fjXB4rBrhXlZ0iRROXnJP3RhCN3glmF5FIv90vcI E2A5kjBMDAuJwy1BYKSvrK0UMdq01fyhDZNK7nNWLoqA9pu6TZrnFsqvkndegrEq1hr66H9CQym7b kda89Ypw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sTRNq-000000089hq-0tlr; Mon, 15 Jul 2024 19:29:14 +0000 Received: from sin.source.kernel.org ([2604:1380:40e1:4800::1]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sTRNW-000000089dn-3USu for linux-arm-kernel@lists.infradead.org; Mon, 15 Jul 2024 19:28:56 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id 2D5B2CE113E; Mon, 15 Jul 2024 19:28:53 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E240CC32782; Mon, 15 Jul 2024 19:28:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1721071732; bh=dzUiu4N9MqVbq0UlB0Fw5kXCttnLRUaDQ96RVLcV1ho=; h=From:To:Cc:Subject:Date:From; b=LOXWL647vlaPwg5bbyi9t6JTvq9piJsBm2ht1ZEqwd7c+17GqqMrbleLQZid31gSa GbyW+lY9wBiMyPrLoQBZ1xnt+/VXSxS5c3HNZ7jlz9ECUJ9uqNTckWXFd2zABQ88fP 6mqo9HwBx+wUli/Tlo4yYYtdTNF+WMy3+353/DA4tkhMnFzFk8mbEuzH5AMU3Jrpiu x4+c9GV1aNV2X8+HBWe98YV4t+gvIHOpZEGOd/QCRkyU2nsLZyVwhPMdQfKdJVE3Bu JyalU2YETzU6Or4l/NHPqKk8Az07ueyUtnb6PGcwc0a2J63kDelLm9uuG2hLimuet3 g8cx70mrK/P8w== From: Masahiro Yamada To: Catalin Marinas , Will Deacon , linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org, Masahiro Yamada , Randy Dunlap , Mark Rutland Subject: [PATCH v2] arm64: remove redundant 'if HAVE_ARCH_KASAN' in Kconfig Date: Tue, 16 Jul 2024 04:28:17 +0900 Message-ID: <20240715192843.2201439-1-masahiroy@kernel.org> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240715_122855_063305_7DB39CF8 X-CRM114-Status: UNSURE ( 9.58 ) 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 Since commit 0383808e4d99 ("arm64: kasan: Reduce minimum shadow alignment and enable 5 level paging"), HAVE_ARCH_KASAN is always 'y'. The condition 'if HAVE_ARCH_KASAN' is always met. Signed-off-by: Masahiro Yamada Reviewed-by: Randy Dunlap Acked-by: Mark Rutland Reviewed-by: Anshuman Khandual --- Changes in v2: - update description - add reviewed-by and acked-by arch/arm64/Kconfig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index c87d16b12e9b..d37cbfc3031e 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -167,9 +167,9 @@ config ARM64 select HAVE_ARCH_JUMP_LABEL select HAVE_ARCH_JUMP_LABEL_RELATIVE select HAVE_ARCH_KASAN - select HAVE_ARCH_KASAN_VMALLOC if HAVE_ARCH_KASAN - select HAVE_ARCH_KASAN_SW_TAGS if HAVE_ARCH_KASAN - select HAVE_ARCH_KASAN_HW_TAGS if (HAVE_ARCH_KASAN && ARM64_MTE) + select HAVE_ARCH_KASAN_VMALLOC + select HAVE_ARCH_KASAN_SW_TAGS + select HAVE_ARCH_KASAN_HW_TAGS if ARM64_MTE # Some instrumentation may be unsound, hence EXPERT select HAVE_ARCH_KCSAN if EXPERT select HAVE_ARCH_KFENCE