public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] [PATCH v6 0/3] syscalls/modify_ldt: Refactor into new API
@ 2025-04-02  9:58 Ricardo B. Marlière via ltp
  2025-04-02  9:58 ` [LTP] [PATCH v6 1/3] syscalls/modify_ldt: Add lapi/ldt.h Ricardo B. Marlière via ltp
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Ricardo B. Marlière via ltp @ 2025-04-02  9:58 UTC (permalink / raw)
  To: Linux Test Project; +Cc: Ricardo B. Marlière

Signed-off-by: Ricardo B. Marlière <rbm@suse.com>
---
Changes in v6:
- Removed unnecessary includes
- Made modify_ldt wrappers static inline
- Used const struct user_desc *ptr instead of void *ptr in modify_ldt()
- Fixed modify_ldt01 test description
- Added explanation on removal of "asm/ldt.h" check in commit message
- Removed run_child() in modify_ldt02 - instead, removed unused "int val"
- Renamed "entry" to "invalid_entry" in modify_ldt01
- Link to v5: https://lore.kernel.org/r/20250331-conversions-modify_ldt-v5-0-fd6ea1491956@suse.com

Changes in v5:
- Removed unnecessary #error
- Removed const specifier in cve-2015-3290.c
- Improved modify_ldt02 test description
- Added run_child() in modify_ldt02
- Removed unnecessary #include "lapi/ldt.h" in files that include common.h
- Extended coverage in modify_ldt01
- Link to v4: https://lore.kernel.org/r/20250328-conversions-modify_ldt-v4-0-a5ee7b8d82aa@suse.com

Changes in v4:
- Re-added the asm/ldt.h include directive
- Link to v3: https://lore.kernel.org/r/20250328-conversions-modify_ldt-v3-0-f6b6ee1c9144@suse.com

Changes in v3:
- Dropped the set_thread_area01 patch for a later series
- Squashed modify_ldt03 commit into modify_ldt01
- Renamed struct tst_case to tcase
- Removed fallback definition of struct user_desc
- Link to v2: https://lore.kernel.org/r/20250327-conversions-modify_ldt-v2-0-2907d4d3f6c0@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 (3):
      syscalls/modify_ldt: Add lapi/ldt.h
      syscalls/modify_ldt02: Refactor into new API
      syscalls/modify_ldt01: Refactor into new API

 configure.ac                                       |   1 -
 include/lapi/ldt.h                                 |  36 +++
 testcases/cve/cve-2015-3290.c                      |  37 +--
 testcases/cve/cve-2017-17053.c                     |  12 +-
 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      | 264 +++++----------------
 .../kernel/syscalls/modify_ldt/modify_ldt02.c      | 221 ++++-------------
 .../kernel/syscalls/modify_ldt/modify_ldt03.c      | 105 --------
 10 files changed, 183 insertions(+), 533 deletions(-)
---
base-commit: 0a0a77c444b56483bdde5046feeb518c96f5e4a2
change-id: 20250324-conversions-modify_ldt-816329223f6e

Best regards,
-- 
Ricardo B. Marlière <rbm@suse.com>


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2025-04-07 12:41 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-02  9:58 [LTP] [PATCH v6 0/3] syscalls/modify_ldt: Refactor into new API Ricardo B. Marlière via ltp
2025-04-02  9:58 ` [LTP] [PATCH v6 1/3] syscalls/modify_ldt: Add lapi/ldt.h Ricardo B. Marlière via ltp
2025-04-07 12:09   ` Cyril Hrubis
2025-04-07 12:18     ` Ricardo B. Marli��re via ltp
2025-04-02  9:58 ` [LTP] [PATCH v6 2/3] syscalls/modify_ldt02: Refactor into new API Ricardo B. Marlière via ltp
2025-04-07 12:24   ` Cyril Hrubis
2025-04-02  9:58 ` [LTP] [PATCH v6 3/3] syscalls/modify_ldt01: " Ricardo B. Marlière via ltp
2025-04-07 12:41   ` Cyril Hrubis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox