]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
linux: make ptrace(2) return EIO when trying to peek invalid address
authorEdward Tomasz Napierala <trasz@FreeBSD.org>
Sat, 24 Apr 2021 10:37:06 +0000 (11:37 +0100)
committerEdward Tomasz Napierala <trasz@FreeBSD.org>
Sat, 24 Apr 2021 10:37:50 +0000 (11:37 +0100)
commit77651151f3caec7d2440404f8c0f1819757d1d5d
tree7d3673d7ff43a243dc5cfe3a87bb858d904433ef
parenta9b66dbd9169f102dea92ad369a09c0d20cdb41f
linux: make ptrace(2) return EIO when trying to peek invalid address

Previously we've returned the error from native ptrace(2), ENOMEM.
This confused Linux strace(2).

Reviewed By: emaste
Sponsored By: EPSRC
Differential Revision: https://reviews.freebsd.org/D29925
sys/amd64/linux/linux_ptrace.c