HomeFreeBSD

net: Fix handling of unmapped user pages in if_getgroup()

Description

net: Fix handling of unmapped user pages in if_getgroup()

We cannot call copyout() while in a net epoch section, unless the user
memory is wired. Use the global ifnet lock to synchronize the accesses
instead.

Reported by: emaste
Reviewed by: zlei
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D57154

Details

Provenance
markjAuthored on Jun 1 2026, 4:44 PM
Reviewer
zlei
Differential Revision
D57154: net: Fix handling of unmapped user pages in if_getgroup()
Parents
rG49d90d9ddfc1: lagg: Handle a port count of zero
Branches
Unknown
Tags
Unknown