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

Ping Fang pifang@redhat.com
Tue Mar 14 02:43:07 CET 2023


Hi Petr,

On Tue, Mar 14, 2023 at 6:32 AM Petr Vorel <pvorel@suse.cz> wrote:

> 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?
>

Yes, userspace header will use definition in
/usr/include/asm-generic/posix_types.h
unsigned int break the size check.

>
> 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)?
>

I don't have these machines at hand.

>
> Kind regards,
> Petr
>
>

-- 
*--*
Thanks & Regards,
*Ping Fang*


More information about the ltp mailing list