m_unshare() had crashed if unmapped mbufs exist in the mbuf chain.
This was because memcpy() with mtod() was used without making sure that
the mbuf was mapped. Use m_copydata() that cares unmapped mbufs instead.
Details
Details
- Reviewers
gallatin - Group Reviewers
network - Commits
- rGf2202ab5abda: mbuf: make m_unshare() allow unmapped mbufs
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
I've updated the code and the summary text according to your comment.
It gets much simpler. Thanks for the review!