Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F106149439
D32355.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
721 B
Referenced Files
None
Subscribers
None
D32355.diff
View Options
diff --git a/sys/amd64/linux/linux_ptrace.c b/sys/amd64/linux/linux_ptrace.c
--- a/sys/amd64/linux/linux_ptrace.c
+++ b/sys/amd64/linux/linux_ptrace.c
@@ -616,6 +616,15 @@
if (sr.sr_error == 0) {
si.exit.rval = sr.sr_retval[0];
si.exit.is_error = 0;
+ } else if (sr.sr_error == EJUSTRETURN) {
+ /*
+ * EJUSTRETURN means the actual value to return
+ * has already been put into td_frame; instead
+ * of extracting it and trying to determine whether
+ * it's an error or not just bail out and let
+ * the ptracing process fall back to another method.
+ */
+ si.op = LINUX_PTRACE_SYSCALL_INFO_NONE;
} else {
si.exit.rval = bsd_to_linux_errno(sr.sr_error);
si.exit.is_error = 1;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Dec 27, 5:19 AM (12 h, 21 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15611444
Default Alt Text
D32355.diff (721 B)
Attached To
Mode
D32355: linux: Make PTRACE_GET_SYSCALL_INFO handle negative errnos
Attached
Detach File
Event Timeline
Log In to Comment