From: Matthew Wilcox <willy@infradead.org>
To: Miklos Szeredi <miklos@szeredi.hu>
Cc: Christian Heusel <christian@heusel.eu>,
Josef Bacik <josef@toxicpanda.com>,
Miklos Szeredi <mszeredi@redhat.com>,
regressions@lists.linux.dev, linux-kernel@vger.kernel.org,
linux-fsdevel@vger.kernel.org,
Joanne Koong <joannelkoong@gmail.com>,
linux-mm <linux-mm@kvack.org>
Subject: Re: [REGRESSION][BISECTED] Crash with Bad page state for FUSE/Flatpak related applications since v6.13
Date: Fri, 7 Feb 2025 09:45:57 +0000 [thread overview]
Message-ID: <Z6XWVU6ZTCIl3jnc@casper.infradead.org> (raw)
In-Reply-To: <CAJfpegtaTET+R7Tc1MozTQWmYfgsRp6Bzc=HKonO=Uq1h6Nzgw@mail.gmail.com>
On Fri, Feb 07, 2025 at 10:34:52AM +0100, Miklos Szeredi wrote:
> Seems like page allocation gets an inconsistent page (mapcount != -1)
> in the report below.
I think you're misreading the report. _mapcount is -1. Which means
mapcount is 0.
> > Feb 06 08:54:47 archvm kernel: BUG: Bad page state in process rnote pfn:67587
> > Feb 06 08:54:47 archvm kernel: page: refcount:-1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x67587
> > Feb 06 08:54:47 archvm kernel: flags: 0xfffffc8000020(lru|node=0|zone=1|lastcpupid=0x1fffff)
> > Feb 06 08:54:47 archvm kernel: raw: 000fffffc8000020 dead000000000100 dead000000000122 0000000000000000
flags lru.next lru.prev mapping
> > Feb 06 08:54:47 archvm kernel: raw: 0000000000000000 0000000000000000 ffffffffffffffff 0000000000000000
index private mapcount:refcount memcg_data
> > Feb 06 08:54:47 archvm kernel: page dumped because: PAGE_FLAGS_CHECK_AT_PREP flag(s) set
So the problem is the lru flag is set.
> > Feb 06 08:54:47 archvm kernel: dump_stack_lvl+0x5d/0x80
> > Feb 06 08:54:47 archvm kernel: bad_page.cold+0x7a/0x91
> > Feb 06 08:54:47 archvm kernel: __rmqueue_pcplist+0x200/0xc50
> > Feb 06 08:54:47 archvm kernel: get_page_from_freelist+0x2ae/0x1740
> > Feb 06 08:54:47 archvm kernel: __alloc_frozen_pages_noprof+0x184/0x330
> > Feb 06 08:54:47 archvm kernel: alloc_pages_mpol+0x7d/0x160
> > Feb 06 08:54:47 archvm kernel: folio_alloc_mpol_noprof+0x14/0x40
> > Feb 06 08:54:47 archvm kernel: vma_alloc_folio_noprof+0x69/0xb0
> > Feb 06 08:54:47 archvm kernel: do_anonymous_page+0x32a/0x8b0
It's very weird, because PG_lru is also in PAGE_FLAGS_CHECK_AT_FREE.
So it should already have been checked and not be set. I'm on holiday
until Monday, so I'm not going to dive into this any further.
next prev parent reply other threads:[~2025-02-07 9:46 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <2f681f48-00f5-4e09-8431-2b3dbfaa881e@heusel.eu>
2025-02-07 9:34 ` Miklos Szeredi
2025-02-07 9:45 ` Matthew Wilcox [this message]
2025-02-07 10:25 ` Vlastimil Babka
2025-02-07 10:43 ` Miklos Szeredi
2025-02-07 10:55 ` Vlastimil Babka
2025-02-07 11:16 ` Bernd Schubert
2025-02-07 18:21 ` Bernd Schubert
2025-02-07 18:40 ` Joanne Koong
2025-02-08 0:02 ` Bernd Schubert
2025-02-08 12:25 ` Mantas Mikulėnas
2025-02-07 20:35 ` Mantas Mikulėnas
2025-02-07 11:00 ` Mantas Mikulėnas
2025-02-07 16:49 ` Vlastimil Babka
2025-02-07 17:29 ` Josef Bacik
2025-02-07 18:39 ` Vlastimil Babka
2025-02-07 22:29 ` Matthew Wilcox
2025-02-08 0:22 ` Joanne Koong
2025-02-08 10:11 ` Matthew Wilcox
2025-02-08 15:46 ` Joanne Koong
2025-02-10 8:27 ` Vlastimil Babka
2025-02-10 18:13 ` Joanne Koong
2025-02-10 19:12 ` Josef Bacik
2025-02-10 19:42 ` Jeff Layton
2025-02-10 20:36 ` Matthew Wilcox
2025-02-10 22:38 ` Jeff Layton
2025-02-11 14:01 ` Jeff Layton
2025-02-11 19:23 ` Joanne Koong
2025-02-11 19:41 ` Jeff Layton
2025-02-11 21:10 ` Joanne Koong
2025-02-11 21:01 ` Vlastimil Babka
2025-02-11 21:21 ` Joanne Koong
2025-02-10 18:58 ` Jeff Layton
2025-02-12 18:48 ` Joanne Koong
2025-02-10 8:52 ` [PATCH] fuse: prevent folio use-after-free in readahead Vlastimil Babka
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=Z6XWVU6ZTCIl3jnc@casper.infradead.org \
--to=willy@infradead.org \
--cc=christian@heusel.eu \
--cc=joannelkoong@gmail.com \
--cc=josef@toxicpanda.com \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=miklos@szeredi.hu \
--cc=mszeredi@redhat.com \
--cc=regressions@lists.linux.dev \
/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