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)
Thu, Feb 27, 2:54 AM
Unknown Object (File)
Feb 13 2025, 12:17 PM
Unknown Object (File)
Feb 13 2025, 8:16 AM
Unknown Object (File)
Feb 12 2025, 2:26 PM
Unknown Object (File)
Feb 6 2025, 4:39 PM
Unknown Object (File)
Feb 5 2025, 3:12 AM
Unknown Object (File)
Jan 26 2025, 8:58 PM
Unknown Object (File)
Jan 17 2025, 2:29 PM

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