freebsd-dev/sys/compat/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
..
linux_emul.c In order to maximize the re-usability of kernel code in user space this 2011-09-16 13:58:51 +00:00
linux_emul.h Extend struct sysvec with new method sv_schedtail, which is used for an 2011-03-08 19:01:45 +00:00
linux_file.c Convert files to UTF-8 2012-01-15 13:23:18 +00:00
linux_file.h Make the Linux *at() calls a bit more complete. 2011-11-19 07:19:37 +00:00
linux_fork.c Add experimental support for process descriptors 2011-08-18 22:51:30 +00:00
linux_futex.c Mark MALLOC_DEFINEs static that have no corresponding MALLOC_DECLAREs. 2011-11-07 06:44:47 +00:00
linux_futex.h Yet another unimplemented futex operation, print out about. 2011-01-31 06:06:23 +00:00
linux_getcwd.c The NetBSD Foundation has granted permission to remove clause 3 and 4 from 2010-03-01 17:20:04 +00:00
linux_ioctl.c Convert files to UTF-8 2012-01-15 13:23:18 +00:00
linux_ioctl.h This is v4l2 support for the linuxulator. This allows to access FreeBSD 2011-05-04 09:05:39 +00:00
linux_ipc.c Convert files to UTF-8 2012-01-15 13:23:18 +00:00
linux_ipc.h
linux_mib.c Mark all SYSCTL_NODEs static that have no corresponding SYSCTL_DECLs. 2011-11-07 15:43:11 +00:00
linux_mib.h Staticize functions which are not used somewhere else, move the 2011-03-15 13:40:47 +00:00
linux_misc.c Fix misuse of the kernel map in miscellaneous image activators. 2012-02-17 23:47:16 +00:00
linux_misc.h linux compat: improve and fix sendmsg/recvmsg compatibility 2011-03-26 11:05:53 +00:00
linux_signal.c Convert files to UTF-8 2012-01-15 13:23:18 +00:00
linux_signal.h Put the macro declaration in the relevant include file for future use. 2011-02-15 21:22:09 +00:00
linux_socket.c Convert files to UTF-8 2012-01-15 13:23:18 +00:00
linux_socket.h linux compat: improve and fix sendmsg/recvmsg compatibility 2011-03-26 11:05:53 +00:00
linux_stats.c Remove direct access to si_name. 2012-02-10 12:35:57 +00:00
linux_sysctl.c
linux_sysproto.h
linux_time.c The NetBSD Foundation has granted permission to remove clause 3 and 4 from 2010-03-01 17:20:04 +00:00
linux_uid16.c Add curly braces missed in r226247. 2011-10-11 13:40:37 +00:00
linux_util.c Remove direct access to si_name. 2012-02-10 12:35:57 +00:00
linux_util.h Remove direct access to si_name. 2012-02-10 12:35:57 +00:00
linux_videodev2_compat.h Commit the missing linux_videdev2_compat.h (lost somewhere between 2011-05-04 13:09:20 +00:00
linux_videodev2.h Add explanation about the use-permission and FreeBSDify it. 2011-05-04 08:41:55 +00:00
linux_videodev_compat.h
linux_videodev.h Fix typo in comment, improve comment. 2011-05-04 08:42:31 +00:00