[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <4C7CFCAC.1080003@canonical.com>
Date: Tue, 31 Aug 2010 14:59:24 +0200
From: Stefan Bader <stefan.bader@...onical.com>
To: Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
CC: Linus Torvalds <torvalds@...ux-foundation.org>
Subject: [PATCH] mm: Fix hiding the stack guard page in proc
Looking at the other changes I believe that the logic for proc also needs to
look at the previous vma to decide whether to hide the first page of it or not.
The following patch against current head should fix that (only compile tested here .
I only made the change to task_mmu.c here. But basically its the same check as
in mlock.c. Maybe its would be worth moving the inlines to mm.h.
-Stefan
Current output before:
...
b778e000-b7790000 rw-p 00000000 00:00 0
bfdc8000-bfddd000 rw-p 00000000 00:00 0 [stack]
After mlocking parts of the stack:
...
b778d000-b7790000 rw-p 00000000 00:00 0
bfdc8000-bfdda000 rw-p 00000000 00:00 0
bfddb000-bfddb000 rw-p 00000000 00:00 0 [stack]
bfddc000-bfddd000 rw-p 00000000 00:00 0
View attachment "0001-mm-Fix-hiding-the-stack-guard-page-in-proc.patch" of type "text/x-diff" (1412 bytes)
Powered by blists - more mailing lists