mirror of
https://github.com/torvalds/linux.git
synced 2026-11-29 01:43:18 +00:00
The sorting of VMAs by size in commit7d442a33bf("binfmt_elf: Dump smaller VMAs first in ELF cores") breaks elfutils[1]. Instead, sort based on the setting of the new sysctl, core_sort_vma, which defaults to 0, no sorting. Reported-by: Michael Stapelberg <[email protected]> Closes: https://lore.kernel.org/all/[email protected]/ [1] Fixes:7d442a33bf("binfmt_elf: Dump smaller VMAs first in ELF cores") Signed-off-by: Kees Cook <[email protected]>