linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Dmitry Antipov <dmantipov@yandex.ru>
To: Mateusz Guzik <mjguzik@gmail.com>
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 16:08:47 +0300	[thread overview]
Message-ID: <8d260125-ebd8-4862-bb00-41c2b76326bb@yandex.ru> (raw)
In-Reply-To: <m4ws43n63iaxuyx7qm667ppsloc63aex34erarrflp6huzlaru@xrpnve3kjluy>

On 11/5/24 2:30 PM, Mateusz Guzik wrote:

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

Yes, it may be useful to have WARN_ON() from kfree() for such a case when debugging.

Dmitry



  reply	other threads:[~2024-11-05 13:08 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
2024-11-05 13:08   ` Dmitry Antipov [this message]
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=8d260125-ebd8-4862-bb00-41c2b76326bb@yandex.ru \
    --to=dmantipov@yandex.ru \
    --cc=brauner@kernel.org \
    --cc=jack@suse.cz \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=lvc-project@linuxtesting.org \
    --cc=mjguzik@gmail.com \
    --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