HomeFreeBSD

Use m_catpkt(9) to avoid a possible use-after-free in ieee80211_defrag().

Description

Use m_catpkt(9) to avoid a possible use-after-free in ieee80211_defrag().

m is not guaranteed to be valid after m_cat() returns. The effects of this
are most noticeable when INVARIANTS is enabled, since m's header length
field is given a value of 0xdeadc0de by the trash dtor.

Reviewed by: glebius
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D5497

Details

Provenance
markjAuthored on
Reviewer
glebius
Differential Revision
D5497: Fix possible use-after-frees with m_cat(9) usage.
Parents
rS296301: Document m_catpkt(), and remove misinformation about m_cat(9).
Branches
Unknown
Tags
Unknown