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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 14C50C433EF for ; Wed, 29 Sep 2021 17:51:20 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id DA7F26135E for ; Wed, 29 Sep 2021 17:51:19 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org DA7F26135E Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=BW4lNQoq3UkgzvPfGB0Dmll1Zezy1H+ux9GijtnsZiE=; b=wBAmq8H6ZQrpGH r027pcOUGWwDf74+1JY4BAdImI0F7riLZaadGs/Yuuo2YWfezm7yzuZzEVmRQTd+ECOUGGcjQPd1U 7Vz6Fo4HmQpgdue4pyYKLqAMOeNE3wodDPwFU+IpKYtRmn3QECRt0LC0mFNdGUbWxddHcvotfemjt hq78wxcR88hv9vscTVUqLxWIBr6jI+4tkKRTZdGk4MGE+esb79a9z6pmUtYVQw1T5W4VahWlvMq2F FEN6IGhzp3ozZD/ZkAtqw7kUNe/gPceeZm445kYyT8FUqnOp13Cj8zPC2nomeIvYdueiPSRKdd4jJ KXCK8jh7YtP5wlIrjdhg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mVdhu-00Bxp5-2a; Wed, 29 Sep 2021 17:49:26 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mVdhC-00Bxc2-G9 for linux-arm-kernel@lists.infradead.org; Wed, 29 Sep 2021 17:48:43 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id BA2F9614C8; Wed, 29 Sep 2021 17:48:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1632937722; bh=d5PjVcH/DhsWsumQ4WjfbLbnplobjTl2Nu8Xk/HjujI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BR7ZTQfrLCbE/Wybbc9ypeYGY+ItOIcqsxCN5JH08K2tQxzTXLFcBUcDgXG7nYfIk A4r8oM9xgI/c/b1j7yUHW+RecLf8lX8nCslmeLG9DkdmeGYumtaWxp94+RBxyquGXe PX4v1vJWQsrmKbcRmIimxASR/KqVoJZFE7mHzEis+KW74On4NE2fBWJj85o+jIn0gx aCx3kPlGqTHsFWQazQb1tx5K4nbPvkthYGMQhGJ6EI2944Mqfzr98+ZW4uK2wk5xU/ NHqewsY39+dKJa71w6EF2c6vIrd44STr1jJU16krK4+VHBawFZTx8m5n9eL9BaGiDV Xl2C4Jm40mTzQ== From: Will Deacon To: Vincenzo Frascino , Andrey Konovalov , Peter Collingbourne , Catalin Marinas Cc: kernel-team@android.com, Will Deacon , linux-arm-kernel@lists.infradead.org, Evgenii Stepanov Subject: Re: [PATCH v4] arm64: kasan: mte: move GCR_EL1 switch to task switch when KASAN disabled Date: Wed, 29 Sep 2021 18:48:26 +0100 Message-Id: <163293233729.929433.3922733084649990608.b4-ty@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210924010655.2886918-1-pcc@google.com> References: <20210924010655.2886918-1-pcc@google.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210929_104842_588287_AC13D0FD X-CRM114-Status: UNSURE ( 9.57 ) 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Thu, 23 Sep 2021 18:06:55 -0700, Peter Collingbourne wrote: > It is not necessary to write to GCR_EL1 on every kernel entry and > exit when HW tag-based KASAN is disabled because the kernel will not > execute any IRG instructions in that mode. Since accessing GCR_EL1 > can be expensive on some microarchitectures, avoid doing so by moving > the access to task switch when HW tag-based KASAN is disabled. > > > [...] Applied to arm64 (for-next/mte), thanks! [1/1] arm64: kasan: mte: move GCR_EL1 switch to task switch when KASAN disabled https://git.kernel.org/arm64/c/e5af50a5df57 Cheers, -- Will https://fixes.arm64.dev https://next.arm64.dev https://will.arm64.dev _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel