[LTP] [PATCH v2 0/3] shmctl03: Fix shmmax clamped to INT_MAX in 32bit compat mode

Petr Vorel pvorel@suse.cz
Thu Sep 24 13:25:11 CEST 2026


1st and 2nd commit are pre-release fixes.
NOTE: 3rd commit can be postponed after the release.

Changes v1->v2:
* PATH_KERN_SHMMAX >= INT_MAX check (Cyril)
* General test cleanup in the 3rd commit

Link to v2:
https://patchwork.kernel.org/project/ltp/list/?series=1168638&state=*
https://lore.kernel.org/ltp/20260918125021.1939455-1-pvorel@suse.cz/T/#t

Kind regards,
Petr

Andrea Cervesato (2):
  tst_assert: Use 'long long' to fix 32bit compat mode truncation
  shmctl03: Fix shmmax clamped to INT_MAX in 32bit compat mode

Petr Vorel (1):
  shmctl03: Use safe_shmctl(), TST_EXP_LE_LU()

 lib/tst_assert.c                            |  9 ++++----
 testcases/kernel/syscalls/shmctl/shmctl03.c | 24 ++++++++++-----------
 2 files changed, 16 insertions(+), 17 deletions(-)

-- 
2.55.0



More information about the ltp mailing list