Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp1193464pxp; Thu, 10 Mar 2022 00:05:25 -0800 (PST) X-Google-Smtp-Source: ABdhPJzy/FJ4vayv0g0th4r5MxTRDjMyvrFd6R/IZeg7YgBinLxNFrU0ipIsU3yPmkcffzACbZTb X-Received: by 2002:a17:906:c0c9:b0:6db:207:c41f with SMTP id bn9-20020a170906c0c900b006db0207c41fmr3295936ejb.292.1646899524829; Thu, 10 Mar 2022 00:05:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646899524; cv=none; d=google.com; s=arc-20160816; b=WA7KOb4xlv+j7M2Xq4IR9uek0XU+r284OThXxEV+hUw0dM6vMyFjAl+ObOLE77RT9c bHBg44MmdKFTrmSfgweUcqcpAOUKjZ0qKDUjmMaXXtBVcXB2W2EV1Y06VH1vce+tl01v oNEj6L5n+OovTDY3cdeHH5DI/NL2xTX8gkZ14I2gXq5b6kf//F2vEdamebpoB2eZABE+ caKbL0eK8BXY0mkOuqR7YPxQkpqLT8K6926RgvFar5ZLrJG3j+AHenQqHM0x4858DWoM bZNTf+G0I2+nM5RNCrWCOa7BZrAeKxRG+86Orsx8lnYw/oqhULyQRcfeu3Vy2hFbWYGR CiKg== 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; bh=9N3LIISRJmbGNXLEFt1U/lNzdu35Lm0GFujRsFM7Yu0=; b=uEaxZsaZJXMGFAIkVdvBQt7m5OlRmliM+L6TB2YGNLq04ALeHm6m/ykf31pavLuSkh T3WzMY2dPBVxXfBR3jot/e8GjPw4GhJkBTMXEELc9K+kt/GGS3DOyCtzCL7Cflk5YeHB 5v9TXlhuTg8j9w63pqruONjNmiNW10hLioM2bBH7hmCOHmUuE/pqmbb/gAXZak7WuSbm 45mp+094lDav6vI+kHrpRcywgx+prJkiWW5W6LxN5ozmXKKiXeeNIbc8qCJRrFW4mujw k2hHKXADrxkAayKu3VQWEY/AE8VEWhlwz0hYpamtE+Smx6uFwkr9Fx0mGHUWKfFcDs/6 z9GQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r23-20020a170906705700b006d6e5456b4bsi2478701ejj.833.2022.03.10.00.04.59; Thu, 10 Mar 2022 00:05:24 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237258AbiCIWdJ (ORCPT + 99 others); Wed, 9 Mar 2022 17:33:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34394 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238771AbiCIWdF (ORCPT ); Wed, 9 Mar 2022 17:33:05 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A89C3120F75; Wed, 9 Mar 2022 14:32:05 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 42D5C61BF2; Wed, 9 Mar 2022 22:32:05 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BCA96C340E8; Wed, 9 Mar 2022 22:32:02 +0000 (UTC) Date: Wed, 9 Mar 2022 22:31:59 +0000 From: Catalin Marinas To: Nick Desaulniers Cc: Nathan Chancellor , Will Deacon , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, stable@vger.kernel.org, Marc Zyngier , James Morse Subject: Re: [PATCH] arm64: Do not include __READ_ONCE() block in assembly files Message-ID: References: <20220309191633.2307110-1-nathan@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-6.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_HI,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 Wed, Mar 09, 2022 at 01:53:50PM -0800, Nick Desaulniers wrote: > On Wed, Mar 9, 2022 at 11:19 AM Nathan Chancellor wrote: > > Avoid this problem by just avoiding the CONFIG_LTO=y __READ_ONCE() block > > in asm/rwonce.h with assembly files, as nothing in that block is useful > > to assembly files, which allows ARM_SMCCC_ARCH_WORKAROUND_3 to be > > properly expanded with CONFIG_LTO=y builds. > > > > Cc: stable@vger.kernel.org > > Fixes: e35123d83ee3 ("arm64: lto: Strengthen READ_ONCE() to acquire when CONFIG_LTO=y") > > Link: https://lore.kernel.org/r/20220309155716.3988480-1-maz@kernel.org/ > > Reported-by: Marc Zyngier > > Acked-by: James Morse > > Signed-off-by: Nathan Chancellor > > Thanks for taking point on all of the BHB fallout. > > Reviewed-by: Nick Desaulniers > Tested-by: Nick Desaulniers Thanks for the review and testing. Unfortunately I've just sent the pull request to Linus, so didn't include your tags. -- Catalin