public inbox for linux-erofs@ozlabs.org
 help / color / mirror / Atom feed
From: Gao Xiang <hsiangkao@linux.alibaba.com>
To: syzkaller-lts-bugs@googlegroups.com
Cc: linux-erofs mailing list <linux-erofs@lists.ozlabs.org>,
	syzbot+b6353e35ae2bab997538@syzkaller.appspotmail.com
Subject: Re: [v6.6] BUG: Bad page state in z_erofs_do_read_page
Date: Wed, 25 Mar 2026 17:00:48 +0800	[thread overview]
Message-ID: <8bed2474-4e2c-4a28-a959-bce3bc5190fb@linux.alibaba.com> (raw)

#syz test

diff --git a/fs/erofs/zdata.c b/fs/erofs/zdata.c
index c1f802ecc47b..e744717d6003 100644
--- a/fs/erofs/zdata.c
+++ b/fs/erofs/zdata.c
@@ -1538,6 +1538,8 @@ static struct page *pickup_page_for_submission(struct z_erofs_pcluster *pcl,
  	}
  	unlock_page(page);
  	put_page(page);
+	/* since pcl->compressed_bvecs[nr].page has changed above */
+	oldpage = page;
  out_allocpage:
  	page = erofs_allocpage(pagepool, gfp | __GFP_NOFAIL);
  	if (oldpage != cmpxchg(&pcl->compressed_bvecs[nr].page,


             reply	other threads:[~2026-03-25  9:01 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-25  9:00 Gao Xiang [this message]
2026-03-25  9:24 ` [v6.6] BUG: Bad page state in z_erofs_do_read_page Gao Xiang
2026-03-25 10:02   ` syzbot
2026-03-25  9:45 ` syzbot

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=8bed2474-4e2c-4a28-a959-bce3bc5190fb@linux.alibaba.com \
    --to=hsiangkao@linux.alibaba.com \
    --cc=6855f07b.a00a0220.137b3.005a.GAE@google.com \
    --cc=linux-erofs@lists.ozlabs.org \
    --cc=syzbot+b6353e35ae2bab997538@syzkaller.appspotmail.com \
    --cc=syzkaller-lts-bugs@googlegroups.com \
    /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