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 12, 5:47 PM
Unknown Object (File)
Thu, Nov 7, 4:52 PM
Unknown Object (File)
Sun, Nov 3, 12:35 PM
Unknown Object (File)
Tue, Oct 29, 3:29 AM
Unknown Object (File)
Oct 13 2024, 12:04 AM
Unknown Object (File)
Sep 30 2024, 10:45 AM
Unknown Object (File)
Sep 27 2024, 12:21 PM
Unknown Object (File)
Sep 26 2024, 1:00 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