Commit 003904b
Herton R. Krzesinski
coredump: Only sort VMAs when core_sort_vma sysctl is set
JIRA: https://issues.redhat.com/browse/RHEL-96077
commit 39ec9ea
Author: Kees Cook <kees@kernel.org>
Date: Wed Feb 19 11:53:16 2025 -0800
coredump: Only sort VMAs when core_sort_vma sysctl is set
The sorting of VMAs by size in commit 7d442a3 ("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: 7d442a3 ("binfmt_elf: Dump smaller VMAs first in ELF cores")
Signed-off-by: Kees Cook <kees@kernel.org>
Signed-off-by: Herton R. Krzesinski <herton@redhat.com>1 parent c39ea9a commit 003904b
2 files changed
+24
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
212 | 212 | | |
213 | 213 | | |
214 | 214 | | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
215 | 226 | | |
216 | 227 | | |
217 | 228 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| 66 | + | |
66 | 67 | | |
67 | 68 | | |
68 | 69 | | |
| |||
1025 | 1026 | | |
1026 | 1027 | | |
1027 | 1028 | | |
| 1029 | + | |
| 1030 | + | |
| 1031 | + | |
| 1032 | + | |
| 1033 | + | |
| 1034 | + | |
| 1035 | + | |
| 1036 | + | |
| 1037 | + | |
1028 | 1038 | | |
1029 | 1039 | | |
1030 | 1040 | | |
| |||
1255 | 1265 | | |
1256 | 1266 | | |
1257 | 1267 | | |
1258 | | - | |
1259 | | - | |
| 1268 | + | |
| 1269 | + | |
| 1270 | + | |
1260 | 1271 | | |
1261 | 1272 | | |
1262 | 1273 | | |
0 commit comments