[LTP] [PATCH v7 0/2] coredump testing suite
Andrea Cervesato
andrea.cervesato@suse.de
Fri Sep 4 13:03:51 CEST 2026
Add a simple coredump01 test that simulate a coredump and verify that it
actually works. This is a small coverage that is missing inside LTP
testing suite.
Add a coredump02 test that verifies ELF data after a coredump.
Signed-off-by: Andrea Cervesato <andrea.cervesato@suse.com>
---
Changes in v7:
- define a common header for the testing suite
- update commit message for coredump02
- Link to v6: https://lore.kernel.org/20260904-coredump-v6-0-b8e3947cc646@suse.com
Changes in v6:
- coredump01 check Elf
- add coredump02 test for Elf validation
- Link to v5: https://lore.kernel.org/20260903-coredump-v5-1-2ea86fa29107@suse.com
Changes in v5:
- resolve path from root for helper
- Link to v4: https://lore.kernel.org/20260902-coredump-v4-1-3f511ea1c96a@suse.com
Changes in v4:
- read back core_pattern after writing and abort with TBROK on mismatch
- read CONFIG_STATIC_USERMODEHELPER once in setup() and cache the result
- remove namespace visibility scaffolding and skip logic from verify_pipe_pattern()
- resolve helper path with tst_get_path() instead of /proc/self/exe readlink
- Link to v3: https://lore.kernel.org/20260824-coredump-v3-1-6429da674718@suse.com
Changes in v3:
- check for CONFIG_COREDUMP=y
- Link to v2: https://lore.kernel.org/20260824-coredump-v2-1-42428acf5216@suse.com
Changes in v2:
- fix CI agent spotted errors
- Link to v1: https://lore.kernel.org/20260820-coredump-v1-1-7ce51603cefb@suse.com
To: Linux Test Project <ltp@lists.linux.it>
---
Andrea Cervesato (2):
coredump01: New core_pattern specifiers test
coredump02: Verify ELF structure and notes
runtest/kernel_misc | 2 +
testcases/kernel/Makefile | 1 +
testcases/kernel/coredump/.gitignore | 3 +
testcases/kernel/coredump/Makefile | 7 +
testcases/kernel/coredump/coredump01.c | 158 ++++++++++++++++++++
testcases/kernel/coredump/coredump01_helper.c | 73 ++++++++++
testcases/kernel/coredump/coredump02.c | 198 ++++++++++++++++++++++++++
testcases/kernel/coredump/coredump_common.h | 69 +++++++++
8 files changed, 511 insertions(+)
---
base-commit: 043bdc49af410f55ece6f61abcdaba7d9580f86a
change-id: 20260820-coredump-22fc731bde08
Best regards,
--
Andrea Cervesato <andrea.cervesato@suse.com>
More information about the ltp
mailing list