Pass 0 instead of uvm_map_hint() to uvm_map() in exec_md_map() to figure out
authormiod <miod@openbsd.org>
Tue, 12 Aug 2014 04:28:07 +0000 (04:28 +0000)
committermiod <miod@openbsd.org>
Tue, 12 Aug 2014 04:28:07 +0000 (04:28 +0000)
commit3222d34885dc05fc6dc28b588d4b5884dbf27fca
tree99321087976854675d19cebfac0d3bb0a1a05722
parent50c0ea53d8ce55a08a9c60ec96cac3d00e3af0a8
Pass 0 instead of uvm_map_hint() to uvm_map() in exec_md_map() to figure out
where to put the fpu assist page, for uvm_map_hint() may return an address
outside userland bounds due to aggressive randomization. Passing zero will
still get a random address, but correctly bounded.
sys/arch/mips64/mips64/mips64_machdep.c