[v6.6] BUG: Bad page state in z_erofs_do_read_page

Gao Xiang hsiangkao at linux.alibaba.com
Wed Mar 25 20:24:33 AEDT 2026


#syz test

diff --git a/fs/erofs/zdata.c b/fs/erofs/zdata.c
index 496e4c7c52a4..29a73cbb5535 100644
--- a/fs/erofs/zdata.c
+++ b/fs/erofs/zdata.c
@@ -1485,6 +1485,7 @@ static struct page *pickup_page_for_submission(struct z_erofs_pcluster *pcl,
  	lock_page(page);
  	if (likely(page->mapping == mc)) {
  		WRITE_ONCE(pcl->compressed_bvecs[nr].page, page);
+		oldpage = page;

  		/*
  		 * The cached folio is still in managed cache but without


More information about the Linux-erofs mailing list