lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <93f61af8-64a4-4993-b003-7f0b94bc5573@oracle.com>
Date: Mon, 16 Jun 2025 09:39:38 -0500
From: Mark Tinguely <mark.tinguely@...cle.com>
To: syzbot <syzbot+c2ea94ae47cd7e3881ec@...kaller.appspotmail.com>,
        jlbec@...lplan.org, joseph.qi@...ux.alibaba.com,
        linux-kernel@...r.kernel.org, mark@...heh.com,
        ocfs2-devel@...ts.linux.dev, syzkaller-bugs@...glegroups.com
Subject: Re: [External] : [syzbot] [ocfs2?] BUG: unable to handle kernel
 paging request in ocfs2_unlock_and_free_folios

 > The reproducer uses FAULT_INJECTION to make memory allocation fail, which
 > causes __filemap_get_folio() to fail, when initializing w_folios[i] in
 > ocfs2_grab_folios_for_write(), it only returns an error code and the 
value
 > of w_folios[i] is the error code, which causes 
ocfs2_unlock_and_free_folios()
 > to recycle the invalid w_folios[i] when releasing folios.
 >
 > Reported-by: syzbot+c2ea94ae47cd7e3881ec@...kaller.appspotmail.com
 > Closes: https://syzkaller.appspot.com/bug?extid=c2ea94ae47cd7e3881ec
 > Signed-off-by: Lizhi Xu <lizhi.xu@...driver.com>
 > ---
 >  fs/ocfs2/aops.c | 1 +
 >  1 file changed, 1 insertion(+)
 >
 > diff --git a/fs/ocfs2/aops.c b/fs/ocfs2/aops.c
 > index 40b6bce12951..89aadc6cdd87 100644
 > --- a/fs/ocfs2/aops.c
 > +++ b/fs/ocfs2/aops.c
 > @@ -1071,6 +1071,7 @@ static int ocfs2_grab_folios_for_write(struct 
address_space *mapping,
 >  			if (IS_ERR(wc->w_folios[i])) {
 >  				ret = PTR_ERR(wc->w_folios[i]);
 >  				mlog_errno(ret);
 > +				wc->w_folios[i] = NULL;
 >  				goto out;
 >  			}
 >  		}
 > --
 > 2.43.0

sorry for the cut and paste reply. My email system rejected and bounced 
the original email.

ACKed-by: Mark Tinguely <mark.tinguely@...cle.com>

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