From: Ernie Petrides Date: Thu, 7 Dec 2006 01:14:09 +0000 (+0100) Subject: [PATCH] x86-64: fix perms/range of vsyscall vma in /proc/*/maps X-Git-Tag: v2.6.20-rc1~145^2^2~8^2~61 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=103efcd9aac1de4da6a1477f2f3b9fcf35273a18;p=pandora-kernel.git [PATCH] x86-64: fix perms/range of vsyscall vma in /proc/*/maps The final line of /proc//maps on x86_64 for native 64-bit tasks shows an incorrect ending address and incorrect permissions. There is only a single page mapped in this vsyscall region, and it is accessible for both read and execute. The patch below fixes this. (Since 32-bit-compat tasks have a real vma with correct perms/range, no change is necessary for that scenario.) Before the patch, a "cat /proc/self/maps | tail -1" shows this: ffffffffff600000-ffffffffffe00000 ---p 00000000 [...] After the patch, this is the output: ffffffffff600000-ffffffffff601000 r-xp 00000000 [...] Signed-off-by: Ernie Petrides Signed-off-by: Andi Kleen --- Reading git-diff-tree failed