[LTP] [PATCH v2 0/6] syscalls/modify_ldt: Refactor into new API
rbm@suse.com
rbm@suse.com
Thu Mar 27 15:28:23 CET 2025
Signed-off-by: Ricardo B. Marlière <rbm@suse.com>
---
Changes in v2:
- Also refactored set_thread_area01
- Merged simple tests (including the existing modify_ldt03) into
modify_ldt01 instead of splitting it
- Added SAFE_MODIFY_LDT() macro
- Removed check to asm/ldt.h in configure.ac
- Used tst_syscall() instead of syscall() in modify_ldt() @ lapi/ldt.h
- Link to v1: https://lore.kernel.org/r/20250324-conversions-modify_ldt-v1-0-8d6d82f10768@suse.com
---
Ricardo B. Marlière (6):
syscalls/modify_ldt: Add lapi/ldt.h
syscalls/modify_ldt03: Refactor into new API
syscalls/modify_ldt02: Refactor into new API
syscalls/modify_ldt01: Refactor into new API
syscalls/modify_ldt03: Merge into modify_ldt01
syscalls/set_thread_area01: Refactor into new API
configure.ac | 1 -
include/lapi/ldt.h | 61 +++++
testcases/cve/cve-2015-3290.c | 35 +--
testcases/cve/cve-2017-17053.c | 10 +-
testcases/kernel/syscalls/fork/fork05.c | 5 +-
testcases/kernel/syscalls/modify_ldt/.gitignore | 5 +-
testcases/kernel/syscalls/modify_ldt/common.h | 30 +++
.../kernel/syscalls/modify_ldt/modify_ldt01.c | 258 ++++-----------------
.../kernel/syscalls/modify_ldt/modify_ldt02.c | 222 ++++--------------
.../kernel/syscalls/modify_ldt/modify_ldt03.c | 105 ---------
.../syscalls/set_thread_area/set_thread_area.h | 31 ---
.../syscalls/set_thread_area/set_thread_area01.c | 120 +++-------
12 files changed, 236 insertions(+), 647 deletions(-)
---
base-commit: e3aef569f0d0e7079bdb646965afaf419035eaa5
change-id: 20250324-conversions-modify_ldt-816329223f6e
Best regards,
--
Ricardo B. Marlière <rbm@suse.com>
More information about the ltp
mailing list