HomeFreeBSD

Add required checks for unmapped mbufs in ipdivert and ipfw

Description

Add required checks for unmapped mbufs in ipdivert and ipfw

Also add an M_ASSERTMAPPED() macro to verify that all mbufs in the chain
are mapped. Use it in ipfw_nat, which operates on a chain returned by
m_megapullup().

PR: 255164
Reviewed by: ae, gallatin
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D29838

(cherry picked from commit 652908599b6fa7285ee60cb567b97e70b648ac29)

Details

Provenance
markjAuthored on Apr 21 2021, 7:38 PM
Reviewer
ae
Differential Revision
D29838: Add more checking for unmapped mbufs
Parents
rG29246f2cb0c5: ipfw: do not use sleepable malloc in callout context.
Branches
Unknown
Tags
Unknown