HomeFreeBSD

linux: make ptrace(2) return EIO when trying to peek invalid address

Description

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

(cherry picked from commit 77651151f3caec7d2440404f8c0f1819757d1d5d)

Details

Provenance
traszAuthored on Apr 24 2021, 10:37 AM
Reviewer
emaste
Differential Revision
D29925: linux: make ptrace(2) return EIO when trying to peek invalid address
Parents
rG7256167dfd80: linux: refactor bsd_to_linux_regset() out of linux_ptrace.c
Branches
Unknown
Tags
Unknown