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

* Re: [v6.6] BUG: Bad page state in z_erofs_do_read_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
  1 sibling, 1 reply; 4+ messages in thread
From: Gao Xiang @ 2026-03-25  9:24 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 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


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

* Re: [v6.6] BUG: Bad page state in z_erofs_do_read_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  9:45 ` syzbot
  1 sibling, 0 replies; 4+ messages in thread
From: syzbot @ 2026-03-25  9:45 UTC (permalink / raw)
  To: hsiangkao, linux-erofs, syzkaller-lts-bugs

Hello,

syzbot tried to test the proposed patch but the build/boot failed:

failed to apply patch:
checking file fs/erofs/zdata.c
Hunk #1 FAILED at 1538.
1 out of 1 hunk FAILED



Tested on:

commit:         4fc00fe3 Linux 6.6.129
git tree:       linux-6.6.y
kernel config:  https://syzkaller.appspot.com/x/.config?x=691a6769a86ac817
dashboard link: https://syzkaller.appspot.com/bug?extid=b6353e35ae2bab997538
compiler:       
patch:          https://syzkaller.appspot.com/x/patch.diff?x=105721d6580000



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

* Re: [v6.6] BUG: Bad page state in z_erofs_do_read_page
  2026-03-25  9:24 ` Gao Xiang
@ 2026-03-25 10:02   ` syzbot
  0 siblings, 0 replies; 4+ messages in thread
From: syzbot @ 2026-03-25 10:02 UTC (permalink / raw)
  To: hsiangkao, linux-erofs, syzkaller-lts-bugs

Hello,

syzbot has tested the proposed patch and the reproducer did not trigger any issue:

Reported-by: syzbot+b6353e35ae2bab997538@syzkaller.appspotmail.com
Tested-by: syzbot+b6353e35ae2bab997538@syzkaller.appspotmail.com

Tested on:

commit:         4fc00fe3 Linux 6.6.129
git tree:       linux-6.6.y
console output: https://syzkaller.appspot.com/x/log.txt?x=135ff6da580000
kernel config:  https://syzkaller.appspot.com/x/.config?x=cf30d9e358c58220
dashboard link: https://syzkaller.appspot.com/bug?extid=b6353e35ae2bab997538
compiler:       Debian clang version 21.1.8 (++20251221033036+2078da43e25a-1~exp1~20251221153213.50), Debian LLD 21.1.8
patch:          https://syzkaller.appspot.com/x/patch.diff?x=1029ecba580000

Note: testing is done by a robot and is best-effort only.


^ permalink raw reply	[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