commit | 041b127df733ec1457dc60de41c091c5e73e3741 | [log] [tgz] |
---|---|---|
author | Andy Lutomirski <[email protected]> | Thu Jul 11 20:57:43 2019 -0700 |
committer | Greg Kroah-Hartman <[email protected]> | Wed Jul 31 07:27:08 2019 +0200 |
tree | 630fc460fefbea165e0f57ad233ee252653f63aa | |
parent | fa099d6ddf685e0537547414d226632045156323 [diff] |
mm/gup.c: remove some BUG_ONs from get_gate_page() [ Upstream commit b5d1c39f34d1c9bca0c4b9ae2e339fbbe264a9c7 ] 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 <[email protected]> Reviewed-by: Kees Cook <[email protected]> Reviewed-by: Andrew Morton <[email protected]> Cc: Florian Weimer <[email protected]> Cc: Jann Horn <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]> Signed-off-by: Sasha Levin <[email protected]>