Re: possible bug in powerpc LE compat syscalls with 64-bit args

2016-06-17 Thread Chris Metcalf
On 6/16/2016 5:42 PM, Andreas Schwab wrote: Chris Metcalf writes: Reviewing what other platforms do, it seems like powerpc compat mode may have the opposite problem in little-endian mode, since arguments are passed in "hi, lo" order unconditionally in arch/powerpc/kernel/sys_ppc32.c. PPC32 is

Re: possible bug in powerpc LE compat syscalls with 64-bit args

2016-06-16 Thread Michael Ellerman
On Thu, 2016-06-16 at 11:36 -0400, Chris Metcalf wrote: > Adhemerval Zanella is cleaning up the preadv/pwritev implementation in glibc > and came across an issue with the tilepro/tilegx32 implementation of argument > passing for 64-bit arguments in split register pairs. > > The glibc code base us

Re: possible bug in powerpc LE compat syscalls with 64-bit args

2016-06-16 Thread Andreas Schwab
Chris Metcalf writes: > Reviewing what other platforms do, it seems like powerpc compat mode may > have the opposite problem in little-endian mode, since arguments are passed > in "hi, lo" order unconditionally in arch/powerpc/kernel/sys_ppc32.c. PPC32 is always big-endian. Andreas. -- Andrea

possible bug in powerpc LE compat syscalls with 64-bit args

2016-06-16 Thread Chris Metcalf
Adhemerval Zanella is cleaning up the preadv/pwritev implementation in glibc and came across an issue with the tilepro/tilegx32 implementation of argument passing for 64-bit arguments in split register pairs. The glibc code base uses __LONG_LONG_PAIR to split 64-bit arguments, passing "hi, lo" fo

Re: possible bug in powerpc LE compat syscalls with 64-bit args

2016-06-16 Thread Adhemerval Zanella
On 16/06/2016 12:36, Chris Metcalf wrote: > Adhemerval Zanella is cleaning up the preadv/pwritev implementation in glibc > and came across an issue with the tilepro/tilegx32 implementation of argument > passing for 64-bit arguments in split register pairs. > > The glibc code base uses __LONG_LON