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
On Tuesday, August 31, 2010, Stefan Bader <[email protected]> wrote:
>
> Maybe its would be worth moving the inlines to mm.h.
Yes, I think it would be a good idea to try to abstract it out a bit...
Linus
On 08/31/2010 03:33 PM, Linus Torvalds wrote:
> On Tuesday, August 31, 2010, Stefan Bader <[email protected]> wrote:
>>
>> Maybe its would be worth moving the inlines to mm.h.
>
> Yes, I think it would be a good idea to try to abstract it out a bit...
>
> Linus
Quick and dirty (and very untested)
Stefan