]> www.infradead.org Git - users/jedix/linux-maple.git/commit
kaiser: stack map PAGE_SIZE at THREAD_SIZE-PAGE_SIZE
authorHugh Dickins <hughd@google.com>
Mon, 4 Sep 2017 01:57:03 +0000 (18:57 -0700)
committerKirtikar Kashyap <kirtikar.kashyap@oracle.com>
Fri, 12 Jan 2018 18:20:06 +0000 (10:20 -0800)
commitb98fc0c408acf1b25d5fdda9b08a64e59e7634ff
tree6477d24dd5e91db4a992df36e25524fb491ba076
parent98b42dc162cb85e9fe69392ac203a162b232911a
kaiser: stack map PAGE_SIZE at THREAD_SIZE-PAGE_SIZE

Kaiser only needs to map one page of the stack; and
kernel/fork.c did not build on powerpc (no __PAGE_KERNEL).
It's all cleaner if linux/kaiser.h provides kaiser_map_thread_stack()
and kaiser_unmap_thread_stack() wrappers around asm/kaiser.h's
kaiser_add_mapping() and kaiser_remove_mapping().  And use
linux/kaiser.h in init/main.c to avoid the #ifdefs there.

Signed-off-by: Hugh Dickins <hughd@google.com>
Acked-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 003e476716906afa135faf605ae0a5c3598c0293)
Orabug: 27333760
CVE: CVE-2017-5754
Signed-off-by: Pavel Tatashin <pasha.tatashin@oracle.com>
Conflicts:
init/main.c

Signed-off-by: Kirtikar Kashyap <kirtikar.kashyap@oracle.com>
include/linux/kaiser.h
init/main.c
kernel/fork.c