Official MINIX sources - Automatically replicated from gerrit.minix3.org
Go to file
Justinien Bouron b1b2735c60 Fix sysenter and syscall features.
Those features were not configured properly and had a race-condition
when enabling back interrupts before a sysexit/sysret.

Configuration: The BSP is executing tss_init on behalf of APs. Thus any
writes in the MSRs in tss_init would end up in the BSP's MSRs leading
to:
	* BSP not using the correct kernel stack.
	* APs using undefined instruction/stack pointer and code segment
upon entering the kernel.
Fix: Let the cores writing in their own MSRs.

Race-condition: When restoring a process' EFLAGS before a sysexit/sysret
interrupts could be enabled while the core was still in the kernel. If
an interrupt is triggered at this point it would lead to a deadlock on
the BKL down the line.
Fix: Disable IF in saved EFLAGS and use sti before sysexit/sysret.
2019-03-10 04:35:03 -07:00
bin Remove building with NOCRYPTO option 2018-11-14 08:26:58 +01:00
common w(1): switch to libkvm 2016-01-13 20:32:50 +01:00
crypto etc: synchronize master.password, group to NetBSD 2017-02-18 21:37:24 +00:00
dist/pf/sbin/pfctl Import a subset of PF distribution files 2016-06-18 12:20:46 +00:00
distrib import games/worm from NetBSD 2018-10-27 16:56:17 +02:00
docs Import NetBSD networking rc scripts 2017-04-30 13:16:22 +00:00
etc etc/services - sync with NetBSD-8 2018-11-13 08:45:27 +01:00
external dhcp-eval.5: fix typo: greater then -> greater than 2018-10-27 16:56:17 +02:00
games import games/worm from NetBSD 2018-10-27 16:56:17 +02:00
gnu Fix the process for GNU tools on MINIX 2016-11-30 08:42:36 +01:00
include Enable a few more NetBSD functions 2017-03-09 23:40:09 +00:00
lib Fix ARM NDEBUG Builds 2018-03-31 19:34:03 +02:00
libexec Fix ARM NDEBUG Builds 2018-03-31 19:34:03 +02:00
minix Fix sysenter and syscall features. 2019-03-10 04:35:03 -07:00
releasetools ARM: Remove dependency on mtools 2017-07-12 08:20:16 +02:00
sbin Sync some manuals from bin & sbin with NetBSD-8 2018-11-13 08:40:01 +01:00
share bsd.own.mk: use -mno-unaligned-access on ARM 2018-03-25 11:23:21 +02:00
sys pci server crashes during boot on Qubes OS 2017-11-16 23:05:02 +01:00
tests tests: add most kyua kernel tests 2016-01-16 14:04:25 +01:00
tools Improve the process for GNU tools 2016-09-01 21:16:13 +02:00
usr.bin replace logger with NetBSD version 2018-10-27 17:05:47 +02:00
usr.sbin ping(8), traceroute(8): adapt to new LWIP service 2017-04-30 13:16:06 +00:00
.gitignore Initial import of NetBSD rc system 2017-02-23 14:08:39 +00:00
.gitreview build:update 'git review' config to match gerrit.minix3.org 2014-07-28 17:05:15 +02:00
build.sh NetBSD re-synchronization of the source tree 2016-01-13 20:32:14 +01:00
LICENSE Fix parameter parsing in cut 2010-01-21 10:16:05 +00:00
Makefile NetBSD re-synchronization of the source tree 2016-01-13 20:32:14 +01:00
Makefile.inc Synchronize on NetBSD-CVS (2013/12/1 12:00:00 UTC) 2014-07-28 17:05:06 +02:00