Page MenuHomeFreeBSD

pipe: keep uio_iovcnt consistent
ClosedPublic

Authored by emaste on Jul 17 2024, 5:15 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Jun 30, 4:10 AM
Unknown Object (File)
Mon, Jun 22, 3:44 AM
Unknown Object (File)
May 22 2026, 4:22 PM
Unknown Object (File)
May 21 2026, 9:07 PM
Unknown Object (File)
May 17 2026, 1:59 AM
Unknown Object (File)
May 17 2026, 1:58 AM
Unknown Object (File)
May 17 2026, 1:49 AM
Unknown Object (File)
Apr 29 2026, 6:50 PM
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