HomeFreeBSD

ptrace: Do not pass a negative resid to proc_rwmem()

Description

ptrace: Do not pass a negative resid to proc_rwmem()

While here, avoid truncting uio_resid in proc_rwmem().

Reviewed by: kib
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D49479

(cherry picked from commit 1a80a157cbe823ba75bb88823dbf1b245fe87c99)

Details

Provenance
markjAuthored on Mar 29 2025, 8:54 AM
Reviewer
kib
Differential Revision
D49479: ptrace: Do not pass a negative resid to proc_rwmem()
Parents
rG693664482649: proc: Disallow re-enabling of process itimers during exit
Branches
Unknown
Tags
Unknown