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
F108508275: D46783.diff
Sat, Jan 25, 6:09 PM
Unknown Object (File)
Fri, Jan 17, 3:07 PM
Unknown Object (File)
Tue, Jan 14, 8:16 AM
Unknown Object (File)
Sun, Jan 12, 12:32 PM
Unknown Object (File)
Dec 10 2024, 7:51 PM
Unknown Object (File)
Dec 9 2024, 6:29 AM
Unknown Object (File)
Nov 21 2024, 5:11 PM
Unknown Object (File)
Nov 18 2024, 12:31 AM
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