summaryrefslogtreecommitdiffstats
path: root/etc/rc.subr
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2012-02-17 23:47:16 +0000
committerkib <kib@FreeBSD.org>2012-02-17 23:47:16 +0000
commitabd1094f175810ed5ec686a897d27fae63d1ca87 (patch)
tree8d01d9dbb96b87e94aed60c4fc7d2b35c530a0c8 /etc/rc.subr
parentb7cff9346353517bc204fe45512c010fcab10186 (diff)
downloadFreeBSD-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
OpenPOWER on IntegriCloud