linux-yocto/Documentation/admin-guide/sysctl
Kees Cook 5481dee296 coredump: Only sort VMAs when core_sort_vma sysctl is set
[ Upstream commit 39ec9eaaa1 ]

The sorting of VMAs by size in commit 7d442a33bf ("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 <michael@stapelberg.ch>
Closes: https://lore.kernel.org/all/20250218085407.61126-1-michael@stapelberg.de/ [1]
Fixes: 7d442a33bf ("binfmt_elf: Dump smaller VMAs first in ELF cores")
Signed-off-by: Kees Cook <kees@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-03-13 13:02:01 +01:00
..
abi.rst docs: admin-guide: sysctl: avoid using ReST :doc:foo markup 2021-06-17 13:24:36 -06:00
fs.rst docs: admin-guide: sysctl: fix details of struct dentry_stat_t 2023-10-03 09:25:55 -06:00
index.rst
kernel.rst coredump: Only sort VMAs when core_sort_vma sysctl is set 2025-03-13 13:02:01 +01:00
net.rst ARC: Add eBPF JIT support 2024-05-12 16:51:36 -07:00
sunrpc.rst
user.rst time/namespace: Add max_time_namespaces ucount 2020-04-07 12:37:21 +02:00
vm.rst docs: mm: add enable_soft_offline sysctl 2024-07-04 18:06:00 -07:00