119028 Commits

Author SHA1 Message Date
joerg
ec16460f5a MFC rev 1.29. In short, it unbreaks symlinks that have double
slashes recorded in them, as in

pathnames.h -> ../../bsdi.1.0/include//pathnames.h

Approved by:	re (scottl)
2006-03-17 21:32:14 +00:00
glebius
f90db41611 MFC:
Do not touch ifp->if_baudrate in miibus aware drivers.

Approved by:	re (scottl)
2006-03-17 21:30:57 +00:00
joerg
95a2ca40ce MFC rev 1.187: Add no synchronize cache quirk for TOSHIBA TransMemory
USB stick.

Approved by:	re (scottl)
2006-03-17 21:30:03 +00:00
glebius
d2f4d3f55d MFC:
- Introduce ifmedia_baudrate(), which returns correct baudrate of the
    given media status. [1]
  - Utilize ifmedia_baudrate() in miibus_statchg() to update ifp->if_baudrate.

  Obtained from:  NetBSD [1]

Approved by:	re (scottl)
2006-03-17 20:17:43 +00:00
jhb
b10d27f0a1 Add a compat API shim for ithread_remove_handler().
Approved by:	re (mux)
2006-03-17 17:32:46 +00:00
delphij
cf9a299a52 MFC: Add snapinfo.
Discussed with:	marks
Approved by:	re (scottl)
2006-03-17 05:08:16 +00:00
kensmith
880b89d40e MFC v1.11:
> date: 2006/03/17 02:05:46;  author: kensmith;  state: Exp;  lines: +0 -5
> First pass at trimming package set down.  Disc2 is still too big
> even with this but we're still deciding exactly what to do about
> that.

Approved by:	re (scottl)
2006-03-17 02:12:34 +00:00
rwatson
1cb719ab5e Regenerate.
Approved by:	re (scottl)
2006-03-17 01:47:33 +00:00
rwatson
3d5d8935a4 Provide unconditionally compiled stub implementations of audit system
calls that simply return ENOSYS.  This will allow basic forward
compatibility with userland audit pieces to be committed in the future,
avoiding the "login killed by SIGSYS" problem users of CVS HEAD
experienced when booting older kernels with newer user spaces (an
unsupported but not uncommon situation when debugging problems).

Approved by:	re (scottl)
Obtained from:	TrustedBSD Project
2006-03-17 01:47:06 +00:00
deischen
32f6962a6f MFC: Relevent commit logs are below.
Only catch SIGINFO (for dumping thread states) when LIBPTHREAD_DEBUG
  is defined in the environment.

  Modify the code path of the ifdef NOTYET part of _kse_single_thread():

  o  Don't reinitialise the atfork() handler list in the child.  We
     are meant to call the child handler, and on subsequent fork()s
     should call all three functions as normal.
  o  Don't reinitialise the thread specific keyed data in the
     child after a fork.  Applications may require this for context.
  o  Reinitialise curthread->tlflags after removing ourselves from
     (and reinitialising) the various internal thread lists.
  o  Reinitialise __malloc_lock in the child after fork() (to balance
     our explicitly taking the lock prior to the fork()).

  With these changes, it is possible to enable the NOTYET code in
  thr_kern.c to allow the use of non-async-safe functions after
  fork()ing from a threaded program.

  Eliminate a race condition in timed waits (cv, mutex, and sleeps).

  Don't forget to initialize a tailq before using it.

  For the ``#ifdef NOTYET'' code that allows calling non-async-safe
  functions in the child after a fork() from a threaded process,
  use __sys_setprocmask() rather than setprocmask() to keep our
  signal handling sane.  Without this fix, signals are essentially
  ignored in said child and things such as protection violations
  result in an endless busy loop.

  Allocate a thread's tcb last so it is easier to handle failures to
  malloc() siginfo.

  Include needed headers that were obtained through <pthread.h>.  Sort headers
  while here.

  amd64
  -----
  Fix a race condition introduced when redzones were added.  Use an
  atomic operation to return and adjust the stack (amd64).

  test
  -----
  o  Include <string.h>
  o  Make this ILP32/LP64 clean: cast pointers to long.

Approved by:	re (scottl)
2006-03-16 23:29:08 +00:00
sos
16ca8e211f MFC:
Add new modes.

Approved by: re@ (mux)
2006-03-16 21:30:09 +00:00
sos
7e7021166c MFC:
Add support for the JMicron JMB361, 365 and 366 chips.
HW and documentation kindly provided by JMicron.

