Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C734AC433B4 for ; Mon, 12 Apr 2021 12:43:43 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (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 6254C61246 for ; Mon, 12 Apr 2021 12:43:43 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6254C61246 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; 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=zIPdtU/zvz0e2CcPlr36oPyz4ECeIafXhGUPLoTXbeo=; b=ZQ2/9X8+m3nCrCyrsrfJT7uA7 TwPCxbO4BzJNslhhv1VNFVNx+XM0Ta+S7wAf2niP33sa+Sjox25h9E8au6Vnzq7MVExhbAUOeoTE7 mieP9E3o0c4h0uzJRMEIV3VIlaPgTiHS9v74h7zrWmqZn5ld1lokdpEPTXCjZ6jSLa4HOkX4Bgc/E pUTxM+Ub8enUSo1FUAW0XxpHPp2vDMCsd7r424wXpF94r6YJ/hGyIvN88Tj/Pwt7EDDNmcmCIKb2v bq23O6871l+zzhc2aUFeEBgPkqs4/mRZRCzxs86O9JqJL33UCopcOu+W5gq7QPttxBAKjisSk2ido dIbEskGRg==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lVvtY-006iwR-34; Mon, 12 Apr 2021 12:42:24 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lVvtU-006iw0-M0 for linux-arm-kernel@desiato.infradead.org; Mon, 12 Apr 2021 12:42:20 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: Content-Type:MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc: To:From:Sender:Reply-To:Content-ID:Content-Description; bh=384b9cQdRqjxTAEAqiOcwCJ0VxUFT8DFucRag5+Sazc=; b=244KMskbdRWxTXtfhnZDopIBi3 EbkrmGVVgY+auGMPwBtiqq8zOXAoeUai34TlzayDEbCaiq2evxigQBYgDf1apxJ3I1DRB80ZVN+FA xFj+porwodJOW5mqo3RT1HB3u0yFecmzNEk7IfA7JiLxS/W8ZVFcSRNp8mqw4rjOdPPCABOLG/79C Dki/CaQs73g9VS/Vw2cIhs33cOpLGPqoWRz6kcvfwcP6UtSQLERnxc1IUQxJdC6yU8gk5RdYxVCSN xq59JKJ0qV+MX4IotttHTW24DDRMAJsZXEFEqmkpfBq/IQlppYR7fn0/sof3V1peVTTghhsk5Oo7z YNHC2Ziw==; Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lVvtS-006EDW-4K for linux-arm-kernel@lists.infradead.org; Mon, 12 Apr 2021 12:42:19 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id 38E9861027; Mon, 12 Apr 2021 12:42:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1618231337; bh=OVRYdhZdz+z7jSMcEK8wFCnSzXxY0vKirGvsBrrQnSk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZRR/4GOfmcc55rlJ/5sUwyD7wBUp+vEPJc51jaIqSQhA7LWL1Fc24Cxpn16fjsw1p 4CnR8Pn5JCzvgeqezZr0TS+sD0dekDQKqk1ipiJViAbmf3D5e2Mp72JfFk/W95tFxo 9P96ZMr8CVqG9gkg8FWdDwgxVrhSEs233RpXgfw3IkDGiKN6aFofDQA+fS90DJsf59 +qezikW7rnGajpyNAGEBEFGMNqycCI34ifSh87ayfyfpqBbisUUiVtW8J0Ipuq3W/F vqwUpLxZU6MGy40dhReyl76y9n7LKUHU/U658UZU6ULv74Ra2FsBbEg6b2Aon3b7Vl dcZyCy9dRv/pw== From: Will Deacon To: Catalin Marinas , linux-arm-kernel@lists.infradead.org Cc: kernel-team@android.com, Will Deacon , Vincenzo Frascino , Mark Rutland Subject: Re: [PATCH] arm64: mte: Ensure TIF_MTE_ASYNC_FAULT is set atomically Date: Mon, 12 Apr 2021 13:42:12 +0100 Message-Id: <161823112587.3590804.10679745971599326262.b4-ty@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210409173710.18582-1-catalin.marinas@arm.com> References: <20210409173710.18582-1-catalin.marinas@arm.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210412_054218_218886_13E80FAF X-CRM114-Status: UNSURE ( 8.54 ) 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 Fri, 9 Apr 2021 18:37:10 +0100, Catalin Marinas wrote: > The entry from EL0 code checks the TFSRE0_EL1 register for any > asynchronous tag check faults in user space and sets the > TIF_MTE_ASYNC_FAULT flag. This is not done atomically, potentially > racing with another CPU calling set_tsk_thread_flag(). > > Replace the non-atomic ORR+STR with an STSET instruction. While STSET > requires ARMv8.1 and an assembler that understands LSE atomics, the MTE > feature is part of ARMv8.5 and already requires an updated assembler. Applied to arm64 (for-next/fixes), thanks! [1/1] arm64: mte: Ensure TIF_MTE_ASYNC_FAULT is set atomically https://git.kernel.org/arm64/c/2decad92f473 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