Page MenuHomeFreeBSD

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

Authored by markj on Mar 23 2025, 10:36 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Dec 15, 5:24 PM
Unknown Object (File)
Nov 28 2025, 7:53 AM
Unknown Object (File)
Nov 26 2025, 10:53 PM
Unknown Object (File)
Nov 26 2025, 8:48 PM
Unknown Object (File)
Nov 20 2025, 5:45 PM
Unknown Object (File)
Nov 20 2025, 5:28 PM
Unknown Object (File)
Nov 20 2025, 5:26 PM
Unknown Object (File)
Nov 20 2025, 5:19 PM
Subscribers

Details

Summary

uiomove() asserts against this.

proc_iop() already asserts this, but maybe it should be a runtime check.

While here, avoid truncting uio_resid in proc_rwmem().

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 63086
Build 59970: arc lint + arc unit