public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: syzbot <syzbot+26eedf3631650972f17c@syzkaller.appspotmail.com>
To: linux-kernel@vger.kernel.org
Subject: Re: [syzbot] [PATCH] Test memory leak in ovl_parse_param
Date: Sat, 11 Nov 2023 21:16:12 -0800	[thread overview]
Message-ID: <000000000000e560eb0609eda6e5@google.com> (raw)
In-Reply-To: <0000000000003c31650609ecd824@google.com>

For archival purposes, forwarding an incoming command email to
linux-kernel@vger.kernel.org.

***

Subject: [PATCH] Test memory leak in ovl_parse_param
Author: eadavis@qq.com

please test memory leak in ovl_parse_param

#syz test https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 13d88ac54ddd

diff --git a/fs/overlayfs/params.c b/fs/overlayfs/params.c
index ddab9ea267d1..735ae0db404a 100644
--- a/fs/overlayfs/params.c
+++ b/fs/overlayfs/params.c
@@ -530,6 +530,7 @@ static int ovl_parse_param_lowerdir(const char *name, struct fs_context *fc)
 	return 0;
 
 out_put:
+	ctr->nr = nr;
 	ovl_reset_lowerdirs(ctx);
 
 out_err:


  reply	other threads:[~2023-11-12  5:16 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-12  4:18 [syzbot] [overlayfs?] memory leak in ovl_parse_param syzbot
2023-11-12  5:16 ` syzbot [this message]
2023-11-12  9:10 ` Amir Goldstein
2023-11-12  9:21   ` syzbot
2023-11-12 14:36   ` Amir Goldstein
2023-11-12 15:09     ` syzbot
2023-11-12  9:25 ` [syzbot] [PATCH] Test " syzbot
     [not found] ` <tencent_3FF186FD92C8C658498FEEEE6EDACC8BA706@qq.com>
2023-11-12 14:36   ` [PATCH] ovl: fix " Amir Goldstein

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=000000000000e560eb0609eda6e5@google.com \
    --to=syzbot+26eedf3631650972f17c@syzkaller.appspotmail.com \
    --cc=linux-kernel@vger.kernel.org \
    /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