[lvc-project] [PATCH] exec: do not pass invalid pointer to kfree() from free_bprm()
Mateusz Guzik
mjguzik at gmail.com
Tue Nov 5 14:30:09 MSK 2024
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)?
More information about the lvc-project
mailing list