Files
android_kernel_xiaomi_sm8450/arch/s390/kernel
Vasily Gorbik d1befa6582 s390/vdso: avoid 64-bit vdso mapping for compat tasks
vdso_fault used is_compat_task function (on s390 it tests "current"
thread_info flags) to distinguish compat tasks and map 31-bit vdso
pages. But "current" task might not correspond to mm context.

When 31-bit compat inferior is executed under gdb, gdb does
PTRACE_PEEKTEXT on vdso page, causing vdso_fault with "current" being
64-bit gdb process. So, 31-bit inferior ends up with 64-bit vdso mapped.

To avoid this problem a new compat_mm flag has been introduced into
mm context. This flag is used in vdso_fault and vdso_mremap instead
of is_compat_task.

Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
2018-09-20 13:20:29 +02:00
..
2012-05-16 14:42:41 +02:00
2018-04-10 07:38:54 +02:00
2018-08-16 14:49:15 +02:00
2018-06-12 16:19:22 -07:00
2018-07-04 08:35:18 +02:00
2018-07-02 11:24:59 +02:00
2018-04-16 09:10:23 +02:00
2018-04-05 21:36:27 -07:00
2018-07-18 08:32:17 +02:00
2018-07-18 08:32:17 +02:00
2018-07-04 08:35:18 +02:00
2018-04-05 21:36:27 -07:00
2018-02-27 08:05:23 +01:00
2018-07-20 00:02:41 +02:00