Message ID | 1308648925-13204-3-git-send-email-apw@canonical.com |
---|---|
State | New |
Headers | show |
diff --git a/fs/proc/array.c b/fs/proc/array.c index 87902dd..4bceea5 100644 --- a/fs/proc/array.c +++ b/fs/proc/array.c @@ -526,8 +526,8 @@ static int do_task_stat(struct task_struct *task, char *buffer, int whole) vsize, mm ? get_mm_rss(mm) : 0, rsslim, - mm ? mm->start_code : 0, - mm ? mm->end_code : 0, + mm ? (permitted ? mm->start_code : 1) : 0, + mm ? (permitted ? mm->end_code : 1) : 0, (permitted && mm) ? mm->start_stack : 0, esp, eip,