diff options
author | kib <kib@FreeBSD.org> | 2012-02-17 23:47:16 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2012-02-17 23:47:16 +0000 |
commit | abd1094f175810ed5ec686a897d27fae63d1ca87 (patch) | |
tree | 8d01d9dbb96b87e94aed60c4fc7d2b35c530a0c8 /etc/rc.subr | |
parent | b7cff9346353517bc204fe45512c010fcab10186 (diff) | |
download | FreeBSD-src-abd1094f175810ed5ec686a897d27fae63d1ca87.zip FreeBSD-src-abd1094f175810ed5ec686a897d27fae63d1ca87.tar.gz |
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
Diffstat (limited to 'etc/rc.subr')
0 files changed, 0 insertions, 0 deletions