From: Andrea Cervesato <andrea.cervesato@suse.de>
To: Linux Test Project <ltp@lists.linux.it>
Subject: [LTP] [PATCH v11 0/3] coredump testing suite
Date: Thu, 10 Sep 2026 15:27:10 +0200 [thread overview]
Message-ID: <20260910-coredump-v11-0-e87e2100dbe3@suse.com> (raw)
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 v11:
- cast ELF description
- Link to v10: https://lore.kernel.org/20260909-coredump-v10-0-0a25762cac77@suse.com
Changes in v10:
- add kernel-doc documentation for SAFE_FILE_VPRINTF()
- fix checkpatch formatting warnings in SAFE_FILE_VPRINTF() headers
- use TST_EXP_EQ_STR() to compare executable name in coredump02
- Link to v9: https://lore.kernel.org/20260909-coredump-v9-0-6b0ee752f57e@suse.com
Changes in v9:
- add SAFE_FILE_VPRINTF() helper in the test library
- factor out shared test logic into coredump_common.h
- use SAFE_FILE_VPRINTF() in set_pattern() to avoid intermediate buffers
- use struct tcase array for test case dispatch in coredump01
- return early in coredump01 if core file is missing before parsing ELF
- document root requirement in coredump02 description
- assert exactly one PT_NOTE segment in coredump02
- validate file bounds for PT_LOAD segments in coredump02
- use TST_EXP_EQ_STRN() to compare executable name in coredump02
- copy unaligned note descriptors to local stack structs to ensure 8-byte alignment
- Link to v8: https://lore.kernel.org/20260908-coredump-v8-0-591f96004543@suse.com
Changes in v8:
- check PT_LOAD data
- Link to v7: https://lore.kernel.org/20260904-coredump-v7-0-a32b7ca1acea@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 (3):
lib: Add SAFE_FILE_VPRINTF()
coredump01: New core_pattern specifiers test
coredump02: Verify ELF structure and notes
include/safe_file_ops_fn.h | 6 +
include/tst_safe_file_ops.h | 14 ++
lib/safe_file_ops.c | 2 +-
runtest/kernel_misc | 2 +
testcases/kernel/Makefile | 1 +
testcases/kernel/coredump/.gitignore | 3 +
testcases/kernel/coredump/Makefile | 7 +
testcases/kernel/coredump/coredump01.c | 162 ++++++++++++++++++++++
testcases/kernel/coredump/coredump01_helper.c | 73 ++++++++++
testcases/kernel/coredump/coredump02.c | 191 ++++++++++++++++++++++++++
testcases/kernel/coredump/coredump_common.h | 52 +++++++
11 files changed, 512 insertions(+), 1 deletion(-)
---
base-commit: 352f9134942933efcfa608b87ae814db603b3228
change-id: 20260820-coredump-22fc731bde08
Best regards,
--
Andrea Cervesato <andrea.cervesato@suse.com>
--
Mailing list info: https://lists.linux.it/listinfo/ltp
next reply other threads:[~2026-09-10 13:27 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-10 13:27 Andrea Cervesato [this message]
2026-09-10 13:27 ` [LTP] [PATCH v11 1/3] lib: Add SAFE_FILE_VPRINTF() Andrea Cervesato
2026-09-10 15:03 ` [LTP] " linuxtestproject.agent
2026-09-10 13:27 ` [LTP] [PATCH v11 2/3] coredump01: New core_pattern specifiers test Andrea Cervesato
2026-09-10 13:27 ` [LTP] [PATCH v11 3/3] coredump02: Verify ELF structure and notes Andrea Cervesato
2026-09-11 6:34 ` [LTP] [PATCH v11 0/3] coredump testing suite Andrea Cervesato via ltp
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260910-coredump-v11-0-e87e2100dbe3@suse.com \
--to=andrea.cervesato@suse.de \
--cc=ltp@lists.linux.it \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.