freebsd-nq/sys
Konstantin Belousov 79e9451f07 Vm map code performs clipping when map entry covers region which is
larger than the operational region.  If the op region size is zero,
clipping would create a zero-sized map entry.  The result is that vm
map splay starts behaving inconsistently, sometimes returning
zero-sized entry, sometimes the next (or previous) entry.

One step further, it could result in e.g. vm_map_wire() setting
MAP_ENTRY_IN_TRANSITION on the zero-sized entry, but failing to clear
it in the done part.  The vm_map_delete() than hangs forever waiting
for the flag removal.

Verify for zero-length requests and act as if it is always successfull
without performing any action on the address space.

Diagnosed by:	pho
Tested by:	pho (previous version)
Reviewed by:	alc (previous version)
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
2013-11-20 09:03:48 +00:00
..
amd64 Fix accounting for hw.realmem on the i386 and amd64 platforms. 2013-11-15 16:05:55 +00:00
arm Apply access flags for managed and unmanaged pages properly on ARMv6/v7 2013-11-19 23:37:50 +00:00
boot Add a try-include word (which acts the same as "include") and use it to 2013-11-17 18:12:17 +00:00
bsm Change the cap_rights_t type from uint64_t to a structure that we can extend 2013-09-05 00:09:56 +00:00
cam Introduce seperate mutex lock to protect protect CTL I/O pools, slightly 2013-11-11 08:27:20 +00:00
cddl Fix the function search space. 2013-11-20 01:33:13 +00:00
compat Fix build. 2013-11-05 19:17:19 +00:00
conf Import the axge(4) driver for the ASIX AX88178A and AX88179 USB Ethernet 2013-11-19 00:37:53 +00:00
contrib Remove 'inline' from ar9300_init_pll(), it's too big to inline. 2013-11-08 16:28:00 +00:00
crypto make it so that from/to can be missaligned as it can happen (the geli 2013-11-06 19:14:49 +00:00
ddb
dev Add alternate ID for Novatel MiFi 2200 CDMA, which is used by my 2013-11-20 02:16:47 +00:00
fs Remove useless comparisions of assigned offset and resid with the 2013-11-13 08:55:09 +00:00
gdb rename scheduler->swapper and SI_SUB_RUN_SCHEDULER->SI_SUB_LAST 2013-07-24 09:45:31 +00:00
geom Add "resize" verb to gmirror(8) and such functionality to geom_mirror(4). 2013-11-19 22:55:17 +00:00
gnu/fs/reiserfs
i386 Fix accounting for hw.realmem on the i386 and amd64 platforms. 2013-11-15 16:05:55 +00:00
ia64 Don't enable interrupts before we call sched_throw(). Interrupts 2013-11-10 04:22:40 +00:00
isa
kern Revert back to use int for the page counts. In vn_io_fault(), the i/o 2013-11-20 08:45:26 +00:00
kgssapi Add support for host-based (Kerberos 5 service principal) initiator 2013-07-09 01:05:28 +00:00
libkern Fix ixp425 boot2 with ARM EABI: 2013-09-29 15:19:34 +00:00
mips As of r257209, all architectures have defined VM_KMEM_SIZE_SCALE. In other 2013-11-08 16:25:00 +00:00
modules Import the axge(4) driver for the ASIX AX88178A and AX88179 USB Ethernet 2013-11-19 00:37:53 +00:00
net Allow ethernet drivers to pass in packets connected via the nextpkt pointer. 2013-11-18 22:58:14 +00:00
net80211 Fix AMRR to correctly select the initial rate. 2013-11-09 07:30:13 +00:00
netatalk The r48589 promised to remove implicit inclusion of if_var.h soon. Prepare 2013-10-26 17:58:36 +00:00
netgraph Eliminate duplicated & dead code. 2013-11-08 22:40:33 +00:00
netinet In r257692 I intentionally deleted code that handled P2P interfaces 2013-11-17 15:14:07 +00:00
netinet6 Fix panic with RADIX_MPATH, when RTFREE_LOCKED() called for already 2013-11-11 12:49:00 +00:00
netipsec Initialize prot variable. 2013-11-11 13:19:55 +00:00
netipx The r48589 promised to remove implicit inclusion of if_var.h soon. Prepare 2013-10-26 17:58:36 +00:00
netnatm Provide includes that are needed in these files, and before were read 2013-10-26 18:18:50 +00:00
netpfil Some fixups to pf_get_sport after r257223: 2013-11-14 14:20:35 +00:00
netsmb Catch up with sb_timeo type change in r255138. This fixes 2013-11-08 08:44:09 +00:00
nfs The r48589 promised to remove implicit inclusion of if_var.h soon. Prepare 2013-10-26 17:58:36 +00:00
nfsclient The r48589 promised to remove implicit inclusion of if_var.h soon. Prepare 2013-10-26 17:58:36 +00:00
nfsserver The r48589 promised to remove implicit inclusion of if_var.h soon. Prepare 2013-10-26 17:58:36 +00:00
nlm Intermittent crashes in the NLM (rpc.lockd) code during system 2013-09-06 23:14:31 +00:00
ofed Fix creating a vlan over lagg over mlxen crash. 2013-11-17 20:58:31 +00:00
opencrypto Make sendfile() a method in the struct fileops. Currently only 2013-08-15 07:54:31 +00:00
pc98 x86: Allow users to change PSL_RF via ptrace(PT_SETREGS...) 2013-11-14 15:37:20 +00:00
pci Add preliminary support for RTL8168EP. 2013-10-29 05:37:05 +00:00
powerpc Add a sysctl to allow disabling resetting the OF syscons. 2013-11-17 20:29:33 +00:00
rpc Some minor tuning to rpc/svc.c: 2013-11-14 13:51:53 +00:00
security The r48589 promised to remove implicit inclusion of if_var.h soon. Prepare 2013-10-26 17:58:36 +00:00
sparc64 As of r257209, all architectures have defined VM_KMEM_SIZE_SCALE. In other 2013-11-08 16:25:00 +00:00
sys Bump __FreeBSD_version for iconv changes 2013-11-17 22:59:06 +00:00
teken
tools
ufs UFS2: make di_extsize unsigned. 2013-10-24 00:33:29 +00:00
vm Vm map code performs clipping when map entry covers region which is 2013-11-20 09:03:48 +00:00
x86 x86: Allow users to change PSL_RF via ptrace(PT_SETREGS...) 2013-11-14 15:37:20 +00:00
xdr
xen Remove redundant redeclaration of gdtset in sys/xen/xen-os.h, to silence 2013-10-18 17:06:13 +00:00
Makefile