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
Unknown Object (File)
Tue, Nov 18, 4:00 AM
Unknown Object (File)
Sun, Nov 16, 1:35 AM
Unknown Object (File)
Thu, Nov 6, 4:25 AM
Unknown Object (File)
Oct 27 2025, 2:08 AM
Unknown Object (File)
Oct 22 2025, 1:46 AM
Unknown Object (File)
Oct 20 2025, 9:30 AM
Unknown Object (File)
Oct 9 2025, 2:32 AM
Unknown Object (File)
Oct 8 2025, 3:17 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 Not Applicable
Unit
Tests Not Applicable