[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <87ldkk34yj.fsf@jogness.linutronix.de>
Date: Wed, 05 Nov 2025 16:00:28 +0106
From: John Ogness <john.ogness@...utronix.de>
To: Petr Mladek <pmladek@...e.com>, Joanne Koong <joannelkoong@...il.com>
Cc: syzbot <syzbot+3686758660f980b402dc@...kaller.appspotmail.com>,
"amurray@...goodpenguin.co.uk" <amurray@...goodpenguin.co.uk>,
brauner@...nel.org, chao@...nel.org, djwong@...nel.org,
jaegeuk@...nel.org, linux-f2fs-devel@...ts.sourceforge.net,
linux-fsdevel@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-xfs@...r.kernel.org, syzkaller-bugs@...glegroups.com
Subject: Re: [syzbot] [iomap?] kernel BUG in folio_end_read (2)
On 2025-11-04, Petr Mladek <pmladek@...e.com> wrote:
> Adding John into Cc.
Thanks.
> It rather looks like an internal bug in the printk_ringbuffer code.
> And there is only one recent patch:
>
> https://patch.msgid.link/20250905144152.9137-2-d-tatianin@yandex-team.ru
>
> The scenario leading to the WARN() is not obvious to me. But the patch
> touched this code path. So it is a likely culprit. I have to think
> more about it.
I have been digging into this all day and I can find no explanation.
The patch you refer to brings a minor semantic change: is_blk_wrapped()
returns false if begin_lpos and next_lpos are the same, whereas before
we would have true. However, these values are not allowed to be the same
(except for the data-less special case values).
> Anyway, I wonder if the WARNING is reproducible and if it happens even after
> reverting the commit 67e1b0052f6bb82be84e3 ("printk_ringbuffer: don't
> needlessly wrap data blocks around")
Note that a quick search on lore shows another similar report:
https://lore.kernel.org/all/69078fb6.050a0220.29fc44.0029.GAE@google.com/
We may want to revert the commit until we can take a closer look at
this.
I will divert my energies from code-reading to trying to reproduce this.
John
Powered by blists - more mailing lists