]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
s390: TASK_SIZE for kernel threads
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Fri, 24 Feb 2017 06:43:51 +0000 (07:43 +0100)
committerTim Gardner <tim.gardner@canonical.com>
Wed, 15 Mar 2017 15:32:11 +0000 (10:32 -0500)
commit45b8e4b1e7665f2b35b7e611bba5735a7fd31a89
tree155793bea597be51c0e6cdd88c7733f96ee1c1fe
parent4ecaf0be7ec4895a6994e270a260580fee049ee1
s390: TASK_SIZE for kernel threads

BugLink: http://bugs.launchpad.net/bugs/1673118
commit fb94a687d96c570d46332a4a890f1dcb7310e643 upstream.

Return a sensible value if TASK_SIZE if called from a kernel thread.

This gets us around an issue with copy_mount_options that does a magic
size calculation "TASK_SIZE - (unsigned long)data" while in a kernel
thread and data pointing to kernel space.

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
arch/s390/include/asm/processor.h