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)
Fri, Nov 28, 3:13 AM
Unknown Object (File)
Sat, Nov 8, 11:26 PM
Unknown Object (File)
Nov 4 2025, 12:21 AM
Unknown Object (File)
Nov 3 2025, 10:30 PM
Unknown Object (File)
Nov 3 2025, 10:30 PM
Unknown Object (File)
Nov 3 2025, 10:30 PM
Unknown Object (File)
Nov 3 2025, 6:45 PM
Unknown Object (File)
Oct 28 2025, 1:47 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