alc 215850cc69 MFC
File                  Revisions
  kern/imgact_aout.c    1.100
  kern/imgact_elf.c     1.167-1.172, 1.175
  kern/imgact_gzip.c    1.55
  vm/vm_extern.h        1.77
  vm/vm_glue.c          1.214

  Use sf_buf_alloc() instead of vm_map_find() on exec_map to create
  the ephemeral mappings that are used as the source for three copy
  operations from kernel space to user space.  There are two reasons
  for making this change: (1) Under heavy load exec_map can fill up
  causing vm_map_find() to fail.  When it fails, the nascent process
  is aborted (SIGABRT).  Whereas, this reimplementation using
  sf_buf_alloc() sleeps.  (2) Although it is possible to sleep on
  vm_map_find()'s failure until address space becomes available (see
  kmem_alloc_wait()), using sf_buf_alloc() is faster.  Furthermore,
  the reimplementation uses a CPU private mapping, avoiding a TLB
  shootdown on multiprocessors.

  The second argument to vm_map_find() should be NULL instead of 0.

  Correct a long-standing problem in elfN_map_insert(): In order to
  copy a page to user space, the user space mapping must allow write
  access.

  Eliminate an unneeded (vm_prot_t) parameter from two functions.
  Eliminate unnecessary uses of a local variable.

  Maintain the vnode lock throughout elfN_load_file() rather than
  releasing it and reacquiring it in vrele().  Consequently, there is
  no reason to increase the reference count on the vm object caching
  the file's pages.

  Eliminate unused parameters to elfN_load_file().

  Maintain the lock on the vnode for most of exec_elfN_imgact().
  Specifically, it is required for the I/O that may be performed by
  elfN_load_section().

  Avoid an obscure deadlock in the a.out, elf, and gzip image
  activators.  Add a comment describing why the deadlock does not
  occur in the common case and how it might occur in less usual
  circumstances.

  Eliminate an unused variable from exec_aout_imgact().

  Avoid a vm object reference leak in a rarely used code path.

  An executable contains at most one PT_INTERP program header.
  Therefore, the loop that searches for it can terminate after it is
  found rather than iterating over the entire set of program headers.

  Eliminate an unneeded initialization.

Approved by: re (mux)
2006-03-16 00:25:32 +00:00
..
MFC
2006-03-16 00:25:32 +00:00
MFC
2006-03-16 00:25:32 +00:00
MFC
2006-03-16 00:25:32 +00:00
2005-11-13 03:14:00 +00:00
2006-03-05 00:03:29 +00:00
2005-10-09 03:29:03 +00:00
2005-09-18 15:03:31 +00:00
2006-03-13 03:05:42 +00:00
2005-11-13 03:12:32 +00:00
2006-03-13 03:05:47 +00:00
2006-03-13 03:05:50 +00:00
2005-11-22 02:12:08 +00:00
2006-03-06 08:42:07 +00:00
2005-10-08 07:06:49 +00:00
2006-01-05 20:23:10 +00:00
2005-12-28 17:35:55 +00:00
2006-03-13 03:05:54 +00:00
2006-02-27 00:22:04 +00:00
2005-08-06 03:06:25 +00:00
2005-03-26 20:04:28 +00:00
2006-02-26 23:59:00 +00:00
2006-01-16 05:48:40 +00:00
2005-07-18 19:54:49 +00:00
2005-10-06 18:29:30 +00:00
2005-10-07 12:40:51 +00:00
2006-01-20 07:38:01 +00:00
2005-10-09 03:25:37 +00:00
2005-03-14 06:51:29 +00:00
2006-01-31 15:44:51 +00:00
2005-12-28 18:05:13 +00:00
2006-03-13 03:06:03 +00:00
2006-02-27 00:01:15 +00:00
2006-03-13 03:06:09 +00:00
2006-03-13 03:06:14 +00:00
2005-10-28 01:03:26 +00:00
2006-03-13 03:06:17 +00:00
2006-03-13 03:06:22 +00:00
2006-03-13 03:06:27 +00:00
2006-03-13 03:06:44 +00:00