1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-17 10:26:15 +00:00
freebsd/sys
Konstantin Belousov 70978c93b8 If vm_page_grab() allocates a new page, the page is not inserted into
page queue even when the allocation is not wired.  It is
responsibility of the vm_page_grab() caller to ensure that the page
does not end on the vm_object queue but not on the pagedaemon queue,
which would effectively create unpageable unwired page.

In exec_map_first_page() and vm_imgact_hold_page(), activate the page
immediately after unbusying it, to avoid leak.

In the uiomove_object_page(), deactivate page before the object is
unlocked.  There is no leak, since the page is deactivated after
uiomove_fromphys() finished.  But allowing non-queued non-wired page
in the unlocked object queue makes it impossible to assert that leak
does not happen in other places.

Reviewed by:	alc
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
2014-08-13 05:44:08 +00:00
..
amd64 Update the text of a KASSERT() to reflect the changes in r269728. 2014-08-09 17:13:02 +00:00
arm Fix two files forgotten in r269783 (vt_generate_cons_palette) 2014-08-10 22:24:14 +00:00
boot Quiesce warning about discarding a const qualifier in assignement. 2014-08-08 21:47:47 +00:00
bsm
cam is_full_id is set to 0 and then not used. remove it. 2014-08-08 11:46:45 +00:00
cddl MFV r269542: 2014-08-05 00:07:21 +00:00
compat All mbuf external free functions never fail, so let them be void. 2014-07-11 13:58:48 +00:00
conf Truncate the ctfmerge command line, like we do with SYSTEM_LD. 2014-08-12 23:48:37 +00:00
contrib Add some more OS_MARK() probes to the AR9300 HAL. 2014-08-11 00:03:50 +00:00
crypto
ddb
dev Fix typo when displaying the HPET timer unit number. 2014-08-13 00:18:16 +00:00
fs Change the NFS server's printf related to hitting 2014-08-10 01:13:32 +00:00
gdb
geom Turn off kern.geom.part.mbr.enforce_chs by default. 2014-08-12 10:31:31 +00:00
gnu Revert r269528; this was not the right way to bring these changes in. 2014-08-05 22:38:49 +00:00
i386 Correct a comment brought over from amd64. i386 doesn't use long 2014-08-12 18:22:57 +00:00
isa
kern If vm_page_grab() allocates a new page, the page is not inserted into 2014-08-13 05:44:08 +00:00
kgssapi
libkern Fix unwind-info errors in our hand-written arm assembler code. 2014-08-01 18:24:44 +00:00
mips Change pmap_enter(9) interface to take flags parameter and superpage 2014-08-08 17:12:03 +00:00
modules Similar to r250143, optimize MODULES_OVERRIDE such that SUBDIR isn't 2014-08-11 17:04:04 +00:00
net - Remove unneeded include. 2014-08-11 03:04:16 +00:00
net80211 Undo r195846 for now - allow raw frame transmit in monitor mode. 2014-08-10 08:35:42 +00:00
netgraph
netinet Change SCTP sysctl from auth_disable to auth_enable. This is 2014-08-12 13:13:11 +00:00
netinet6 Merge 'struct ip6protosw' and 'struct protosw' into one. Now we have 2014-08-08 01:57:15 +00:00
netipsec Merge 'struct ip6protosw' and 'struct protosw' into one. Now we have 2014-08-08 01:57:15 +00:00
netnatm
netpfil Merge 'struct ip6protosw' and 'struct protosw' into one. Now we have 2014-08-08 01:57:15 +00:00
netsmb
nfs
nfsclient
nfsserver
nlm
ofed - Fix radix tree memory leakage when unloading modules using radix 2014-08-12 11:45:57 +00:00
opencrypto
pc98
pci
powerpc Fix two files forgotten in r269783 (vt_generate_cons_palette) 2014-08-10 22:24:14 +00:00
rpc
security
sparc64 On sparc64, do not keep mappings for the destroyed sf_bufs. Sparc64 2014-08-10 16:59:39 +00:00
sys Provide sf_buf_ref() to optimize refcounting of already allocated 2014-08-11 12:59:55 +00:00
teken
tools
ufs Revision r269457 removed the Giant around mount and unmount code, but 2014-08-12 09:33:00 +00:00
vm If vm_page_grab() allocates a new page, the page is not inserted into 2014-08-13 05:44:08 +00:00
x86 atpic: make sure atpic_init is called after IO APIC initialization 2014-08-07 17:00:50 +00:00
xdr
xen xen: implement event channel PIRQ support 2014-08-04 08:42:29 +00:00
Makefile Remove ia64. 2014-07-07 00:27:09 +00:00