Make sure we always pass a page-aligned address to pmap_grow_map().
authorkettenis <kettenis@openbsd.org>
Tue, 1 Feb 2022 19:57:28 +0000 (19:57 +0000)
committerkettenis <kettenis@openbsd.org>
Tue, 1 Feb 2022 19:57:28 +0000 (19:57 +0000)
commit8d567340186ba22b9d2396ea8d6c2db96253cae7
tree9b729a451e7c9aed0130c79f634b84309d6c6e56
parent6a9342af7ca96f84ac3f6c65024034f7c5723d66
Make sure we always pass a page-aligned address to pmap_grow_map().
Fixes an issue uncovered by the recent change to enlarge kva space where
an unaligned address was passed resulting in memset() writing past the
end of the newly allocated page.

ok miod@
sys/arch/arm/arm/pmap7.c