From: shaurya <ssranevjti@gmail.com>
To: syzbot+87be6809ed9bf6d718e3@syzkaller.appspotmail.com
Cc: linux-cifs@vger.kernel.org, linux-kernel@vger.kernel.org,
syzkaller-bugs@googlegroups.com
Subject: Re: [syzbot] [cifs?] memory leak in smb3_fs_context_fullpath
Date: Tue, 18 Nov 2025 14:28:59 +0530 [thread overview]
Message-ID: <01e16af7-4f76-40eb-89c2-79386850d756@gmail.com> (raw)
In-Reply-To: <69155df4.a70a0220.3124cb.0016.GAE@google.com>
#syz test:
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
diff --git a/fs/smb/client/fs_context.c b/fs/smb/client/fs_context.c
index 0f894d09157b..975f1fa153fd 100644
--- a/fs/smb/client/fs_context.c
+++ b/fs/smb/client/fs_context.c
@@ -1834,6 +1834,12 @@ static int smb3_fs_context_parse_param(struct
fs_context *fc,
ctx->password = NULL;
kfree_sensitive(ctx->password2);
ctx->password2 = NULL;
+ kfree(ctx->source);
+ ctx->source = NULL;
+ if (fc) {
+ kfree(fc->source);
+ fc->source = NULL;
+ }
return -EINVAL;
}
next prev parent reply other threads:[~2025-11-18 8:59 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-13 4:26 [syzbot] [cifs?] memory leak in smb3_fs_context_fullpath syzbot
2025-11-18 8:58 ` shaurya [this message]
2025-11-18 9:59 ` syzbot
2025-11-18 11:23 ` shaurya
2025-11-18 11:30 ` Aleksandr Nogikh
2025-11-18 11:48 ` syzbot
2025-11-18 11:38 ` shaurya
2025-11-18 12:10 ` 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=01e16af7-4f76-40eb-89c2-79386850d756@gmail.com \
--to=ssranevjti@gmail.com \
--cc=linux-cifs@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=syzbot+87be6809ed9bf6d718e3@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