Skip to content
Snippets Groups Projects
Commit 39ec9eaa authored by Kees Cook's avatar Kees Cook
Browse files

coredump: Only sort VMAs when core_sort_vma sysctl is set


The sorting of VMAs by size in commit 7d442a33 ("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: default avatarMichael Stapelberg <michael@stapelberg.ch>
Closes: https://lore.kernel.org/all/20250218085407.61126-1-michael@stapelberg.de/

 [1]
Fixes: 7d442a33 ("binfmt_elf: Dump smaller VMAs first in ELF cores")
Signed-off-by: default avatarKees Cook <kees@kernel.org>
parent a64dcfb4
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment