Page MenuHomeFreeBSD

mbuf: Don't force all M_EXTPG mbufs to be read-only
ClosedPublic

Authored by jhb on Sep 25 2024, 3:13 PM.
Tags
None
Referenced Files
F175255380: D46783.id.diff
Fri, Oct 9, 11:33 AM
F175255079: D46783.id143714.diff
Fri, Oct 9, 11:30 AM
F175254989: D46783.id145791.diff
Fri, Oct 9, 11:29 AM
F175254955: D46783.diff
Fri, Oct 9, 11:28 AM
Unknown Object (File)
Wed, Oct 7, 2:38 AM
Unknown Object (File)
Sun, Oct 4, 1:58 PM
Unknown Object (File)
Sun, Oct 4, 10:01 AM
Unknown Object (File)
Thu, Oct 1, 5:11 PM
Subscribers

Details

Summary

Some M_EXTPG mbufs are read-only (e.g. those backing sendfile
requests), but others are not. Add a flags argument to
mb_alloc_ext_pgs that can be used to set M_RDONLY when needed rather
than setting it unconditionally. Update mb_unmapped_to_ext to
preserve M_RDONLY from the unmapped mbuf.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 59593
Build 56480: arc lint + arc unit