Andy Lutomirski
b5d1c39f34
mm/gup.c: remove some BUG_ONs from get_gate_page()
...
If we end up without a PGD or PUD entry backing the gate area, don't BUG
-- just fail gracefully.
It's not entirely implausible that this could happen some day on x86. It
doesn't right now even with an execute-only emulated vsyscall page because
the fixmap shares the PUD, but the core mm code shouldn't rely on that
particular detail to avoid OOPSing.
Link: http://lkml.kernel.org/r/a1d9f4efb75b9d464e59fd6af00104b21c58f6f7.1561610798.git.luto@kernel.org
Signed-off-by: Andy Lutomirski <luto@kernel.org>
Reviewed-by: Kees Cook <keescook@chromium.org>
Reviewed-by: Andrew Morton <akpm@linux-foundation.org>
Cc: Florian Weimer <fweimer@redhat.com>
Cc: Jann Horn <jannh@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2019-07-12 11:05:45 -07:00
..
2019-07-12 11:05:42 -07:00
2019-05-21 10:50:45 +02:00
2019-05-21 10:50:45 +02:00
2019-06-19 17:09:52 +02:00
2019-05-14 09:47:45 -07:00
2019-05-24 17:37:54 +02:00
2017-11-02 11:10:55 +01:00
2019-06-01 15:51:32 -07:00
2017-11-02 11:10:55 +01:00
2019-05-14 19:52:47 -07:00
2019-06-05 17:37:13 +02:00
2017-12-11 14:54:44 +01:00
2018-08-30 20:01:32 +02:00
2019-07-12 11:05:43 -07:00
2019-07-12 11:05:43 -07:00
2017-12-14 16:00:48 -08:00
2019-06-19 17:09:52 +02:00
2019-05-14 09:47:45 -07:00
2019-07-12 11:05:45 -07:00
2018-12-28 12:11:47 -08:00
2019-06-13 17:34:56 -10:00
2019-07-05 19:55:18 -07:00
2018-06-07 17:34:35 -07:00
2019-06-29 16:43:45 +08:00
2019-05-21 10:50:45 +02:00
2018-07-17 09:35:30 +02:00
2019-05-30 11:26:32 -07:00
2019-06-19 17:09:08 +02:00
2019-07-12 11:05:45 -07:00
2019-07-12 11:05:43 -07:00
2019-07-05 19:55:18 -07:00
2019-06-05 17:37:06 +02:00
2019-07-12 11:05:42 -07:00
2019-06-19 17:09:52 +02:00
2019-07-12 11:05:44 -07:00
2019-05-21 10:50:45 +02:00
2019-05-14 09:47:49 -07:00
2019-07-12 11:05:45 -07:00
2019-05-30 11:26:32 -07:00
2019-07-12 11:05:44 -07:00
2019-07-05 19:55:18 -07:00
2019-05-21 10:50:45 +02:00
2019-07-08 21:48:15 -07:00
2019-07-12 11:05:43 -07:00
2019-06-29 16:43:44 +08:00
2019-03-05 21:07:20 -08:00
2017-11-02 11:10:55 +01:00
2019-07-05 19:55:18 -07:00
2019-07-12 11:05:43 -07:00
2019-06-13 17:34:56 -10:00
2019-05-21 10:50:45 +02:00
2019-05-21 10:50:45 +02:00
2017-03-02 08:42:38 +01:00
2019-06-13 17:34:56 -10:00
2019-06-19 17:09:53 +02:00
2017-11-02 11:10:55 +01:00
2019-05-14 09:47:51 -07:00
2019-05-14 09:47:49 -07:00
2017-11-02 11:10:55 +01:00
2019-07-12 11:05:45 -07:00
2019-06-29 16:43:45 +08:00
2019-07-12 11:05:43 -07:00
2018-06-07 17:34:36 -07:00
2019-07-12 11:05:43 -07:00
2019-06-29 16:43:45 +08:00
2019-07-12 11:05:43 -07:00
2019-07-12 11:05:43 -07:00
2019-04-29 12:37:50 +02:00
2019-03-05 21:07:13 -08:00
2018-10-31 08:54:11 -07:00
2019-07-12 11:05:42 -07:00
2018-04-05 21:36:27 -07:00
2019-03-13 12:25:31 -07:00
2019-06-05 17:37:16 +02:00
2019-06-05 17:37:16 +02:00
2019-06-05 17:37:16 +02:00
2019-06-05 17:37:16 +02:00
2018-10-09 16:51:11 +02:00
2019-05-30 11:26:32 -07:00
2017-11-02 11:10:55 +01:00
2019-05-21 10:50:45 +02:00
2019-05-14 09:47:49 -07:00
2019-06-05 17:37:17 +02:00
2019-07-05 19:55:18 -07:00
2019-05-14 19:52:48 -07:00
2019-05-14 19:52:48 -07:00
2019-07-12 11:05:44 -07:00
2019-07-12 11:05:44 -07:00
2019-07-12 11:05:44 -07:00
2019-07-12 11:05:42 -07:00
2019-07-12 11:05:44 -07:00
2018-10-31 08:54:16 -07:00
2019-05-14 09:47:48 -07:00
2017-11-02 11:10:55 +01:00
2018-08-22 10:52:44 -07:00
2019-07-12 11:05:43 -07:00
2019-05-21 10:50:45 +02:00
2019-07-12 11:05:43 -07:00
2019-05-21 10:50:45 +02:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:53 +02:00
2019-07-12 11:05:45 -07:00
2018-09-13 15:18:04 -10:00
2019-07-08 09:54:55 -07:00
2019-06-19 17:09:55 +02:00
2019-07-12 11:05:39 -07:00
2019-05-21 10:50:45 +02:00
2019-05-14 19:52:53 -07:00
2019-07-12 11:05:40 -07:00
2019-05-21 10:50:45 +02:00
2019-05-21 10:50:45 +02:00
2018-10-26 16:26:35 -07:00
2019-05-30 11:26:37 -07:00