[Bug libc/27892] powerpc: scv ABI error handling fails to check IS_ERR_VALUE
msc at linux dot ibm.com
sourceware-bugzilla@sourceware.org
Mon May 24 20:26:22 GMT 2021
https://sourceware.org/bugzilla/show_bug.cgi?id=27892
Matheus Castanho <msc at linux dot ibm.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #1 from Matheus Castanho <msc at linux dot ibm.com> ---
Issue fixed on master for glibc 2.34:
commit 7de36744ee1325f35d3fe0ca079dd33c40b12267
Author: Nicholas Piggin <npiggin@gmail.com>
Date: Thu May 20 11:00:36 2021 -0300
powerpc: Fix handling of scv return error codes [BZ #27892]
When using scv for templated ASM syscalls, current code interprets any
negative return value as error, but the only valid error codes are in
the range -4095..-1 according to the ABI.
This commit also fixes 'signal.gen.test' strace test, where the issue
was first identified.
Reviewed-by: Matheus Castanho <msc@linux.ibm.com>
This patch was also backported to 2.33 by commit
0ef0e6de7fdfa18328b09ba2afb4f0112d4bdab4.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Glibc-bugs
mailing list