HomeFreeBSD

m_dup: Handle unmapped mbufs as an input mbuf.

Description

m_dup: Handle unmapped mbufs as an input mbuf.

Use m_copydata() instead of a direct bcopy() when copying data out of
a source mbuf into a newly-allocated mbuf.

PR: 256610
Reported by: Niels Bakker <niels=freebsd@bakker.net>
Reviewed by: markj
MFC after: 2 weeks

Details

Provenance
jhbAuthored on Jul 26 2021, 9:03 PM
Parents
rGd8787d4f7848: crypto: Constify all transform descriptors
Branches
Unknown
Tags
Unknown