Revision 1457d8cf7664f34c4ba534c1073821a559a2f6f9 authored by Juergen Gross on 07 November 2018, 17:01:00 UTC, committed by Juergen Gross on 09 November 2018, 07:16:55 UTC
Commit 9da3f2b7405440 ("x86/fault: BUG() when uaccess helpers fault on kernel addresses") introduced a regression for booting Xen PV guests. Xen PV guests are using __put_user() and __get_user() for accessing the p2m map (physical to machine frame number map) as accesses might fail in case of not populated areas of the map. With above commit using __put_user() and __get_user() for accessing kernel pages is no longer valid. So replace the Xen hack by adding appropriate p2m access functions using the default fixup handler. Fixes: 9da3f2b7405440 ("x86/fault: BUG() when uaccess helpers fault on kernel addresses") Signed-off-by: Juergen Gross <jgross@suse.com> Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com> Signed-off-by: Juergen Gross <jgross@suse.com>
1 parent 6cc4a08
File | Mode | Size |
---|---|---|
Makefile | -rw-r--r-- | 361 bytes |
compat.c | -rw-r--r-- | 2.2 KB |
ipc_sysctl.c | -rw-r--r-- | 5.4 KB |
mq_sysctl.c | -rw-r--r-- | 2.9 KB |
mqueue.c | -rw-r--r-- | 39.0 KB |
msg.c | -rw-r--r-- | 29.9 KB |
msgutil.c | -rw-r--r-- | 3.6 KB |
namespace.c | -rw-r--r-- | 4.6 KB |
sem.c | -rw-r--r-- | 61.4 KB |
shm.c | -rw-r--r-- | 42.4 KB |
syscall.c | -rw-r--r-- | 4.7 KB |
util.c | -rw-r--r-- | 22.1 KB |
util.h | -rw-r--r-- | 8.8 KB |
Computing file changes ...