Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(2016)

Issue 5650072: code review 5650072: runtime: fix grsec support (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 2 months ago by niemeyer
Modified:
12 years, 2 months ago
Reviewers:
CC:
golang-dev, rsc, gustavo_niemeyer.net, iant2
Visibility:
Public.

Description

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.

Patch Set 1 #

Patch Set 2 : code review 5650072: runtime: fix grsec support #

Patch Set 3 : diff -r 182b2178a20b https://go.googlecode.com/hg/ #

Patch Set 4 : diff -r 182b2178a20b https://go.googlecode.com/hg/ #

Patch Set 5 : diff -r 182b2178a20b https://go.googlecode.com/hg/ #

Total comments: 2

Patch Set 6 : diff -r 169ed51d4558 https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -16 lines) Patch
M src/pkg/runtime/mem_linux.c View 1 2 3 4 5 3 chunks +19 lines, -16 lines 0 comments Download

Messages

Total messages: 10
niemeyer
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://go.googlecode.com/hg/
12 years, 2 months ago (2012-02-13 03:02:38 UTC) #1
rsc
Not just add MAP_FIXED?
12 years, 2 months ago (2012-02-13 03:43:32 UTC) #2
gustavo_niemeyer.net
On Mon, Feb 13, 2012 at 01:43, Russ Cox <rsc@golang.org> wrote: > Not just add ...
12 years, 2 months ago (2012-02-13 03:48:32 UTC) #3
gustavo_niemeyer.net
On Mon, Feb 13, 2012 at 01:48, Gustavo Niemeyer <gustavo@niemeyer.net> wrote: > On Mon, Feb ...
12 years, 2 months ago (2012-02-13 04:11:51 UTC) #4
rsc
LGTM Let's try without MAP_FIXED and see if it breaks UML.
12 years, 2 months ago (2012-02-13 04:30:18 UTC) #5
iant2
FYI Russ Cox <rsc@golang.org> writes: > Not just add MAP_FIXED? It's generally unwise to use ...
12 years, 2 months ago (2012-02-13 05:59:47 UTC) #6
gustavo_niemeyer.net
On Mon, Feb 13, 2012 at 02:30, Russ Cox <rsc@golang.org> wrote: > Let's try without ...
12 years, 2 months ago (2012-02-13 15:06:59 UTC) #7
rsc
LGTM http://codereview.appspot.com/5650072/diff/2003/src/pkg/runtime/mem_linux.c File src/pkg/runtime/mem_linux.c (right): http://codereview.appspot.com/5650072/diff/2003/src/pkg/runtime/mem_linux.c#newcode38 src/pkg/runtime/mem_linux.c:38: mmap_fixed(byte *v, uintptr n, int32 prot, int32 flags, ...
12 years, 2 months ago (2012-02-14 16:18:59 UTC) #8
niemeyer
http://codereview.appspot.com/5650072/diff/2003/src/pkg/runtime/mem_linux.c File src/pkg/runtime/mem_linux.c (right): http://codereview.appspot.com/5650072/diff/2003/src/pkg/runtime/mem_linux.c#newcode38 src/pkg/runtime/mem_linux.c:38: mmap_fixed(byte *v, uintptr n, int32 prot, int32 flags, int32 ...
12 years, 2 months ago (2012-02-14 16:21:27 UTC) #9
niemeyer
12 years, 2 months ago (2012-02-15 00:09:09 UTC) #10
*** Submitted as http://code.google.com/p/go/source/detail?r=9bd6434d05fa ***

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
http://codereview.appspot.com/5650072
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b