Page MenuHomeFreeBSD

pipe: keep uio_iovcnt consistent
ClosedPublic

Authored by emaste on Jul 17 2024, 5:15 PM.
Tags
None
Referenced Files
F151380692: D45999.id141049.diff
Wed, Apr 8, 12:45 AM
Unknown Object (File)
Mon, Apr 6, 11:32 PM
Unknown Object (File)
Thu, Apr 2, 11:45 PM
Unknown Object (File)
Thu, Apr 2, 11:45 PM
Unknown Object (File)
Thu, Apr 2, 11:08 AM
Unknown Object (File)
Tue, Mar 31, 4:54 PM
Unknown Object (File)
Sun, Mar 22, 2:41 PM
Unknown Object (File)
Sat, Mar 21, 9:46 AM
Subscribers

Details

Summary

In pipe_build_write_buffer we increment uio_iov but did not update uio_iovcnt. This would not cause an OOB read (thanks to to uio_resid) but is inconsistent and could be an issue if other code changes are made in the future.

Reported by: Synactiv

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable