[LTP] [PATCH v1] setfsuid02_16: Fix uid -1 too large for testing 16-bit version

Petr Vorel pvorel@suse.cz
Mon Mar 13 23:24:37 CET 2023


Hi Ping,

> __kernel_old_uid_t is not defined as 16bit on s390, ppc64le

I suppose limitation on s390 is because __kernel_old_uid_t is guarded only for
kernel, right?

arch/s390/include/uapi/asm/posix_types.h
#ifdef __KERNEL__
typedef unsigned short __kernel_old_uid_t;
typedef unsigned short __kernel_old_gid_t;
#define __kernel_old_uid_t __kernel_old_uid_t
#endif

> Then -1 will be translated into UINT_MAX fails the size check.
> s390, ppc64le use definition in /usr/include/asm-generic/posix_types.h
BTW do you test LTP syscalls on s930 and ppc (32bit)?

Kind regards,
Petr


More information about the ltp mailing list