NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
PR/56864 CVS commit: [netbsd-9] src/lib/libc/arch/hppa/sys
The following reply was made to PR port-hppa/56864; it has been noted by GNATS.
From: "Martin Husemann" <martin%netbsd.org@localhost>
To: gnats-bugs%gnats.NetBSD.org@localhost
Cc:
Subject: PR/56864 CVS commit: [netbsd-9] src/lib/libc/arch/hppa/sys
Date: Mon, 6 Jun 2022 11:31:13 +0000
Module Name: src
Committed By: martin
Date: Mon Jun 6 11:31:13 UTC 2022
Modified Files:
src/lib/libc/arch/hppa/sys [netbsd-9]: ptrace.S
Log Message:
Pull up following revision(s) (requested by skrll in ticket #1464):
lib/libc/arch/hppa/sys/ptrace.S: revision 1.8
Save and restore %r19 the "linkage table pointer register" across the call
to __cerror so if the ptrace syscall fails we can call __cerror again with
the correct %r19 value.
Do this even though the call of __cerror doesn't go via the PLT because
__cerror calls __errno which does.
Analysis and fix from Tom Lane in
PR port-hppa/56864: hppa: ptrace(2) dumps core when returning an error
I changed the location of where %r19 is stored on the stack to follow the
ABI.
To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.6.66.1 src/lib/libc/arch/hppa/sys/ptrace.S
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Home |
Main Index |
Thread Index |
Old Index