Page MenuHomeFreeBSD

vmoff()'s return type is too narrow
ClosedPublic

Authored by alc on Mar 15 2017, 9:35 PM.
Tags
None
Referenced Files
F175814491: D10019.id26291.diff
Tue, Oct 13, 2:30 PM
F175814486: D10019.id29176.diff
Tue, Oct 13, 2:30 PM
F175813310: D10019.diff
Tue, Oct 13, 2:18 PM
Unknown Object (File)
Tue, Oct 13, 3:16 AM
Unknown Object (File)
Mon, Oct 12, 11:30 PM
Unknown Object (File)
Mon, Oct 12, 8:42 AM
Unknown Object (File)
Mon, Oct 12, 6:13 AM
Unknown Object (File)
Sun, Oct 11, 1:51 PM
Subscribers
None

Details

Summary

While reviewing all of the use cases of OFF_TO_IDX(), I observed that vmoff()'s return type is vm_offset_t rather than vm_ooffset_t. Consequently, sendfile() could have problems transmitting files larger than 4 GB on 32-bit architectures.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.Mar 15 2017, 9:40 PM
This revision was automatically updated to reflect the committed changes.