In uvm_map_protect(), make sure we select a first map entry that ends after
authorkettenis <kettenis@openbsd.org>
Sun, 22 Jul 2018 14:33:44 +0000 (14:33 +0000)
committerkettenis <kettenis@openbsd.org>
Sun, 22 Jul 2018 14:33:44 +0000 (14:33 +0000)
commit9f4e9fc9c86f6c8ab1c1cf246d58d998924e0f88
treeed1409062ff74f9ad0d31610fbd6125ae459caf8
parent871260b82fe78933f7291446494be3450d58f548
In uvm_map_protect(), make sure we select a first map entry that ends after
the start of the range of pages that we're changing.  Prevents a panic from
a somewhat convoluted test case that anton@ came up with.

ok guenther@, anton@
sys/uvm/uvm_map.c