[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ZmBW3-j2f-pNdIzT@jlelli-thinkpadt14gen4.remote.csb>
Date: Wed, 5 Jun 2024 14:15:27 +0200
From: Juri Lelli <juri.lelli@...hat.com>
To: Petr Mladek <pmladek@...e.com>
Cc: Sergey Senozhatsky <senozhatsky@...omium.org>,
Steven Rostedt <rostedt@...dmis.org>, linux-kernel@...r.kernel.org,
John Ogness <john.ogness@...utronix.de>
Subject: Re: [PATCH linux-next] printk: nbcon: Fix
nbcon_cpu_emergency_flush() when preemptible
On 05/06/24 12:14, Petr Mladek wrote:
> On Wed 2024-06-05 12:10:50, Petr Mladek wrote:
> > On Wed 2024-06-05 11:57:34, John Ogness wrote:
> > > nbcon_cpu_emergency_flush() can be called in a preemptible
> > > context. In that case the CPU is not in an emergency state.
> > > However, in order to see that the CPU is not in an emergency
> > > state (accessing the per-cpu variable), preemption must be
> > > disabled.
> > >
> > > Disable preemption when checking the CPU state.
> > >
> > > Reported-by: Juri Lelli <juri.lelli@...hat.com>
> > > Closes: https://lore.kernel.org/aqkcpca4vgadxc3yzcu74xwq3grslj5m43f3eb5fcs23yo2gy4@gcsnqcts5tos
> > > Fixes: 46a1379208b7 ("printk: nbcon: Implement emergency sections")
> > > Signed-off-by: John Ogness <john.ogness@...utronix.de>
> >
> > Great catch!
> >
> > Reviewed-by: Petr Mladek <pmladek@...e.com>
> >
> > I am going to push it...
>
> Juri, should/could I add your Tested-by ?
A yes please if you like. Thanks!
Tested-by: Juri Lelli <juri.lelli@...hat.com>
You guys were so quick to act on it! :)
Best,
Juri
Powered by blists - more mailing lists