Vasily Gorbik
190f056fba
s390/vdso: correct vdso mapping for compat tasks
...
While "s390/vdso: avoid 64-bit vdso mapping for compat tasks" fixed
64-bit vdso mapping for compat tasks under gdb it introduced another
problem. "compat_mm" flag is not inherited during fork and when
31-bit process forks a child (but does not perform exec) it ends up
with 64-bit vdso. To address that, init_new_context (which is called
during fork and exec) now initialize compat_mm based on thread TIF_31BIT
flag. Later compat_mm is adjusted in arch_setup_additional_pages, which
is called during exec.
Fixes: d1befa6582
("s390/vdso: avoid 64-bit vdso mapping for compat tasks")
Reported-by: Stefan Liebler <stli@linux.ibm.com >
Reviewed-by: Heiko Carstens <heiko.carstens@de.ibm.com >
Cc: <stable@vger.kernel.org > # v4.20+
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com >
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com >
2019-01-11 17:12:02 +01:00
..
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-03-28 08:38:27 +02:00
2017-12-05 07:51:09 +01:00
2018-11-30 07:22:05 +01:00
2018-10-09 11:20:50 +02:00
2018-05-30 11:18:04 +02:00
2017-11-02 11:10:55 +01:00
2017-11-13 11:47:01 -08:00
2018-06-21 14:25:24 +02:00
2018-02-05 07:51:41 +01:00
2019-01-04 13:13:46 -08:00
2018-10-09 11:21:14 +02:00
2017-11-02 11:10:55 +01:00
2017-12-05 07:51:09 +01:00
2017-11-02 11:10:55 +01:00
2018-05-23 08:06:56 +02:00
2018-10-08 09:09:59 +02:00
2017-11-02 11:10:55 +01:00
2018-03-26 16:13:11 +02:00
2018-04-10 07:38:59 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-08-29 15:42:20 +02:00
2017-11-13 11:47:01 -08:00
2017-11-02 11:10:55 +01:00
2018-07-31 11:02:27 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-06-12 15:14:05 +02:00
2018-05-17 09:02:27 +02:00
2017-11-02 11:10:55 +01:00
2017-11-13 11:47:01 -08:00
2017-11-02 11:10:55 +01:00
2018-01-02 13:52:23 -05:00
2018-01-23 07:36:53 +01:00
2017-11-02 11:10:55 +01:00
2017-12-13 10:51:36 +01:00
2018-02-02 10:47:14 +01:00
2017-11-02 11:10:55 +01:00
2018-04-19 13:29:54 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-10-22 08:37:45 +02:00
2017-11-02 11:10:55 +01:00
2018-08-15 22:39:53 -04:00
2017-11-14 11:01:47 +01:00
2018-07-30 11:20:18 +01:00
2018-05-14 11:25:28 +02:00
2018-07-30 11:20:18 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-10-09 11:21:14 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-09-27 17:56:49 +02:00
2018-10-09 11:21:29 +02:00
2018-02-01 16:56:07 -08:00
2017-11-02 11:10:55 +01:00
2018-04-16 09:10:23 +02:00
2018-06-21 12:33:10 +02:00
2018-10-08 12:14:54 +02:00
2018-03-06 18:40:44 +01:00
2017-11-02 11:10:55 +01:00
2017-11-24 15:37:22 +01:00
2018-10-09 11:20:57 +02:00
2018-10-09 11:21:12 +02:00
2019-01-11 17:12:02 +01:00
2018-09-20 13:20:29 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-13 11:47:01 -08:00
2018-04-11 17:46:00 +02:00
2018-06-25 10:14:37 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-10-09 11:21:15 +02:00
2017-11-02 11:10:55 +01:00
2017-11-13 11:47:01 -08:00
2018-01-10 16:41:19 +01:00
2017-11-13 11:47:01 -08:00
2017-11-02 11:10:55 +01:00
2018-07-04 08:35:58 +02:00
2017-11-02 11:10:55 +01:00
2017-12-05 15:02:41 +01:00
2019-01-04 13:13:47 -08:00
2018-11-02 08:31:55 +01:00
2018-10-10 07:37:19 +02:00
2018-05-30 11:18:03 +02:00
2018-12-07 12:35:46 +00:00
2018-11-05 08:14:18 -08:00
2017-12-05 15:02:41 +01:00
2018-07-06 08:47:51 +02:00
2018-09-20 13:20:29 +02:00
2018-02-02 10:47:15 +01:00
2017-11-02 11:10:55 +01:00
2018-10-09 11:21:13 +02:00
2018-02-22 15:31:24 +01:00
2017-11-02 11:10:55 +01:00
2018-10-09 11:21:06 +02:00
2017-12-05 07:51:09 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-10-09 11:21:24 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-13 11:47:01 -08:00
2017-11-02 11:10:55 +01:00
2017-11-13 11:47:01 -08:00
2017-11-13 12:38:26 -08:00
2017-11-02 11:10:55 +01:00
2018-10-09 11:21:18 +02:00
2017-12-05 07:51:08 +01:00
2017-11-24 15:37:22 +01:00
2018-02-02 10:47:15 +01:00
2017-11-02 11:10:55 +01:00
2018-11-02 08:31:57 +01:00
2017-11-02 11:10:55 +01:00
2018-11-02 08:31:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-20 08:51:01 +01:00
2019-01-03 18:57:57 -08:00
2018-08-29 15:42:23 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-14 22:07:49 +01:00
2017-12-05 07:51:09 +01:00
2018-10-09 11:21:06 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00