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)
Sun, Oct 12, 4:13 AM
Unknown Object (File)
Thu, Sep 18, 11:14 AM
Unknown Object (File)
Wed, Sep 17, 8:29 AM
Unknown Object (File)
Tue, Sep 16, 5:02 PM
Unknown Object (File)
Sep 10 2025, 5:00 AM
Unknown Object (File)
Sep 9 2025, 5:27 PM
Unknown Object (File)
Sep 4 2025, 2:23 PM
Unknown Object (File)
Aug 31 2025, 12:44 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