From: John Ogness <john.ogness@linutronix.de>
To: 林濬哲 <m18667909625@163.com>, "Petr Mladek" <pmladek@suse.com>
Cc: Steven Rostedt <rostedt@goodmis.org>,
Sergey Senozhatsky <senozhatsky@chromium.org>,
linux-kernel@vger.kernel.org, m18667909625@163.com
Subject: Re: [PATCH] printk: fold consecutive duplicate messages
Date: Mon, 21 Sep 2026 09:58:18 +0206 [thread overview]
Message-ID: <875wzzoxcd.fsf@jogness.linutronix.de> (raw)
In-Reply-To: <20260921050304.73440-1-m18667909625@163.com>
Hi,
On 2026-09-21, 林濬哲 <m18667909625@163.com> wrote:
> A kernel bug can flood the console with thousands of copies of the
> same message, drowning out everything else. Fold consecutive
> duplicates into a single "last message repeated N times" summary,
> flushed when 10 repeats accumulate or a 1s window elapses.
Do you have an example of the _same_ message flooding the console? This
does not sound like a real-world case.
> Known limitation: dedup_lock is not NMI safe; a message from NMI
> context while another CPU holds the lock will spin.
printk _is_ NMI safe _and_ lockless. It needs to stay that way.
John Ogness
next prev parent reply other threads:[~2026-09-21 7:52 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-21 5:03 林濬哲
2026-09-21 7:52 ` John Ogness [this message]
2026-09-21 10:30 ` Lin Junzhe
2026-09-21 12:13 ` John Ogness
2026-09-21 14:40 ` Lin Junzhe
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=875wzzoxcd.fsf@jogness.linutronix.de \
--to=john.ogness@linutronix.de \
--cc=linux-kernel@vger.kernel.org \
--cc=m18667909625@163.com \
--cc=pmladek@suse.com \
--cc=rostedt@goodmis.org \
--cc=senozhatsky@chromium.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®