freebsd-nq/sys/i386/linux
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
..
imgact_linux.c Fix misuse of the kernel map in miscellaneous image activators. 2012-02-17 23:47:16 +00:00
linux_dummy.c Convert files to UTF-8 2012-01-15 13:23:18 +00:00
linux_genassym.c
linux_ipc64.h
linux_locore.s
linux_machdep.c In order to maximize the re-usability of kernel code in user space this 2011-09-16 13:58:51 +00:00
linux_proto.h Regen. 2011-12-29 15:35:47 +00:00
linux_ptrace.c
linux_support.s
linux_syscall.h Regen. 2011-12-29 15:35:47 +00:00
linux_syscalls.c Regen. 2011-12-29 15:35:47 +00:00
linux_sysent.c Regen. 2011-12-29 15:35:47 +00:00
linux_systrace_args.c Regen. 2011-12-29 15:35:47 +00:00
linux_sysvec.c Convert files to UTF-8 2012-01-15 13:23:18 +00:00
linux.h Convert files to UTF-8 2012-01-15 13:23:18 +00:00
Makefile add DTrace systrace support for linux32 and freebsd32 on amd64 syscalls 2011-03-12 08:51:43 +00:00
syscalls.conf add DTrace systrace support for linux32 and freebsd32 on amd64 syscalls 2011-03-12 08:51:43 +00:00
syscalls.master Implement linux_fadvise64() and linux_fadvise64_64() using 2011-12-29 15:34:59 +00:00