From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4B4643893656; Mon, 24 May 2021 20:26:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4B4643893656 From: "msc at linux dot ibm.com" To: glibc-bugs@sourceware.org Subject: [Bug libc/27892] powerpc: scv ABI error handling fails to check IS_ERR_VALUE Date: Mon, 24 May 2021 20:26:22 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: libc X-Bugzilla-Version: 2.33 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: msc at linux dot ibm.com X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: msc at linux dot ibm.com X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: glibc-bugs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Glibc-bugs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 May 2021 20:26:22 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D27892 Matheus Castanho changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #1 from Matheus Castanho --- Issue fixed on master for glibc 2.34: commit 7de36744ee1325f35d3fe0ca079dd33c40b12267=20 Author: Nicholas Piggin 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 This patch was also backported to 2.33 by commit 0ef0e6de7fdfa18328b09ba2afb4f0112d4bdab4. --=20 You are receiving this mail because: You are on the CC list for the bug.=