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
F163757535: D49479.id152888.diff
Sat, Jul 25, 8:49 PM
Unknown Object (File)
Sat, Jul 18, 1:14 PM
Unknown Object (File)
May 15 2026, 6:56 PM
Unknown Object (File)
May 15 2026, 6:56 PM
Unknown Object (File)
May 15 2026, 6:56 PM
Unknown Object (File)
May 15 2026, 6:56 PM
Unknown Object (File)
May 15 2026, 6:43 PM
Unknown Object (File)
Apr 30 2026, 10:15 AM
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