• Gustavo Niemeyer's avatar
    runtime: fix grsec support · 8eee153b
    Gustavo Niemeyer authored
    Changeset 36c9c7810f14 broke support for grsec-patched kernels.
    Those do not give back the address requested without MAP_FIXED,
    so when verifying an mmap without this flag for success, the
    resulting address must not be compared against the requested
    address since it may have succeeded at a different location.
    
    R=golang-dev, rsc, gustavo, iant
    CC=golang-dev
    https://golang.org/cl/5650072
    8eee153b
mem_linux.c 3.1 KB