Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp3710104iog; Tue, 28 Jun 2022 00:37:44 -0700 (PDT) X-Google-Smtp-Source: AGRyM1v4ptJpAWxXtLKLUOgp0XdcNHLYFnjipm8UL9Ye81euf8j8JGV/1I+jrHfbLaScmGk4rLRs X-Received: by 2002:a05:6402:ca6:b0:435:8009:aa37 with SMTP id cn6-20020a0564020ca600b004358009aa37mr22028923edb.183.1656401864624; Tue, 28 Jun 2022 00:37:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656401864; cv=none; d=google.com; s=arc-20160816; b=woGom/H+KHc8ymSesqdeTmhl+yGwqMHzbR+WjJcXA3pd2uzsHkOVCoor0x8Y4BpWC7 D/CptlBS4dMTiQSEaOiBWm/qOEe6aBEqIJU0L6t1BUXsvLJvpIqBDPV5naQ0lAfmIdLJ U54g2chOZrvJlQEJHN/UE1JVgSU61/qUp7fZLcih+ttpFlTkam1oB8daB2eRaD3ybC4f 7Omd0hyr80vYR00T4r2rDoSXnAxMnR50C/lW+qgto/ljahdaV/7mMNze5lOD/hKBOZzy mMEbIC3rIYbqDkCiNvzKTXqL3IlcWOHKqnrYQcAUOoXED/3to696ZOMhMzPJS8Ba9ya/ v3Dg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=Um5LV9TZfJK/7Xe9nngBZtUUBgdIT/9/2MAXYjc5dGg=; b=wDaB4/Agppdep3X4KEdIIwA2dAsIhnTpPHj3P4KVjrFg/+FfSvl1o6sfmmfiI/VWj2 Yx/QvVgNYChdTjJy7xa3UaW8Jeg+YnBuxvfyO0dpWc533dLZ0sHuNtfAUkAhV2koGeV/ xYFOJpVBEn4F+C4+KPNOoW2ubLyZCLiLTTjMF9VZH9WP2tBEkrkJ2Z6g6TSFtrk7T6VJ Da0DXbQiPzSaYDZGYMj4Sy/FGTFOi4vKjcsYPbhqGiVBvZWvi9vVYxUqOzAEKIx3JFrZ 3liwJbWzwpHDUiHmAhZq1tPm+NsfH4buvOzYvFkYgs8GA6WrVEeRmi7kEptknBo9xH72 FvXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b="xO/bZdYi"; 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=armlinux.org.uk Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sc4-20020a1709078a0400b00726322a885asi16171340ejc.290.2022.06.28.00.37.16; Tue, 28 Jun 2022 00:37:44 -0700 (PDT) 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; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b="xO/bZdYi"; 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=armlinux.org.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242669AbiF1Hbk (ORCPT + 99 others); Tue, 28 Jun 2022 03:31:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60702 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232877AbiF1Hba (ORCPT ); Tue, 28 Jun 2022 03:31:30 -0400 Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [IPv6:2001:4d48:ad52:32c8:5054:ff:fe00:142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E198B2CE28 for ; Tue, 28 Jun 2022 00:31:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender: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-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=Um5LV9TZfJK/7Xe9nngBZtUUBgdIT/9/2MAXYjc5dGg=; b=xO/bZdYigR1qYBQdMym6NXfT0g LXTZ/NybmGo4ebB5ibs/oCQCvWCO3t9fGa6fgLVHAPKQntu/blFH9foG4v1d8b2901Xq+M/wrdmuC +0MruKVIrrGvGcgMFGHB5KHxAzRyU2mC0+3AoNAIZGUTyT8ip3natLU+EW6ZWCVy6XDYTPP8svpGP 6QrcpFEt0+uAHb/PprUBLkNuO7rMtv+CXxYzvDAdzlDEXBY5xeELP7O0Gq1ZyC8sKrDDIR0YvkgdV r1X7F14Sv10Fq6/07yd+fFmR3v+xfwJ1TS7DjgkSNOrTFnJ+PdypI9KMm+16ju2WnXkyWCivLmx5X 5zl5zPXQ==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:33060) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1o65h0-0001JA-4d; Tue, 28 Jun 2022 08:31:26 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1o65gz-0004jy-GJ; Tue, 28 Jun 2022 08:31:25 +0100 Date: Tue, 28 Jun 2022 08:31:25 +0100 From: "Russell King (Oracle)" To: Dmitry Osipenko Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v1] ARM: Silence proc-v7-bugs.c spam about disabled Spectre workarounds Message-ID: References: <20220519161310.1489625-1-dmitry.osipenko@collabora.com> <253e9ec1-bcd8-c790-95b8-afbcc21e7163@collabora.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <253e9ec1-bcd8-c790-95b8-afbcc21e7163@collabora.com> Sender: Russell King (Oracle) X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_NONE, 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 Tue, Jun 28, 2022 at 10:23:06AM +0300, Dmitry Osipenko wrote: > On 5/19/22 19:13, Dmitry Osipenko wrote: > > Print message about disabled Spectre workarounds only once to stop > > endless spam into KSMG each time CPU goes out from idling state. > > This spam makes system unusable with CONFIG_HARDEN_BRANCH_PREDICTOR=n > > for those who don't care about security and wants maximum performance. > > > > Signed-off-by: Dmitry Osipenko > > --- > > arch/arm/mm/proc-v7-bugs.c | 3 +-- > > 1 file changed, 1 insertion(+), 2 deletions(-) > > > > diff --git a/arch/arm/mm/proc-v7-bugs.c b/arch/arm/mm/proc-v7-bugs.c > > index fb9f3eb6bf48..f9730eba0632 100644 > > --- a/arch/arm/mm/proc-v7-bugs.c > > +++ b/arch/arm/mm/proc-v7-bugs.c > > @@ -108,8 +108,7 @@ static unsigned int spectre_v2_install_workaround(unsigned int method) > > #else > > static unsigned int spectre_v2_install_workaround(unsigned int method) > > { > > - pr_info("CPU%u: Spectre V2: workarounds disabled by configuration\n", > > - smp_processor_id()); > > + pr_info_once("Spectre V2: workarounds disabled by configuration\n"); > > > > return SPECTRE_VULNERABLE; > > } > > Hello Russell, > > Could you please apply this patch? I tried to use yours patch tracker > today and it doesn't allow me to recover my password (server error: MAIL > FROM command failed Detail: Space shortage). That should now be working - thanks to apt needlessly consuming 200MB of space. Please use the patch system, thanks. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!