x86/mm/kcore: Add vsyscall page to /proc/kcore conditionally
authorJia Zhang <zhang.jia@linux.alibaba.com>
Mon, 12 Feb 2018 14:44:54 +0000 (22:44 +0800)
committerIngo Molnar <mingo@kernel.org>
Tue, 13 Feb 2018 08:15:59 +0000 (09:15 +0100)
commitcd026ca2861e7f384d677626a483da797c76b9da
tree5e6fccb5526b952ff08bb2718b2c50f952ee8474
parent595dd46ebfc10be041a365d0a3fa99df50b6ba73
x86/mm/kcore: Add vsyscall page to /proc/kcore conditionally

The vsyscall page should be visible only if vsyscall=emulate/native when dumping /proc/kcore.

Signed-off-by: Jia Zhang <zhang.jia@linux.alibaba.com>
Reviewed-by: Jiri Olsa <jolsa@kernel.org>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: jolsa@redhat.com
Link: http://lkml.kernel.org/r/1518446694-21124-3-git-send-email-zhang.jia@linux.alibaba.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/mm/init_64.c