HomeFreeBSD

For vm_zone_stats() sysctl handler, do not drain sbuf calling

Description

For vm_zone_stats() sysctl handler, do not drain sbuf calling
copyout(9) while owning zone lock.

Despite old value sysctl buffer is wired, spurious faults might still
occur.

Note that we still own the uma_rwlock there, but this lock does not
participate in sensitive lock orders.

Reported and tested by: pho (as part of the larger patch)
Sponsored by: The FreeBSD Foundation
MFC after: 1 week

Details

Provenance
kibAuthored on
Parents
rS331488: This change adds a flag to the DAD entry to indicate whether it is
Branches
Unknown
Tags
Unknown