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)
Wed, Oct 23, 4:19 PM
Unknown Object (File)
Oct 10 2024, 5:35 AM
Unknown Object (File)
Oct 3 2024, 11:12 AM
Unknown Object (File)
Oct 1 2024, 1:33 PM
Unknown Object (File)
Oct 1 2024, 5:20 AM
Unknown Object (File)
Sep 8 2024, 7:44 AM
Unknown Object (File)
Sep 4 2024, 6:25 PM
Unknown Object (File)
Sep 1 2024, 8:01 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