[LTP] [PATCH v7] shmctl03: Fix 32-bit compat mode failure by adjusting comparisons for compat mode truncation
Andrea Cervesato
andrea.cervesato@suse.com
Tue Aug 25 15:52:41 CEST 2026
Hi Wei,
title is too long, it needs to be shorten.
> On 64-bit kernels, the default shmmax and shmall values often exceed
> the range of a 32-bit unsigned long or are clipped differently by the
> kernel's compat syscall layer than they appear in /proc.
Also here we are above 85 lines.
> +/**
> + * TST_ASSERT_BITWISE - Keep only the lower 32 bits of the read value.
> + *
> + * If this flag is set, only the low 32 bits of the value read from the
> + * sysfs/procfs file are compared.
> + */
> +#define TST_ASSERT_BITWISE 0x02
I was thinking that this should be probably TST_ASSERT_TRUNC_32BIT, since
bitwise is misleading.
needs to be fixed before merge.
Thanks,
--
Andrea Cervesato
SUSE QE Automation Engineer Linux
andrea.cervesato@suse.com
More information about the ltp
mailing list