Re: [PATCH v3] binfmt_elf: Dump smaller VMAs first in ELF cores
From: Brian Mak
Date: Wed Feb 19 2025 - 15:41:24 EST
On Feb 19, 2025, at 11:52 AM, Kees Cook <kees@xxxxxxxxxx> wrote:
> Yeah, I think we need to make this a tunable. Updating the kernel breaks
> elftools, which isn't some weird custom corner case. :P
>
> So, while it took a few months, here is a report of breakage that I said
> we'd need to watch for[1]. :)
>
> Is anyone able to test this patch? And Brian will setting a sysctl be
> okay for your use-case?
Hi Kees,
Yes, a sysctl tunable would be good here. I can test this patch in the
next day or two.
I will also scratch up a patch to bring us back into compliance with the
ELF specifications, and see if that fixes the userspace breakage with
elfutils, while not breaking gdb or rr.
Thanks,
Brian