HomeFreeBSD

Modify vm_map_growstack() to protect itself from the possibility of the

Description

Modify vm_map_growstack() to protect itself from the possibility of the
gap entry in the vm map being smaller than the sysctl-derived stack guard
size. Otherwise, the value of max_grow can suffer from overflow, and the
roundup(grow_amount, sgrowsiz) will not be properly capped, resulting in
an assertion failure.

In collaboration with: kib
MFC after: 3 days

Details

Provenance
alcAuthored on
Parents
rS320559: MFC r320316:
Branches
Unknown
Tags
Unknown