Files
linux/arch/s390/include/asm/processor.h
Martin Schwidefsky 9d38fd6a4f s390: TASK_SIZE for kernel threads
commit fb94a687d9 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>
2017-03-15 10:02:41 +08:00

9.1 KiB