Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
x86/fault: Improve kernel-executing-user-memory handling
Right now we treat the case of the kernel trying to execute from user memory more or less just like the kernel getting a page fault on a user access. In the failure path, we check for erratum torvalds#93, try to otherwise fix up the error, and then oops. If we manage to jump to the user address space, with or without SMEP, we should not try to resolve the page fault. This is an error, pure and simple. Rearrange the code so that we catch this case early, check for erratum torvalds#93, and bail out. Cc: Dave Hansen <[email protected]> Cc: Peter Zijlstra <[email protected]> Signed-off-by: Andy Lutomirski <[email protected]>
- Loading branch information