Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp2015925pxp; Mon, 21 Mar 2022 09:31:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJymW7C/8XYAatZ6p/BFBKc4AxVs/Fo8SHUGSnOYsExutOKVXY2EhSNLmfLmduU0jRrtk1dW X-Received: by 2002:a05:6402:1cc1:b0:413:2cfb:b6ca with SMTP id ds1-20020a0564021cc100b004132cfbb6camr23482820edb.265.1647880313901; Mon, 21 Mar 2022 09:31:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647880313; cv=none; d=google.com; s=arc-20160816; b=jka7m1PCaTn4fQ4gpwIHhYVkIJpDDYqXANEckT8cfN6DhH4hywCOVDz4Ap4/UX7krR wRqc/MIKtIxsNiKT/ZpNiNOHMAwPJtMCt9ZWmV4hKXwdNdP0aelpHsRVmAa8qDasON8f oMUntKDMAqIWSpCJo75/gxyqOXnuOd6q7DXTOsUR5SjtsOGT3JpIhZnz3OcyqwlLIVxd ZRXHvHKOGx83WxLtr8uCdnPjBFlopdUBEg30G6CPWKnnbagxLfzagh9bCtJu/oHEGaZI v0BnXNWI7BdixC/ISbviPycadpfC1hgjGWbiwC3LXZFAJuA4DFajsvufoTxI0eD/rB4P Pbww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:dkim-signature:dkim-signature:from; bh=/jbJ+hlrmhBqwAxQYwBxLE0FutwoN2QmvQOGRzH0pko=; b=YTJ7k9IW3VYijWq7ybLrB5rCznh4I3vBKK7XewPB4IZmUt98tP+PnUBW3sUFWAPprv 9hzTB1XIbGLmpcpVl45J4XtpnTPbO287B6RT183aWgJKTLYkyIJAk4OWdNoS7ye5+k40 +4vasrSOVNQD8Fd8zg44WvxcsgOxYdIw9Yzw6EO0k/WBjCBuuJxdhvRqc/4mVNtq6Ggf bCg1RryR3S+ge6slzQKDd+Zm/fY+ykQj260ZpMcusthDQ1Pd0JhL5pub10AgUaDCrGXj EFLaRMhiWdbUZXYB9uVo7zXleFKcZ5CPapE2kH+CRaEAsYV1k1SWm/pTuqQhnpBya5Zu gw0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=IADmSlZ6; dkim=neutral (no key) header.i=@linutronix.de; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f29-20020a1709063f5d00b006df76385c4bsi7719298ejj.235.2022.03.21.09.31.26; Mon, 21 Mar 2022 09:31:53 -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=pass header.i=@linutronix.de header.s=2020 header.b=IADmSlZ6; dkim=neutral (no key) header.i=@linutronix.de; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345903AbiCUJcX (ORCPT + 99 others); Mon, 21 Mar 2022 05:32:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36544 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238396AbiCUJcW (ORCPT ); Mon, 21 Mar 2022 05:32:22 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D8050554B7; Mon, 21 Mar 2022 02:30:57 -0700 (PDT) From: John Ogness DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1647855056; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=/jbJ+hlrmhBqwAxQYwBxLE0FutwoN2QmvQOGRzH0pko=; b=IADmSlZ6RCvbQq0Vnz5tUBbtX9STyzztEG5j7/VUQJUMjtbuXTp5qsIn7k3F8bVky6iCyi 77P+ex1h+Fa3dkpXn8YmON2VAYMbdrLUbelKySpjdbFid5QING2fE11Fo/5qf34TT8gbgr ASV1H34T0gBBUuzO5MLrGEf6RXW9MvjWzmidHRSnAU9QJbk3+ZwxU2UvQfkw0mexV4V5hr ctQaCi63OHYvjhkRQxsnmNjn6pTpRjnWsLcMkPRBUepKKZoNi5Tq6UCU3Bz5akttG5QJjA vB+D8TX7PwvvgrvKCtJOtqEcTG3hBjWcVYxFlo0y2vRV9a9n2vSzMIpDIWZ6cA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1647855056; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=/jbJ+hlrmhBqwAxQYwBxLE0FutwoN2QmvQOGRzH0pko=; b=40Pn5fOwZzkrht8DcMsuGmZay1AWQZCxZkrofxArFbCux0MHYc4swe6xRjNeppdTg5Pz6b EpvNCmRsjz/LhVBA== To: Schspa Shi , pmladek@suse.com, sergey.senozhatsky@gmail.com, rostedt@goodmis.org Cc: linux-rt-users@vger.kernel.org, linux-kernel@vger.kernel.org, bigeasy@linutronix.de, tglx@linutronix.de, schspa@gmail.com Subject: Re: [PATCH 5.10-rt] printk: fix suppressed message print when reboot/panic In-Reply-To: <20220321053815.71316-1-schspa@gmail.com> References: <20220321053815.71316-1-schspa@gmail.com> Date: Mon, 21 Mar 2022 10:36:55 +0106 Message-ID: <87a6dj3b5c.fsf@jogness.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-3.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,INVALID_DATE_TZ_ABSURD, RCVD_IN_DNSWL_MED,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 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