HomeFreeBSD

pf: fix a crash on sendfile()

Description

pf: fix a crash on sendfile()

The network layer must not pass unmapped (M_EXTPG) mbufs to if_output()
of network interfaces without IFCAP_MEXTPG. pf should convert these
mbufs by mb_unmapped_to_ext() for such interfaces but it didn't.
The problem had occurred on sendfile because sendfile system call
uses unmapped mbufs for the file data.

Reported by: feld
Reviewed by: kp, glebius
Differential Revision: https://reviews.freebsd.org/D58021

Details

Provenance
takahiro.kurosawa_gmail.comAuthored on Jul 7 2026, 7:43 PM
kpCommitted on Jul 8 2026, 7:23 AM
Reviewer
kp
Differential Revision
D58021: pf: fix a crash on sendfile()
Parents
rGc38abd64dbc1: if_epair: support IFCAP_MEXTPG
Branches
Unknown
Tags
Unknown