diff options
author | Matt Mullins <[email protected]> | 2019-07-23 21:20:58 -0700 |
---|---|---|
committer | Thomas Gleixner <[email protected]> | 2019-07-24 12:17:39 +0200 |
commit | b8f70953c1251d8b16276995816a95639f598e70 (patch) | |
tree | 2d0b30158b848661cd21ed70eacb7c45c60463e7 /lib/mpi/mpi-inline.h | |
parent | 385065734cd417b9d7739b2ebb62c960aeb3ccb5 (diff) |
x86/entry/32: Pass cr2 to do_async_page_fault()
Commit a0d14b8909de ("x86/mm, tracing: Fix CR2 corruption") added the
address parameter to do_async_page_fault(), but does not pass it from the
32-bit entry point. To plumb it through, factor-out
common_exception_read_cr2 in the same fashion as common_exception, and uses
it from both page_fault and async_page_fault.
For a 32-bit KVM guest, this fixes:
Run /sbin/init as init process
Starting init: /sbin/init exists but couldn't execute it (error -14)
Fixes: a0d14b8909de ("x86/mm, tracing: Fix CR2 corruption")
Signed-off-by: Matt Mullins <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Acked-by: Peter Zijlstra (Intel) <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'lib/mpi/mpi-inline.h')
0 files changed, 0 insertions, 0 deletions