Home
last modified time | relevance | path

Searched hist:"3494 f31ad2f19dd3cd47c609560a6a116b8e015d" (Results 1 – 2 of 2) sorted by relevance

/freebsd/sys/i386/linux/
H A Dimgact_linux.cdiff 3494f31ad2f19dd3cd47c609560a6a116b8e015d Sat Feb 18 00:47:16 CET 2012 Konstantin Belousov <kib@FreeBSD.org> 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
/freebsd/sys/compat/linux/
H A Dlinux_misc.cdiff 3494f31ad2f19dd3cd47c609560a6a116b8e015d Sat Feb 18 00:47:16 CET 2012 Konstantin Belousov <kib@FreeBSD.org> 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