public inbox for linux-erofs@ozlabs.org
 help / color / mirror / Atom feed
* Re: [v6.6] BUG: Bad page state in z_erofs_do_read_page
@ 2026-03-25  9:00 Gao Xiang
  2026-03-25  9:24 ` Gao Xiang
  2026-03-25  9:45 ` syzbot
  0 siblings, 2 replies; 4+ messages in thread
From: Gao Xiang @ 2026-03-25  9:00 UTC (permalink / raw)
  To: syzkaller-lts-bugs; +Cc: linux-erofs mailing list, syzbot+b6353e35ae2bab997538

#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,


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-03-25 10:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-25  9:00 [v6.6] BUG: Bad page state in z_erofs_do_read_page Gao Xiang
2026-03-25  9:24 ` Gao Xiang
2026-03-25 10:02   ` syzbot
2026-03-25  9:45 ` syzbot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox