The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: syzbot <syzbot+03e1af5c332f7e0eb84b@syzkaller.appspotmail.com>
To: linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com
Subject: Re: [syzbot] Re: kernel BUG in free_bprm()
Date: Tue, 05 Nov 2024 03:17:51 -0800	[thread overview]
Message-ID: <6729fedf.050a0220.701a.001b.GAE@google.com> (raw)
In-Reply-To: <6729d8d1.050a0220.701a.0017.GAE@google.com>

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

***

Subject: Re: kernel BUG in free_bprm()
Author: dmantipov@yandex.ru

#syz test https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next 850f22c42f4b0a14a015aecc26f46f9948ded6dd

diff --git a/fs/exec.c b/fs/exec.c
index ef18eb0ea5b4..df70ed8e36fe 100644
--- a/fs/exec.c
+++ b/fs/exec.c
@@ -1496,7 +1496,8 @@ static void free_bprm(struct linux_binprm *bprm)
 	if (bprm->interp != bprm->filename)
 		kfree(bprm->interp);
 	kfree(bprm->fdpath);
-	kfree(bprm->argv0);
+	if (!IS_ERR(bprm->argv0))
+		kfree(bprm->argv0);
 	kfree(bprm);
 }
 

  reply	other threads:[~2024-11-05 11:17 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-05  8:35 [syzbot] [fs?] [mm?] kernel BUG in free_bprm syzbot
2024-11-05 11:17 ` syzbot [this message]
2024-11-05 13:33   ` [syzbot] Re: kernel BUG in free_bprm() Kirill A. Shutemov

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=6729fedf.050a0220.701a.001b.GAE@google.com \
    --to=syzbot+03e1af5c332f7e0eb84b@syzkaller.appspotmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --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