Re: [PATCH v3] binfmt_elf: Dump smaller VMAs first in ELF cores
From: Kees Cook
Date: Sat Feb 22 2025 - 10:15:40 EST
On Thu, Feb 20, 2025 at 10:59:06PM +0000, Brian Mak wrote:
> One thing we can do though is to iterate through the pages for all VMAs
> and see if get_dump_page() returns NULL. Then, we use that information
> to calculate a more accurate predicted core dump size.
>
> Patch is below. Thoughts?
I've pushed this to -next for a few days of testing, and if it's all
good, I'll send it to Linus next week for -rc5 (and -stable).
https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git/commit/?h=for-linus/execve&id=ff41385709f01519a97379ce7671ee4e91e301e1
-Kees
--
Kees Cook