Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp2281610pxp; Mon, 21 Mar 2022 15:47:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzOb3F1YT6ZMkvfy/zGFC7K2jXZDFSOyd6dMgPIOKwHJuBab2CAj77Rw4/jhznBY7T4mZPx X-Received: by 2002:a63:1854:0:b0:382:2360:7e08 with SMTP id 20-20020a631854000000b0038223607e08mr16171506pgy.354.1647902873620; Mon, 21 Mar 2022 15:47:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647902873; cv=none; d=google.com; s=arc-20160816; b=krDeYqfVDVnqgHbZyayxScLE+DtR5TpxpqSc6tiSzOXh0ABrg6H7e0dETEqzOTZLjt doWUbJDF94Sm8JudR1YHbSv5O1S8a7ydG2LMEyxe9E4qlTaG1ojauUx4KO/PqH6OsVdU k6jmEzRcvgGSDiDWEjhoFVuwr9Ce502ZCGFxC1BswxGJXOE2+mRrwhATIMtWjml7JtZD Gz8+ImsrujJ9o7OcwKEunrspWy27MZS90BAN0Rmm2kIskENYGk2Hx8xGX1k3r0yc0CYU Rj+swrud9xicSo9te9frncCB5RiI39IqykCvF9TulHR0y0B1AV7QVRYd/kG4XRnNNR3l zEHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=jGIwRa3FcC2veOls//vnX+YOmatILFcNzd8+dnQrnzU=; b=RvybeX7TYrRmR/nrP53M+VrZiqvy8+mVcUMaKhQjxpPaKl3+rrJ5M1wa01nqjJuORw L9SY83BbOSzcpsIMJKLIwOySuAtQjs3p+n7W95zqU6k6DQr8nLCzPc+vS8A9BUgnRcsi TgqeaUJHuMnlEEm7tah+82ubNmwFX2dHoNTEPKuMYstb0M98QF+6bfJ11cCMNtaX+F/Q mu42tMjuBroVlTQPn+lFAgUhANHKFDjCdCQMkQnJtgfZTIlzN0/2g6XQn+0KeKNojwLF baFWBGoV/DXYeyaAqFSVetAygHTIHQ64d6vJTlygUETY0e1o3bG/jucUIu/2gdyri/Xc Nplw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=bcOKssJo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id y24-20020a170902d65800b00153b2d1647dsi11528063plh.133.2022.03.21.15.47.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Mar 2022 15:47:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=bcOKssJo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7422333E942; Mon, 21 Mar 2022 14:55:51 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347106AbiCUL7L (ORCPT + 99 others); Mon, 21 Mar 2022 07:59:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46852 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345896AbiCUL7J (ORCPT ); Mon, 21 Mar 2022 07:59:09 -0400 Received: from mail-qv1-xf2c.google.com (mail-qv1-xf2c.google.com [IPv6:2607:f8b0:4864:20::f2c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6149C15B07D; Mon, 21 Mar 2022 04:57:32 -0700 (PDT) Received: by mail-qv1-xf2c.google.com with SMTP id gh15so6630201qvb.8; Mon, 21 Mar 2022 04:57:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=jGIwRa3FcC2veOls//vnX+YOmatILFcNzd8+dnQrnzU=; b=bcOKssJof9v1EZ4ojQb0oapk0wlHmg6od+QJ9oqIE+DY2FS4ix3TxD+jpd7+xKzDwn Ja0G3dV09hKBYxvUY6jMbY74VUMlJ+NzyKOl3+refyIWLpSDjYZbruk/07GVe+1NNaQu EyuhNHHgy6uUez6OvF8j4bUpUMN4oJTd213hm4+edgtYAU5bJrUqLuutK6Twe4vc0VKJ kRkvoMrmMiomL5IqzytGHjf1SDD1OqBpfxoQpq/J1XJxSbzpif1xFDKLnjcA7nWM7b8R MZwKoJC4oiuXQcJRb1wyjIyvTmy2tpPC4yv+1C+0tri5+yiF2VtnO6aeMtblq43wZ5Qc OwWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=jGIwRa3FcC2veOls//vnX+YOmatILFcNzd8+dnQrnzU=; b=Bayo3M+Yk24mwm5RSdSY63bt6AhxFLBH2KG/kXkgwIJ/AdUCHXVCk2+nNjA3i+cDao iRy7Dguf7GTtr0t79PexeS0l8afXMNAIx21XRWxhoL0KBYND4zncBoYHkqeS8d+nTcOM O9ZOjgU1kIk9QsqbimFvxUdpNnxLZRElj+hqjJHZ07LOaBu4ZDduc1DEI9lIZFyWKlxa d/2ujuE5w88fByExZHUTmtwhSkC/QENvnjfPMb9HN3obC4eWS7ya6OwoSp2ZcSNVDk2b iW+9EL1msyk3nxE9bhPet4UJeUk7av61JGnv/c9HPVctg/k00QRUil2Qjf0ii9gDPI1g txdw== X-Gm-Message-State: AOAM531VLuVc6u9UvMG41sZ6XLGpeDox6ycmtEiVWnMIr6oCdIxuICf8 2lpejFCVp1MgPm90IQRh4rjDRwsFcc7VBtQMMwM= X-Received: by 2002:a05:6214:1cc2:b0:435:1c62:62cc with SMTP id g2-20020a0562141cc200b004351c6262ccmr15758217qvd.26.1647863851445; Mon, 21 Mar 2022 04:57:31 -0700 (PDT) MIME-Version: 1.0 References: <20220321053815.71316-1-schspa@gmail.com> <87a6dj3b5c.fsf@jogness.linutronix.de> In-Reply-To: <87a6dj3b5c.fsf@jogness.linutronix.de> From: Shi Schspa Date: Mon, 21 Mar 2022 19:57:19 +0800 Message-ID: Subject: Re: [PATCH 5.10-rt] printk: fix suppressed message print when reboot/panic To: John Ogness Cc: pmladek@suse.com, sergey.senozhatsky@gmail.com, rostedt@goodmis.org, linux-rt-users@vger.kernel.org, linux-kernel@vger.kernel.org, bigeasy@linutronix.de, tglx@linutronix.de Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 John Ogness writes: > 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? > I have upload a new patch for 5.15-rt, please review it too. Message-Id: <20220321111501.68241-1-schspa@gmail.com> > 5.16 and beyond does not have this issue. > > John Ogness BRs Schspa Shi