Print this page
Code review comments from pmooney (sundry), and igork (screwups in zonecfg refactoring)
*** 313,324 ****
* Don't allow ASLR to cause mappings to fail below
* because of SF erratum #57
*/
maxslew = MIN(maxslew, (addr - errata57_limit));
! slew = slew % MIN(MIN(aslr_max_map_skew, (addr - base)),
! addr - errata57_limit);
addr -= P2ALIGN(slew, align_amount);
}
ASSERT(addr > base);
ASSERT(addr + len < base + slen);
--- 313,323 ----
* Don't allow ASLR to cause mappings to fail below
* because of SF erratum #57
*/
maxslew = MIN(maxslew, (addr - errata57_limit));
! slew = slew % maxslew;
addr -= P2ALIGN(slew, align_amount);
}
ASSERT(addr > base);
ASSERT(addr + len < base + slen);