author | Hugh Dickins <hughd@google.com> | |
Mon, 4 Sep 2017 01:57:03 +0000 (18:57 -0700) | ||
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | |
Fri, 5 Jan 2018 14:44:23 +0000 (15:44 +0100) | ||
commit | 003e476716906afa135faf605ae0a5c3598c0293 | |
tree | 407dda926970073f3bebd47655a1fa151ce0174a | tree | snapshot (tar.xz tar.gz zip) |
parent | edde73205b3fdde8c8a3adfce78cc6d0de72386b | commit | diff |
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>
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>
include/linux/kaiser.h | diff | blob | history | |
init/main.c | diff | blob | history | |
kernel/fork.c | diff | blob | history |