From: Qing Wang <wangqing7171@gmail.com>
To: syzbot+e57495fb65020ac7bca4@syzkaller.appspotmail.com
Cc: agruenba@redhat.com, gfs2@lists.linux.dev,
linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com
Subject: Re: [syzbot] [gfs2?] memory leak in gfs2_quota_init (2)
Date: Thu, 5 Feb 2026 14:31:45 +0800 [thread overview]
Message-ID: <20260205063145.1039526-1-wangqing7171@gmail.com> (raw)
In-Reply-To: <69837ac0.a00a0220.34fa92.0011.GAE@google.com>
#syz test
diff --git a/fs/gfs2/super.c b/fs/gfs2/super.c
index f6cd907b3ec6..1144720a17ff 100644
--- a/fs/gfs2/super.c
+++ b/fs/gfs2/super.c
@@ -149,9 +149,12 @@ int gfs2_make_fs_rw(struct gfs2_sbd *sdp)
error = gfs2_quota_init(sdp);
if (!error && gfs2_withdrawn(sdp))
error = -EIO;
- if (!error)
- set_bit(SDF_JOURNAL_LIVE, &sdp->sd_flags);
- return error;
+ if (error) {
+ gfs2_quota_cleanup(sdp);
+ return error;
+ }
+ set_bit(SDF_JOURNAL_LIVE, &sdp->sd_flags);
+ return 0;
}
void gfs2_statfs_change_in(struct gfs2_statfs_change_host *sc, const void *buf)
next prev parent reply other threads:[~2026-02-05 6:31 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-04 16:58 syzbot
2026-02-05 6:31 ` Qing Wang [this message]
2026-02-05 8:41 ` syzbot
2026-02-05 9:06 ` Qing Wang
2026-02-05 9:36 ` 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=20260205063145.1039526-1-wangqing7171@gmail.com \
--to=wangqing7171@gmail.com \
--cc=agruenba@redhat.com \
--cc=gfs2@lists.linux.dev \
--cc=linux-kernel@vger.kernel.org \
--cc=syzbot+e57495fb65020ac7bca4@syzkaller.appspotmail.com \
--cc=syzkaller-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
all inboxes | Powered by JetHome®