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

(cherry picked from commit 8fd0ec53deaad34383d4b344714b74d67105b258)

Details

Provenance
markjAuthored on Oct 16 2023, 8:12 PM
Reviewer
kib
Differential Revision
D42098: uiomove: Add some assertions
Parents
rGf5a9a849e903: socket tests: Add a regression test for ktrace+recv(MSG_TRUNC)
Branches
Unknown
Tags
Unknown