opnsense-src/sys
Neel Natu 49396cced3 Fix a problem seen when a new process was returning to userland
through fork_trampoline.

This was caused because we were clearing the SR_INT_IE and setting
SR_EXL bits of the status register at the same time. This meant
that if an interrupt happened while this MTC0 was making its way
through the pipeline the exception processing would see the
status register with SR_EXL bit set. This in turn would mean that
the COP_0_EXC_PC would not be updated so the return from exception
would be to an incorrect address.

It is easy to verify this fix by a program that forks in a loop
and the child just exits:

	while (1) {
	pid_t pid = vfork();
	if (pid == 0)
	       _exit(0);
	if (pid != -1)
	       waitpid(pid, NULL, 0);
	}

Also remove two instances where we set SR_EXL bit gratuitously in exception.S.

Approved by: imp (mentor)
2010-01-26 02:26:04 +00:00
..
amd64 Fix array overflow. This routine is only called from procfs, 2010-01-24 12:13:38 +00:00
arm Move the examples for the 'hints' and 'env' keywords from various GENERIC 2010-01-19 17:20:34 +00:00
boot Add command-line option -dev to set the default value of the currdev 2010-01-18 06:48:24 +00:00
bsm Add audit events for process descriptor system calls, which will appear in 2009-09-29 21:25:59 +00:00
cam - Report SATA in legacy emulation mode still as SATA. 2010-01-10 09:20:56 +00:00
cddl On FreeBSD, time_t is 64-bit for all platforms except i386 and powerpc, 2010-01-25 07:52:54 +00:00
compat Let us to use our libusb(3) in Linuxolator. 2010-01-18 22:46:06 +00:00
conf - Move .text and all sections up to .bss inclusive to the beginning of 2010-01-23 05:59:10 +00:00
contrib Fix a new header inclusion. 2010-01-21 21:31:39 +00:00
crypto Changed to M_NOWAIT when reallocing psc_buf in padlock_sha_update(), 2009-05-27 09:52:12 +00:00
ddb Replace several instances of 'if (!a & b)' with 'if (!(a &b))' in order 2010-01-08 15:44:49 +00:00
dev o add more notification strings in iwn_intr_str() 2010-01-25 19:36:48 +00:00
fs On LP64 struct ifid is 64-bit aligned while struct fid is 32-bit aligned 2010-01-23 22:38:01 +00:00
gdb
geom Go through with write_metadata() non-error-handling and make it return "void". 2010-01-25 20:51:40 +00:00
gnu Bring in the ext2fs work done by Aditya Sarawgi during and after Google Summer 2010-01-14 14:30:54 +00:00
i386 Handle a race between pmap_kextract() and pmap_promote_pde(). This race is 2010-01-23 18:42:28 +00:00
ia64 Remove cpu_boot() and call efi_reset_system() directly from 2010-01-23 23:16:50 +00:00
isa Remove extraneous semicolons, no functional changes. 2010-01-07 21:01:37 +00:00
kern Split out an invariant in order to better check that newtd, when 2010-01-24 18:16:38 +00:00
kgssapi When the KOBJMETHOD() macro was updated, it resulted in the 2009-06-14 17:33:46 +00:00
libkern Merge from head at r201628. 2010-01-06 05:58:07 +00:00
mips Fix a problem seen when a new process was returning to userland 2010-01-26 02:26:04 +00:00
modules Build smbfs kernel module on sparc64. 2010-01-25 18:50:58 +00:00
net While flushing the multicast filter of an interface, do not zero the relevant 2010-01-24 16:17:58 +00:00
net80211 Call ieee80211_radiotap_rx, not ieee80211_radiotap_tx on sta_input() 2010-01-25 12:23:51 +00:00
netatalk Reverse misordered unlock and lock in at_control for netatalk phase I 2009-08-12 10:44:13 +00:00
netgraph Declare a new EVENTHANDLER called iflladdr_event which signals that the L2 2010-01-18 20:34:00 +00:00
netinet Use [] instead of [0] for flexible arrays. 2010-01-22 07:53:41 +00:00
netinet6 Correct a typo. 2010-01-24 10:22:39 +00:00
netipsec Enable IPcomp by default. 2009-11-29 20:47:43 +00:00
netipx Use queue(9) instead of hand-crafted link lists for the global IPX 2009-06-24 20:57:50 +00:00
netnatm Reimplement the netisr framework in order to support parallel netisr 2009-06-01 10:41:38 +00:00
netncp
netsmb Don't print out a message on loading a module. 'kldload -v' and 'kldstat 2009-09-10 18:33:08 +00:00
nfs Revert rev 192323 (nfs_common.c only): 2009-07-12 03:53:52 +00:00
nfsclient Fix a typo in a comment introduced by r202767. 2010-01-21 21:59:10 +00:00
nfsserver Some style(9) fixes in order to fabricate a commit to denote that 2010-01-09 15:59:15 +00:00
nlm Handle GRANTED_RES messages more gracefully: Send along a grant cookie 2009-10-07 19:50:14 +00:00
opencrypto Add comments trying to explain what bad things happen here, i.e. 2010-01-09 15:43:47 +00:00
pc98 Move the examples for the 'hints' and 'env' keywords from various GENERIC 2010-01-19 17:20:34 +00:00
pci Add support for four more nfsmb controllers, shipping on at least the 2010-01-24 14:57:54 +00:00
powerpc Move the examples for the 'hints' and 'env' keywords from various GENERIC 2010-01-19 17:20:34 +00:00
rpc Replace the static NGROUPS=NGROUPS_MAX+1=1024 with a dynamic 2010-01-12 07:49:34 +00:00
security Replace the static NGROUPS=NGROUPS_MAX+1=1024 with a dynamic 2010-01-12 07:49:34 +00:00
sparc64 Merge r202882 from amd64/i386: 2010-01-23 22:11:18 +00:00
sun4v Add INCLUDE_CONFIG_FILE in GENERIC on all non-embedded platforms. 2010-01-10 17:44:22 +00:00
sys - Fix the kthread_{suspend, resume, suspend_check}() locking. 2010-01-24 15:07:00 +00:00
teken MFC @199204 2009-11-12 00:36:22 +00:00
tools Output a comment on top of each generated file explaining where it came 2009-10-25 09:48:21 +00:00
ufs Return proper error code. 2010-01-25 16:09:50 +00:00
vm When a vnode-backed vm object is referenced, it increments the vnode 2010-01-17 21:26:14 +00:00
xdr Add a check for a NULL mbuf ptr at the beginning of xdrmbuf_inline() 2009-08-12 16:27:51 +00:00
xen Remove extraneous semicolons, no functional changes. 2010-01-07 21:01:37 +00:00
Makefile Remove the unmaintained University of Michigan NFSv4 client from 8.x 2009-05-22 12:35:12 +00:00