Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F159257118
D29925.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
390 B
Referenced Files
None
Subscribers
None
D29925.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
@@ -313,6 +313,8 @@
error = kern_ptrace(td, PT_READ_I, pid, addr, 0);
if (error == 0)
error = copyout(td->td_retval, data, sizeof(l_int));
+ else if (error == ENOMEM)
+ error = EIO;
td->td_retval[0] = error;
return (error);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jun 12, 11:29 PM (8 h, 31 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33917032
Default Alt Text
D29925.diff (390 B)
Attached To
Mode
D29925: linux: make ptrace(2) return EIO when trying to peek invalid address
Attached
Detach File
Event Timeline
Log In to Comment