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)?