]> Cypherpunks repositories - gostls13.git/commit
runtime: fix grsec support
authorGustavo Niemeyer <gustavo@niemeyer.net>
Wed, 15 Feb 2012 00:09:02 +0000 (22:09 -0200)
committerGustavo Niemeyer <gustavo@niemeyer.net>
Wed, 15 Feb 2012 00:09:02 +0000 (22:09 -0200)
commit8eee153bc81680a6115dc8e1f2661ee51d5c7383
treef13e04062828b3ffdbe3311529f5ba3e00a6dfd6
parent977e8d145bca078936176f73f884bb4b7da037b7
runtime: fix grsec support

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
src/pkg/runtime/mem_linux.c