Re: ld.so arm64 syscalls

2018-05-15 Thread Philip Guenther
On Tuesday, May 15, 2018, Mark Kettenis wrote: > There's a subtle bug in the DL_SYSCALL() implementation on arm64. > Upon error we're supposed to return -errno. The code does a negate of > the lower 32-bit bits. This means that syscalls that return a 64-bit > number

ld.so arm64 syscalls

2018-05-15 Thread Mark Kettenis
There's a subtle bug in the DL_SYSCALL() implementation on arm64. Upon error we're supposed to return -errno. The code does a negate of the lower 32-bit bits. This means that syscalls that return a 64-bit number (i.e. ssize_t) still return a positive number as the upper 32 bits remain zero. So