Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp3499866imw; Mon, 11 Jul 2022 09:46:53 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sHBRTUFLRpO4jIhxGeWSYe/dXomBx7KUbhEHa38N+by8Lhtl3hd9KZf6zQ53moymBxouL4 X-Received: by 2002:a05:6402:228f:b0:43a:896:e4f0 with SMTP id cw15-20020a056402228f00b0043a0896e4f0mr25295239edb.81.1657558012966; Mon, 11 Jul 2022 09:46:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657558012; cv=none; d=google.com; s=arc-20160816; b=ZAMy2k4bAGfhpH4j3yj6CIQr87o4TPViOrSsLEzS1Wbg6bH1zjDV3KVN99nhI1ccaB jb2DJwC8JN6eOJSZmx71NMTGtKzXFWQmophrCM8ybg+Iwxlp3ZWOwU6QnqdUWDiX8Fb2 K1OXCKzv7SzxW0hwIFHdtwcBcR/BeYHmYL8hr2PYcZ6NmsJlt3KWpkie4wKeREY7wE32 YM8fsmsKOlBq04nRY2KgCHfUkZ1RD9WMXZJw9VTjjM/9qFolHObyR0gd0dLEIapGJsww td6HeSbtx4onFFA613WcRO2YAd9O3r5jVju/bah+/TNC/8A5Z5YqnXFJ7SNW/AcDgjOl LB7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=Zyet3wkzDwPy+g6OFt8nOy8fGJ9qjoeqAtXSSGqLtoI=; b=wJVXCYhbGEBimSj1wRewS8MfJ0K+VfyzqDYSkx4upig0QlBhUavSkTILcX0yYx8tch j31UwTHadS5aO9z4TU9XOU2ba01mC9GtgeRz7qEqGTkE1ttD3woDargQoCRzVvlpYD4U kKhd+083i/gUjHncclFaX+6kVgnn6eGqng8kavX24kgTHkCqQbVsqKQAvj6mVBLvu6Nx oiBaOmiqP9mOrciY5zZOArkIEEn/M8vKxnql/76fc8Fux78vyc/w9Qn/11Rw4PizRZYe b/Ml3DOR7L8/3iW+GnJMThWBZNhrq8QWigkfn8bPmZdeuJoA3AfLqkbiWqdFmApJ0KGc 2Fkw== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hw10-20020a170907a0ca00b0072643608f99si9346138ejc.531.2022.07.11.09.46.27; Mon, 11 Jul 2022 09:46:52 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231959AbiGKQbe (ORCPT + 99 others); Mon, 11 Jul 2022 12:31:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53210 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229926AbiGKQbc (ORCPT ); Mon, 11 Jul 2022 12:31:32 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EBFB527FDB; Mon, 11 Jul 2022 09:31:31 -0700 (PDT) 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 87C6A611DF; Mon, 11 Jul 2022 16:31:31 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EF0AAC34115; Mon, 11 Jul 2022 16:31:29 +0000 (UTC) Date: Mon, 11 Jul 2022 12:31:28 -0400 From: Steven Rostedt To: John Ogness Cc: Schspa Shi , pmladek@suse.com, sergey.senozhatsky@gmail.com, linux-rt-users@vger.kernel.org, linux-kernel@vger.kernel.org, bigeasy@linutronix.de, tglx@linutronix.de, "Luis Claudio R. Goncalves" Subject: Re: [PATCH 5.10-rt] printk: fix suppressed message print when reboot/panic Message-ID: <20220711123128.1278e203@gandalf.local.home> In-Reply-To: <87a6dj3b5c.fsf@jogness.linutronix.de> References: <20220321053815.71316-1-schspa@gmail.com> <87a6dj3b5c.fsf@jogness.linutronix.de> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 Luis, Care to add this patch into the 5.10-rt stable? Thanks, -- Steve On Mon, 21 Mar 2022 10:36:55 +0106 John Ogness wrote: > On 2022-03-21, Schspa Shi wrote: > > Update printk_seq for suppressed message. > > > > Affects 5.9-rt and 5.10-rt > > > > When message is suppressed, printk_seq should be updated, otherwise > > this message will be printed when reboot. This problem was introduced > > in commit 3edc0c85d154 ("printk: Rebase on top of new ring buffer"). > > > > Signed-off-by: Schspa Shi > > Reviewed-by: John Ogness > > Nice catch. Thanks. > > 5.15-rt also has this issue, although the fix is slightly different. For > 5.15-rt, writing to con->printk_seq (via latched_seq_write()) requires > the console locked. Would you like to post a patch for 5.15-rt as well, > or would you like me to do it? > > 5.16 and beyond does not have this issue. > > John Ogness