freebsd-skq/sys/compat
Konstantin Belousov 3494f31ad2 Fix misuse of the kernel map in miscellaneous image activators.
Vnode-backed mappings cannot be put into the kernel map, since it is a
system map.

Use exec_map for transient mappings, and remove the mappings with
kmem_free_wakeup() to notify the waiters on available map space.

Do not map the whole executable into KVA at all to copy it out into
usermode.  Directly use vn_rdwr() for the case of not page aligned
binary.

There is one place left where the potentially unbounded amount of data
is mapped into exec_map, namely, in the COFF image activator
enumeration of the needed shared libraries.

Reviewed by:   alc
MFC after:     2 weeks
2012-02-17 23:47:16 +00:00
..
freebsd32 Add 32-bit compat code for AIO kevent flags introduced in revision 230857. 2012-02-05 04:49:31 +00:00
ia32 Add support for the extended FPU states on amd64, both for native 2012-01-21 17:45:27 +00:00
linprocfs Abrogate nchr argument in proc_getargv() and proc_getenvv(): we always want 2012-01-15 18:47:24 +00:00
linsysfs Remove no-op assignment. 2010-11-15 23:14:14 +00:00
linux Fix misuse of the kernel map in miscellaneous image activators. 2012-02-17 23:47:16 +00:00
ndis In sys/compat/ndis/subr_ntoskrnl.c, change the RtlFillMemory function 2011-12-30 17:18:09 +00:00
netbsd
svr4 Fix misuse of the kernel map in miscellaneous image activators. 2012-02-17 23:47:16 +00:00
x86bios Mark all SYSCTL_NODEs static that have no corresponding SYSCTL_DECLs. 2011-11-07 15:43:11 +00:00