HomeFreeBSD

net/bpf: Fix writing of buffer bigger than PAGESIZE

Description

net/bpf: Fix writing of buffer bigger than PAGESIZE

When allocating the mbuf we used m_get2 which fails
if len is superior to MJUMPAGESIZE, if its the case,
use m_getjcl instead.

Reviewed by: kp@
PR: 205164
Pull Request: https://github.com/freebsd/freebsd-src/pull/131

(cherry picked from commit f13da24715a75ce0fdac31062866877d980aa908)

Details

Provenance
Florian Florensa <florian@florensa.me>Authored on Sep 17 2023, 2:16 PM
impCommitted on Sep 17 2023, 2:17 PM
Parents
rGdbd445bbd3d7: msi: handle error from BUS_REMAP_INTR in msi_assign_cpu
Branches
Unknown
Tags
Unknown

Event Timeline