aboutsummaryrefslogtreecommitdiff
path: root/scripts/rustdoc_test_builder.rs
diff options
context:
space:
mode:
authorBrian Mak <[email protected]>2024-08-06 18:16:02 +0000
committerKees Cook <[email protected]>2024-08-12 11:23:25 -0700
commit7d442a33bfe817ab2a735f3d2e430e36305354ea (patch)
tree2cef8899948287a1e75caa6d614ddd9f5c3d0ad1 /scripts/rustdoc_test_builder.rs
parentfb97d2eb542faf19a8725afbd75cbc2518903210 (diff)
binfmt_elf: Dump smaller VMAs first in ELF cores
Large cores may be truncated in some scenarios, such as with daemons with stop timeouts that are not large enough or lack of disk space. This impacts debuggability with large core dumps since critical information necessary to form a usable backtrace, such as stacks and shared library information, are omitted. We attempted to figure out which VMAs are needed to create a useful backtrace, and it turned out to be a non-trivial problem. Instead, we try simply sorting the VMAs by size, which has the intended effect. By sorting VMAs by dump size and dumping in that order, we have a simple, yet effective heuristic. Signed-off-by: Brian Mak <[email protected]> Link: https://lore.kernel.org/r/[email protected] Acked-by: "Eric W. Biederman" <[email protected]> Signed-off-by: Kees Cook <[email protected]>
Diffstat (limited to 'scripts/rustdoc_test_builder.rs')
0 files changed, 0 insertions, 0 deletions