[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20260205090628.1105496-1-wangqing7171@gmail.com>
Date: Thu, 5 Feb 2026 17:06:28 +0800
From: Qing Wang <wangqing7171@...il.com>
To: syzbot+e57495fb65020ac7bca4@...kaller.appspotmail.com
Cc: agruenba@...hat.com,
gfs2@...ts.linux.dev,
linux-kernel@...r.kernel.org,
syzkaller-bugs@...glegroups.com
Subject: Re: [syzbot] [gfs2?] memory leak in gfs2_quota_init (2)
#syz test
diff --git a/fs/gfs2/super.c b/fs/gfs2/super.c
index f6cd907b3ec6..efa0e2452bc7 100644
--- a/fs/gfs2/super.c
+++ b/fs/gfs2/super.c
@@ -147,8 +147,10 @@ int gfs2_make_fs_rw(struct gfs2_sbd *sdp)
}
error = gfs2_quota_init(sdp);
- if (!error && gfs2_withdrawn(sdp))
- error = -EIO;
+ if (!error && gfs2_withdrawn(sdp)) {
+ gfs2_quota_cleanup(sdp);
+ return -EIO;
+ }
if (!error)
set_bit(SDF_JOURNAL_LIVE, &sdp->sd_flags);
return error;
Powered by blists - more mailing lists