freebsd-skq/sys
Konstantin Belousov bd101a6648 Ensure that resume path on amd64 only accesses page tables for normal
operation after processor is configured to allow all required
features.

In particular, NX must be enabled in EFER, otherwise load of page
table element with nx bit set causes reserved bit page fault.  Since
malloc uses direct mapping for small allocations, in particular for
the suspension pcbs, and DMAP is nx after r316767, this commit tripped
fault on resume path.

Restore complete state of EFER while wakeup code is still executing
with custom page table, before calling resumectx, instead of trying to
guess which features might be needed before resumectx restored EFER on
its own.

Bisected and tested by:	trasz
Sponsored by:	The FreeBSD Foundation
MFC after:	2 weeks
2017-05-15 20:52:43 +00:00
..
amd64 Ensure that resume path on amd64 only accesses page tables for normal 2017-05-15 20:52:43 +00:00
arm Clarify usage rules for pmap_remap_vm_attr(). 2017-05-13 10:00:24 +00:00
arm64 Allocate a cacheline when reading or writing to write through memory. The 2017-05-13 13:03:20 +00:00
boot Set the right variable when overriding the default console speed. 2017-05-11 18:53:28 +00:00
bsm Merge OpenBSM 1.2-alpha5 from vendor branch to FreeBSD -CURRENT: 2017-03-26 21:14:49 +00:00
cam Add basic programmable early warning error injection to the sa(4) driver. 2017-05-05 20:00:53 +00:00
cddl vdev_geom may associate multiple vdevs per g_consumer 2017-05-11 16:26:56 +00:00
compat Fix init order in the LinuxKPI for RCU support. 2017-05-09 12:51:42 +00:00
conf [iwm] Factor out firmware station handling into if_iwm_sta.c. 2017-05-12 06:03:23 +00:00
contrib Add necessary bits to get FreeBSD booting on the Unifi Security Gateway 2017-05-07 22:04:12 +00:00
crypto Fix counter increment in Salsa and ChaCha. 2017-04-22 01:06:23 +00:00
ddb Fix printing of negative offsets (typically from frame pointers) again. 2017-03-26 18:46:35 +00:00
dev cxgbe(4): Avoid an out of bounds access when an attempt to unbind a tx 2017-05-15 18:18:32 +00:00
fs Make nfscl_mtofh() return ENXIO when *nfhpp == NULL. 2017-05-15 13:14:13 +00:00
gdb
geom Synchronize unclean mirrors before adding them to a running gmirror. 2017-05-02 23:29:42 +00:00
gnu [mips] [rt2880] Add oldest Ralink MIPS SOC RT2880 support code. 2017-05-06 06:20:34 +00:00
i386 Use kmem_malloc() instead of malloc(9) for the native amd64 filter. 2017-04-17 22:02:09 +00:00
isa Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
kern mnt_vnode_next_active: use conventional lock order when trylock fails. 2017-05-15 10:02:45 +00:00
kgssapi
libkern armv8 has support for optional CRC32C instructions. This patch checks if they are 2017-04-27 17:53:05 +00:00
mips Add initial support for the floating point implementation register. 2017-05-09 17:35:16 +00:00
modules [iwm] Factor out firmware station handling into if_iwm_sta.c. 2017-05-12 06:03:23 +00:00
net Persistently store NIC's hardware MAC address, and add a way to retrive it 2017-05-11 06:46:39 +00:00
net80211 [net80211] add methods to fetch the global and per-VAP WME parameters. 2017-04-22 02:12:07 +00:00
netgraph Make cached Bluetooth LE host advertise information visible from userland. 2017-04-27 15:03:24 +00:00
netinet Add missing braces around MCAST_EXCLUDE check when KTR support is 2017-05-13 18:41:24 +00:00
netinet6 Add missing braces around MCAST_EXCLUDE check when KTR support is 2017-05-13 18:41:24 +00:00
netipsec Fix SP refcount leak. 2017-04-26 00:34:05 +00:00
netpfil pf: Fix vnet initialisation 2017-05-07 14:33:58 +00:00
netsmb
nfs Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
nfsclient Add an NFSv4.1 mount option for "use one openowner". 2017-04-13 21:54:19 +00:00
nfsserver Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
nlm
ofed All these files need sys/vmmeter.h, but now they got it implicitly 2017-04-17 17:07:00 +00:00
opencrypto Use const with some read-only buffers in opencrypto APIs. 2017-05-09 18:28:42 +00:00
powerpc Fix stack tracing in dtrace for powerpc 2017-05-11 00:23:51 +00:00
riscv Follow r317061 "Remove struct vmmeter from struct pcpu" 2017-04-19 17:06:32 +00:00
rpc Fix the client side krpc from doing TCP reconnects for ERESTART from sosend(). 2017-05-07 12:12:45 +00:00
security Break audit_bsm_klib.c into two files: one (audit_bsm_klib.c) 2017-04-03 10:15:58 +00:00
sparc64 Fix a bug introduced as part of r287726; use the right device_t for 2017-04-29 00:53:17 +00:00
sys Persistently store NIC's hardware MAC address, and add a way to retrive it 2017-05-10 22:13:47 +00:00
teken Oops, my fix for bright colors broke bright black some more (in cases 2017-03-27 10:48:28 +00:00
tests style(9): sort headers 2017-05-09 05:08:47 +00:00
tools [fdt] Make DTBs generated by make_dtb.sh overlay-ready 2017-03-10 22:45:07 +00:00
ufs Remove spl() calls from UFS code. 2017-05-07 14:59:45 +00:00
vm Emulate pre-r317061 ABI. 2017-05-02 18:40:41 +00:00
x86 Ensure that resume path on amd64 only accesses page tables for normal 2017-05-15 20:52:43 +00:00
xdr
xen xenstore: fix suspension when using the xenstore device 2017-03-07 09:17:48 +00:00
Makefile Fix "make cscope-clean" when .OBJDIR already exists 2017-05-01 05:59:52 +00:00