Approved by: re@ (mux)
2006-03-16 21:28:51 +00:00
matteo
c155e30263 Change "grep" with "egrep". Merging by hand is not always the best solution@
This change is approved, since the original patch I sent to re@, didn't have this mistake.

Submitted by:	gad
Approved by:	re (implicit)
2006-03-16 12:22:00 +00:00
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
pjd
66489dd25a MFC: sys/modules/geom/geom_eli/Makefile 1.2
Forgotten MFC.

Approved by:	re (scottl)
2006-03-15 19:20:07 +00:00
matteo
dcaaec9f0a MFC:
Don't build IPv6 support if NO_INET6 was defined

PR:	kern/73865
Approved by:	re (scottl)
2006-03-15 07:44:28 +00:00
dougb
88ccf9e397 MFC moving abi and archdep before SERVERS, and removing scary BEFORE's
MFC'ed versions:
SERVERS 1.6, abi 1.8, archdep 1.11

Reminded by:	delphij
Approved by:	re (scottl)
2006-03-15 00:09:43 +00:00
sam
d92cfb93fe MFC: sync taskqueue api with HEAD modulo preserving the calling
convention for taskqueue_create

Reviewed by:	various
Approved by:	re (scottl)
2006-03-14 23:28:30 +00:00
sam
e282b849e6 MFC 1.90: use m_dup instead of m_copypacket when doing internal bridging
in case packets are modified (e.g. encrypted)

Approved by:	re (scottl)
2006-03-14 23:24:02 +00:00
sam
234e093406 MFC 1.14: correct ni_txrate when using a fixed rate
Approved by:	re (scottl)
2006-03-14 23:22:27 +00:00
marcus
c25c26b047 MFC:
Add missing libdata/ldconfig[32] entries.

Approved by:	re (scottl)
2006-03-14 22:13:13 +00:00
jhb
ac9588d481 MFC: Add the tl_trap_*() and t1_text_*() symbols to unbreak the build.
The changes in rev 1.25 of db_trace.c to use these symbols was MFC'd
earlier.

Approved by:	re (scottl)
2006-03-14 21:12:59 +00:00
jhb
167b2f3ee2 MFC: Don't route interrupts to hyperthreads in an HT system. This
eliminates some performance degradation seen in some workloads when
the change was made from logical APIC addresses to physical APIC addresses.

Approved by:	re (scottl)
2006-03-14 21:07:35 +00:00
jhb
0e122fdeac MFC: Simplify the i8254 timecounter on Alpha, enable use of the alpha
timecounter in UP kernels on SMP machines and, and G/C some cruft.

Approved by:	re (scottl)
2006-03-14 21:04:46 +00:00
imp
252f43a819 Kill 'n' accendtially introduced in last commit.
Approved by: re@ (scottl) implied because the 'n' in the last commit wasn't
			  authorized :-)
2006-03-13 08:08:15 +00:00
imp
25fa61b400 MFC: document audit group being added.
Approved by: re@ (scottl)
2006-03-13 06:41:00 +00:00
sam
40da564e5c MFC 1.30: fix switching between agressive and non-agressive wmm modes
Approved by:	re (mux)
2006-03-13 03:10:31 +00:00
sam
c605b0cd8f MFC 1.89: deliver an l2uf frame on sta join to prime the bridge
Approved by:	re (mux)
2006-03-13 03:09:18 +00:00
jeff
3f93b5e105 MFC Rev 1.226
VFS SMP fixes, stack api, softupdates fixes.

Sponsored by:	Isilon Systems, Inc.
Approved by:	re (scottl)
2006-03-13 03:08:26 +00:00
jeff
789d9290ea MFC Revs 1.357, 1.355
VFS SMP fixes, stack api, softupdates fixes.

Sponsored by:	Isilon Systems, Inc.
Approved by:	re (scottl)
2006-03-13 03:08:21 +00:00
jeff
ed2a1ea210 MFC Revs 1.81, 1.80
VFS SMP fixes, stack api, softupdates fixes.

Sponsored by:	Isilon Systems, Inc.
Approved by:	re (scottl)
2006-03-13 03:08:17 +00:00
jeff
9ca8a95597 MFC Revs 1.65, 1.66
VFS SMP fixes, stack api, softupdates fixes.

Sponsored by:	Isilon Systems, Inc.
Approved by:	re (scottl)
2006-03-13 03:08:12 +00:00
jeff
a95a0944d0 MFC Rev 1.84
VFS SMP fixes, stack api, softupdates fixes.

