HomeFreeBSD

uiomove: Add some assertions

Description

uiomove: Add some assertions

Make sure that we don't try to copy with a negative resid.

Make sure that we don't walk off the end of the iovec array.

Reviewed by: kib
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D42098

Details

Provenance
markjAuthored on Oct 16 2023, 8:12 PM
Reviewer
kib
Differential Revision
D42098: uiomove: Add some assertions
Parents
rG761ae1ce798a: ktrace: Handle uio_resid underflow via MSG_TRUNC
Branches
Unknown
Tags
Unknown