Check for wraparound before the "commit" phase of uvm_map() and uvm_mapanon(),
authorkettenis <kettenis@openbsd.org>
Sat, 30 Jul 2016 16:43:44 +0000 (16:43 +0000)
committerkettenis <kettenis@openbsd.org>
Sat, 30 Jul 2016 16:43:44 +0000 (16:43 +0000)
commitd77b4202ac968dfdac8257977f51001577f61bff
treea6ae637774d8e56734d9b5e23960bac87a9d20d9
parentb8c60e1007590acffccb10b743d89c72072e8d19
Check for wraparound before the "commit" phase of uvm_map() and uvm_mapanon(),
to prevent hitting assertions and/or corrupting data structures during that
phase.

ok deraadt@, tedu@
sys/uvm/uvm_map.c