HomeFreeBSD

In ptrace_vm_entry(), do not call vmspace_free() while owning a vm

Description

In ptrace_vm_entry(), do not call vmspace_free() while owning a vm
object lock.

The vmspace_free() operations might need to lock map, object etc on
last dereference. Postpone the free until object's inspection is
done.

Reported and tested by: will
Sponsored by: The FreeBSD Foundation
MFC after: 1 week

Details

Provenance
kibAuthored on
Parents
rS302918: Add a regression test about the crash with strxfrm and ISO8859-5 locales
Branches
Unknown
Tags
Unknown