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

Petr Vorel pvorel@suse.cz
Fri Sep 25 10:28:38 CEST 2026


Changes v2->v3:
* Drop first fix from Andrea:
  https://lore.kernel.org/ltp/20260924112514.2375626-2-pvorel@suse.cz/
  I'm no longer confident it's a good idea even if we document changed
  behavior. See my concern:
  https://lore.kernel.org/ltp/20260925080154.GC2387785@pevik/
  Maybe we should either handle this entirely in shmctl03.c as there is
  no other test which needs it.
* Use unsigned long instead of unsigned long long (no need for that big
  variable)
* Use correct macro TST_EXP_EQ_LU() (agent)
* Read shmmax only once (agent)
* TST_EXP_POSITIVE SAFE_SHMCTL() instead of safe_shmctl() (no TBROK
  instead of TFAIL in case of failure and it's probably slightly more
  readable)

Petr Vorel (2):
  shmctl03: Fix shmmax clamped to INT_MAX in 32bit compat mode
  shmctl03: Use test macros

 testcases/kernel/syscalls/shmctl/shmctl03.c | 24 ++++++++++-----------
 1 file changed, 12 insertions(+), 12 deletions(-)

-- 
2.55.0



More information about the ltp mailing list