HomeFreeBSD

Return different error code for the guard page layout violation.

Description

Return different error code for the guard page layout violation.

On KERN_NO_SPACE error, as it is returned now, vm_map_find() continues
the loop searching for the suitable range for the requested mapping
with specific alignment. Since the vm_map_findspace() succesfully
finds the same place, the loop never ends.

The errors returned from vm_map_stack() completely repeat the behavior
of vm_map_insert() now, as suggested by Alan.

Reported by: Arto Pekkanen <aksyom@gmail.com>
PR: 223732
Reviewed by: alc, markj
Discussed with: jhb
Sponsored by: The FreeBSD Foundation
MFC after: 3 days
Differential revision: https://reviews.freebsd.org/D13186

Details

Provenance
kibAuthored on Nov 22 2017, 4:45 PM
Parents
rG4d572bb3ed56: When vm_map_find(find_space = VMFS_OPTIMAL_SPACE) fails to find space, a
Branches
Unknown
Tags
Unknown

Event Timeline