Sponsored by:	Isilon Systems, Inc.
Approved by:	re (scottl)
2006-03-13 03:08:08 +00:00
jeff
afcf285e43 MFC Revs 1.36, 1.35
VFS SMP fixes, stack api, softupdates fixes.

Sponsored by:	Isilon Systems, Inc.
Approved by:	re (scottl)
2006-03-13 03:08:03 +00:00
jeff
12af739e4a MFC Rev 1.19
VFS SMP fixes, stack api, softupdates fixes.

Sponsored by:	Isilon Systems, Inc.
Approved by:	re (scottl)
2006-03-13 03:08:00 +00:00
jeff
21920ad443 MFC Revs 1.301, 1.302, 1.303
VFS SMP fixes, stack api, softupdates fixes.

Sponsored by:	Isilon Systems, Inc.
Approved by:	re (scottl)
2006-03-13 03:07:55 +00:00
jeff
c7065f6370 MFC Revs 1.192, 1.191, 1.190, 1.189
VFS SMP fixes, stack api, softupdates fixes.

Sponsored by:	Isilon Systems, Inc.
Approved by:	re (scottl)
2006-03-13 03:07:48 +00:00
jeff
6e7a43ec5a MFC Revs 1.115, 1.114, 1.113
VFS SMP fixes, stack api, softupdates fixes.

Sponsored by:	Isilon Systems, Inc.
Approved by:	re (scottl)
2006-03-13 03:07:42 +00:00
jeff
2d043e4c56 MFC Revs 1.71, 1.70
VFS SMP fixes, stack api, softupdates fixes.

Sponsored by:	Isilon Systems, Inc.
Approved by:	re (scottl)
2006-03-13 03:07:37 +00:00
jeff
1987f82a6f MFC Rev 1.139
VFS SMP fixes, stack api, softupdates fixes.

Sponsored by:	Isilon Systems, Inc.
Approved by:	re (scottl)
2006-03-13 03:07:32 +00:00
jeff
17718b8c0d MFC Revs 1.315, 1.314, 1.305
VFS SMP fixes, stack api, softupdates fixes.

Sponsored by:	Isilon Systems, Inc.
Approved by:	re (scottl)
2006-03-13 03:07:27 +00:00
jeff
e080faa30d MFC Rev 1.238
VFS SMP fixes, stack api, softupdates fixes.

Sponsored by:	Isilon Systems, Inc.
Approved by:	re (scottl)
2006-03-13 03:07:23 +00:00
jeff
a198c480fc MFC VFS SMP fixes, stack api, softupdates fixes.
Sponsored by:	Isilon Systems, Inc.
Approved by:	re (scottl)
2006-03-13 03:07:17 +00:00
jeff
ff4e1e0fa8 MFC Revs 1.208, 1.207, 1.206, 1.205
VFS SMP fixes, stack api, softupdates fixes.

Sponsored by:	Isilon Systems, Inc.
Approved by:	re (scottl)
2006-03-13 03:07:14 +00:00
jeff
a9b17fb136 MFC Revs 1.49, 1.48
VFS SMP fixes, stack api, softupdates fixes.

Sponsored by:	Isilon Systems, Inc.
Approved by:	re (scottl)
2006-03-13 03:07:09 +00:00
jeff
b7d364e393 MFC Revs 1.24, 1.25
VFS SMP fixes, stack api, softupdates fixes.

Sponsored by:	Isilon Systems, Inc.
Approved by:	re (scottl)
2006-03-13 03:07:05 +00:00
jeff
1c6ee1f102 MFC Rev 1.10
VFS SMP fixes, stack api, softupdates fixes.

Sponsored by:	Isilon Systems, Inc.
Approved by:	re (scottl)
2006-03-13 03:07:01 +00:00
jeff
35b9a5fa9a MFC Rev 1.138
VFS SMP fixes, stack api, softupdates fixes.

Sponsored by:	Isilon Systems, Inc.
Approved by:	re (scottl)
2006-03-13 03:06:57 +00:00
jeff
44791af4cf MFC Revs 1.163, 1.162
VFS SMP fixes, stack api, softupdates fixes.

Sponsored by:	Isilon Systems, Inc.
Approved by:	re (scottl)
2006-03-13 03:06:49 +00:00
jeff
d5d2e86c35 MFC Revs 1.237, 1.236, 1.234
VFS SMP fixes, stack api, softupdates fixes.

Sponsored by:	Isilon Systems, Inc.
Approved by:	re (scottl)
2006-03-13 03:06:44 +00:00