opnsense-src/sys
Konstantin Belousov 0acea7dfde The mlockall() or VM_MAP_WIRE_HOLESOK does not interact properly with
parallel creation of the map entries, e.g. by mmap() or stack growing.
It also breaks when other entry is wired in parallel.

The vm_map_wire() iterates over the map entries in the region, and
assumes that map entries it finds are marked as in transition before,
also that any entry marked as in transition, are marked by the current
invocation of vm_map_wire().  This is not true for new entries in the
holes.

Add the thread owner of the MAP_ENTRY_IN_TRANSITION flag to struct
vm_map_entry.  In vm_map_wire() and vm_map_unwire(), only process the
entries which transition owner is the current thread.

Reported and tested by:	pho
Reviewed by:	alc
Sponsored by:	The FreeBSD Foundation
MFC after:	2 weeks
2013-07-11 05:55:08 +00:00
..
amd64 Clear m->object for the page taken from the delayed free list for 2013-07-10 09:24:03 +00:00
arm Remove trailing whitespaces. 2013-07-10 10:15:38 +00:00
boot Add 2 builtin words for working with directories: 2013-07-10 21:37:50 +00:00
bsm Implement chflagsat(2) system call, similar to fchmodat(2), but operates on 2013-03-21 22:59:01 +00:00
cam Added 4K QUIRK for OCZ Vertex 4 SSDs 2013-07-09 10:41:17 +00:00
cddl dtrace/fasttrap: install hook functions only after all data is 2013-07-09 09:05:00 +00:00
compat - Move videodev headers from compat/linux to contrib/v4l (cp from vendor and 2013-07-06 19:59:06 +00:00
conf Adding urtwn(4) firmware and related changes. 2013-07-10 08:21:09 +00:00
contrib Fix build for gcc users by declaring variables for unions in structs which 2013-07-10 10:40:52 +00:00
crypto Sync with KAME. 2013-07-09 22:04:35 +00:00
ddb Small textdump enhancements. 2012-11-01 04:07:08 +00:00
dev Fix my last commit, flags rather than flag... duh. 2013-07-11 03:44:06 +00:00
fs Implement 1003.1-2001 pathconf() keys. 2013-07-10 22:03:01 +00:00
gdb Update the ddb and gdb backends for the new 'trace_thread' hook. 2012-04-12 21:34:58 +00:00
geom When panicing due to the gjournal overflow, print the geom metadata 2013-07-10 10:11:43 +00:00
gnu/fs/reiserfs Garbage collect XFS bits which are now already completely disconnected 2013-03-02 15:33:54 +00:00
i386 Explicitely panic instead of possibly doing undefined things when 2013-07-11 05:15:30 +00:00
ia64 Fix issues with zeroing and fetching the counters, on x86 and ppc64. 2013-07-01 02:48:27 +00:00
isa - There's no need to overwrite the default device method with the default 2011-11-22 21:28:20 +00:00
kern Do not invalidate page of the B_NOCACHE buffer or buffer after an I/O 2013-07-11 05:36:26 +00:00
kgssapi Add support for host-based (Kerberos 5 service principal) initiator 2013-07-09 01:05:28 +00:00
libkern Attempt to mitigate poor initialization of arc4 by one-shot 2013-04-19 00:30:52 +00:00
mips Nearly a complete rewrite of elf.h. 2013-07-09 19:01:38 +00:00
modules Adding urtwn(4) firmware and related changes. 2013-07-10 08:21:09 +00:00
net Correct CTASSERT condition. 2013-07-09 15:10:27 +00:00
net80211 Make kassert_printf use __printflike. 2013-07-07 21:39:37 +00:00
netatalk Add const qualifier to the dst parameter of the ifnet if_output method. 2013-04-26 12:50:32 +00:00
netgraph Fix several typos 2013-05-12 16:43:26 +00:00
netinet Extend debug logging of TCP timestamp related specification 2013-07-10 12:06:01 +00:00
netinet6 Correct the size of allocated memory to store array of counters. 2013-07-09 15:20:46 +00:00
netipsec Migrate structs ahstat, espstat, ipcompstat, ipipstat, pfkeystat, 2013-07-09 10:08:13 +00:00
netipx Mechanically substitute flags from historic mbuf allocator with 2012-12-05 08:04:20 +00:00
netnatm Mechanically substitute flags from historic mbuf allocator with 2012-12-05 08:04:20 +00:00
netpfil Improve locking strategy between keys hash and ID hash. 2013-06-13 06:07:19 +00:00
netsmb Remove a reference to LK_DRAIN now that lockmgr(9) is gone from this 2013-06-28 20:21:13 +00:00
nfs Move the NFS FHA (File Handle Affinity) code from sys/nfsserver to 2013-04-17 22:42:43 +00:00
nfsclient A problem with the old NFS client where large writes to large files 2013-07-04 00:54:23 +00:00
nfsserver - Convert the bufobj lock to rwlock. 2013-05-31 00:43:41 +00:00
nlm Remove the support for using non-mpsafe filesystem modules. 2012-10-22 17:50:54 +00:00
ofed Allow mlx4 devices to switch from Ethernet to Infiniband (and vice versa): 2013-07-08 21:25:12 +00:00
opencrypto When porting XTS-related code from OpenBSD I forgot to update copyright (only 2013-02-20 22:59:53 +00:00
pc98 MFi386: revision 251039 2013-06-01 12:21:59 +00:00
pci - Corrrect mispellings of word useful 2013-04-17 11:45:15 +00:00
powerpc Fix indentation. 2013-07-02 07:17:56 +00:00
rpc Add support for host-based (Kerberos 5 service principal) initiator 2013-07-09 01:05:28 +00:00
security audit_proc_coredump: check return value of audit_new 2013-07-09 09:03:01 +00:00
sparc64 Fix issues with zeroing and fetching the counters, on x86 and ppc64. 2013-07-01 02:48:27 +00:00
sys Add vfs_mounted and vfs_unmounted events so that components can be informed 2013-07-10 15:35:25 +00:00
teken
tools Further refine the handling of stop signals in the NFS client. The 2013-02-21 19:02:50 +00:00
ufs Change i_gen in UFS to an unsigned type. 2013-07-10 18:19:48 +00:00
vm The mlockall() or VM_MAP_WIRE_HOLESOK does not interact properly with 2013-07-11 05:55:08 +00:00
x86 Fix a KTR_BUSDMA format string. 2013-06-18 06:55:58 +00:00
xdr Use m_get() and m_getcl() instead of compat macros. 2013-03-15 10:21:18 +00:00
xen Adjust i386 Xen PV support for updated Xen interface files. 2013-06-17 01:43:07 +00:00
Makefile Remove netncp cscope entry missed in r248097 2013-03-12 14:21:52 +00:00