All of lore.kernel.org
 help / color / mirror / Atom feed
* [LTP] [PATCH v9 0/3] syscalls/modify_ldt: Refactor into new API
@ 2025-04-29 10:44 Ricardo B. Marlière via ltp
  2025-04-29 10:44 ` [LTP] [PATCH v9 1/3] syscalls/modify_ldt: Add lapi/ldt.h Ricardo B. Marlière via ltp
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Ricardo B. Marlière via ltp @ 2025-04-29 10:44 UTC (permalink / raw)
  To: Linux Test Project; +Cc: Ricardo B. Marlière

Signed-off-by: Ricardo B. Marlière <rbm@suse.com>
---
Changes in v9:
- Fixed checkpatch warnings
- Link to v8: https://lore.kernel.org/r/20250408-conversions-modify_ldt-v8-0-7bdba108f64a@suse.com

Changes in v8:
- Added else block to catch all other invalid ret values in safe_modify_ldt
- Removed modify_ldt03 from runtest/syscalls
- Made create_segment static inline void
- Simplified modify_ldt02 as signal() is not needed
- Link to v7: https://lore.kernel.org/r/20250407-conversions-modify_ldt-v7-0-cbeb379360a5@suse.com

Changes in v7:
- Added back the check for asm/ldt.h in configure.ac
- Added back the fallback definition of struct user_desc
- Link to v6: https://lore.kernel.org/r/20250402-conversions-modify_ldt-v6-0-2e4b0e27870e@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

 include/lapi/ldt.h                                 |  59 +++++
 runtest/syscalls                                   |   1 -
 testcases/cve/cve-2015-3290.c                      |  26 +-
 testcases/cve/cve-2017-17053.c                     |   6 +-
 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      | 215 ++++-------------
 .../kernel/syscalls/modify_ldt/modify_ldt03.c      | 105 --------
 10 files changed, 193 insertions(+), 523 deletions(-)
---
base-commit: ec7fb361e6d4781152a0c50f208945c0711bcf08
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] 9+ messages in thread

end of thread, other threads:[~2025-05-07 11:33 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-29 10:44 [LTP] [PATCH v9 0/3] syscalls/modify_ldt: Refactor into new API Ricardo B. Marlière via ltp
2025-04-29 10:44 ` [LTP] [PATCH v9 1/3] syscalls/modify_ldt: Add lapi/ldt.h Ricardo B. Marlière via ltp
2025-05-07 11:08   ` Martin Doucha
2025-05-07 11:23   ` Martin Doucha
2025-05-07 11:32     ` Ricardo B. Marlière via ltp
2025-04-29 10:44 ` [LTP] [PATCH v9 2/3] syscalls/modify_ldt02: Refactor into new API Ricardo B. Marlière via ltp
2025-04-29 10:44 ` [LTP] [PATCH v9 3/3] syscalls/modify_ldt01: " Ricardo B. Marlière via ltp
2025-05-06  9:44 ` [LTP] [PATCH v9 0/3] syscalls/modify_ldt: " Cyril Hrubis
2025-05-06 10:19   ` Ricardo B. Marlière via ltp

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.