linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Mateusz Guzik <mjguzik@gmail.com>
To: Dmitry Antipov <dmantipov@yandex.ru>
Cc: Tycho Andersen <tandersen@netflix.com>,
	 Alexander Viro <viro@zeniv.linux.org.uk>,
	Christian Brauner <brauner@kernel.org>, Jan Kara <jack@suse.cz>,
	 linux-fsdevel@vger.kernel.org, linux-mm@kvack.org,
	lvc-project@linuxtesting.org,
	 syzbot+03e1af5c332f7e0eb84b@syzkaller.appspotmail.com,
	vbabka@suse.cz
Subject: Re: [PATCH] exec: do not pass invalid pointer to kfree() from free_bprm()
Date: Tue, 5 Nov 2024 12:30:09 +0100	[thread overview]
Message-ID: <m4ws43n63iaxuyx7qm667ppsloc63aex34erarrflp6huzlaru@xrpnve3kjluy> (raw)
In-Reply-To: <20241105111344.2532040-1-dmantipov@yandex.ru>

On Tue, Nov 05, 2024 at 02:13:44PM +0300, Dmitry Antipov wrote:
> Syzbot has reported the following BUG:
> 
> kernel BUG at arch/x86/mm/physaddr.c:23!
[..]
> Since 'bprm_add_fixup_comm()' may set 'bprm->argv0' to 'ERR_PTR()',
> errno-lookalike invalid pointer should not be passed to 'kfree()'.
> 

The specific instance aside, perhaps kfree could get patched up to
complain about it (when debug is enabled)?


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

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-05 11:13 Dmitry Antipov
2024-11-05 11:30 ` Mateusz Guzik [this message]
2024-11-05 13:08   ` Dmitry Antipov
2024-11-05 13:35 ` 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=m4ws43n63iaxuyx7qm667ppsloc63aex34erarrflp6huzlaru@xrpnve3kjluy \
    --to=mjguzik@gmail.com \
    --cc=brauner@kernel.org \
    --cc=dmantipov@yandex.ru \
    --cc=jack@suse.cz \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=lvc-project@linuxtesting.org \
    --cc=syzbot+03e1af5c332f7e0eb84b@syzkaller.appspotmail.com \
    --cc=tandersen@netflix.com \
    --cc=vbabka@suse.cz \
    --cc=viro@zeniv.linux.org.uk \
    /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