56269 Commits

Author SHA1 Message Date
delphij
9b60139dbe MFC (by le@):
> sys/amd64/amd64/busdma_machdep.c,v 1.71
> sys/i386/i386/busdma_machdep.c,v 1.75

Fix typos.

Approved by:	re (mux)
2006-03-28 06:23:00 +00:00
davidxu
b75d026a4e MFC revision 1.232, 1.233, fix thread suspension race.
Approved by: re (kensmith)
2006-03-26 01:29:55 +00:00
marius
e0f85ed156 MFC: 1.11
For E250 and E450 enable the watchdog part of the MK48Txx as it just
works there.

Approved by:	re (hrs)
2006-03-25 12:17:23 +00:00
marius
d9e8b6d98d - Clear the interrupt source flags before processing the interrupt
events and turn off NIC interrupts while in the interrupt handler.
  This fixes the device timeouts seen with the VMware LANCE.
- Relax the watchdog timer somewhat; don't enable it until the last
  packet is enqueued and if there is a TX interrupt but there are
  still outstanding ones reload the timer.

Approved by:	re (hrs)
2006-03-25 12:13:21 +00:00
iedowse
d61519e4a6 MFC 1.26: Correct the calculation of the report size and only look
at reports that have the specified kind, instead of assuming that
there is only one report of the right kind in the report descriptor.

Approved by:	re (kensmith)
2006-03-25 04:46:52 +00:00
iedowse
4abdf3a5e1 MFC: Sony DSC cameras with revision number 6.0 require the same
quirk as those reporting revision 5.0.

Approved by:	re (mux)
2006-03-24 21:42:02 +00:00
delphij
6b5f6d40b5 MFC 1.263: a typo fix (diff reduction against -HEAD)
Approved by:	re (hrs)
2006-03-24 04:48:42 +00:00
yongari
4035c15903 MFC if_hme.c:1.47 to RELENG_6:
Backout rev. 1.46. It caused Rx checksum offload breakage on little
 endian systems.

Approved by:    re (hrs)
2006-03-24 00:38:07 +00:00
sam
21d8390100 MFC 1.40: when doing s/w crypto make sure work is done w/ a writable
mbuf chain; this corrects problems with drivers that rely on the
    host to do crypto

Approved by:	re (hrs)
2006-03-23 23:28:43 +00:00
sam
87fb33de86 MFC: promote fast ipsec's m_clone routine for public use; it is renamed
m_unshare and the caller can now control how mbufs are allocated

Approved by:	re (hrs)
2006-03-23 23:24:33 +00:00
sobomax
4257df9039 MFC: also look for BSD label at 512-byte offset, if we can't find
it on the very beginning of the second sector. This makes it compatible
with labels created by disklabel(8) on non-512-byte-per-sector
devices.

Approved by:	re
2006-03-23 22:40:28 +00:00
csjp
f3b5ccdb54 MFC descriptor fixes in hopes of killing the "dup(2) regression on 6.x" show
stopper item on the 6.1-RELEASE TODO list.

Approved by:	re (scottl)
2006-03-23 04:07:01 +00:00
tegge
b93a63cac4 MFC: Let snapshots make a copy of old contents for all buffers taking part
in a cluster instead of just the first buffer.

     Delay buf_start() calls until snapshots have a copy of old content.

     Allow compilation when not using softupdates.

     Remove unused leaked debug function prototype.

PR:		kern/93942
Approved by:	re (kensmith)
2006-03-22 17:54:50 +00:00
tegge
5ad3beda10 MFC: Add kludge to avoid deadlock when unlinking snapshot.
Approved by:	re (kensmith)
2006-03-22 17:46:50 +00:00
tegge
8529972b50 MFC: Reduce probability of unmount failing after having unmounted snapshots.
Approved by:	re (kensmith)
2006-03-22 17:44:42 +00:00
tegge
5321591e56 MFC: Ensure that vnode for directory isn't reclaimed before ffs_snapshot()
has completed expunging unlinked files.  It could come back at another
     memory location causing a lock order reversal.

Approved by:	re (kensmith)
2006-03-22 17:42:31 +00:00
tegge
270e3c1d30 MFC: Call vn_start_write() before locking vnode.
Approved by:	re (kensmith)
2006-03-22 17:39:27 +00:00
tegge
b9a0371626 MFC: Don't call vn_finished_write() if vn_start_write() failed.
Approved by:	re (kensmith)
2006-03-22 17:34:39 +00:00
cperciva
39c23762b9 Add missing code needed for the detection of IPSec packet replays. [1]
Correctly identify the user running opiepasswd(1) when the login name
differs from the account name. [2]

Modify timeout handling logic in sendmail(8) to correct a reported
signal handling race condition. [3]

Approved by:	re (scottl)
Security:	FreeBSD-SA-06:11.ipsec [1]
Security:	FreeBSD-SA-06:12.opie [2]
Security:	FreeBSD-SA-06:13.sendmail [3]
2006-03-22 16:01:56 +00:00
yar
ec98efa564 MFC in the pf and pflog modules:
pf: Respect KERNBUILDDIR.
both: Don't depend on DEV_*.

Approved by:	re (scottl)
2006-03-22 15:56:32 +00:00
yar
b481a27976 MFC rev. 1.8:
Avoid pulling in the whole <net/pfvar.h> by opaquely declaring
the structs pflog_packet() takes pointers to.

Approved by:	re (scottl)
2006-03-22 15:18:04 +00:00
ups
ceb214c91f MFC: 1.271
Enable global pages TLB extension on Application Processors.

Approved by:    re (kensmith)
2006-03-22 13:45:47 +00:00
jkoshy
87541f07a1 MFC {r1.19,r1.21 sys/dev/hwpmc/hwpmc_mod.c; r1.5 hwpmc_logging.c}:
- When a process is de-configuring a log file, also stop all of its
   PMCs that require a log file to operate.  This change should fix
   PR 90269. [1]
 - When deconfiguring a log, only stop PMCs that are in the RUNNING
   state. [2]

Approved by:	re (scottl) [1], (hrs) [2]
PR:		kern/90269
2006-03-22 10:25:37 +00:00
glebius
483f47f6db Partial backout. Do not use time_uptime instead of time_second, since
this change wasn't merged to other files.

Pointy hat to:	glebius
Approved by:	re (hrs)
2006-03-22 07:48:31 +00:00
suz
35d4326dda MFC Rev 1.36
(added a note about the assumption for m->m_pkthdr.rcvif)

Approved by: re(hrs)
2006-03-22 06:34:37 +00:00
suz
8b8a41932a MFC Rev 1.43
updates net.inet6.ip6.kame_version as the proof of the latest KAME merge

Approved by: re(hrs)
2006-03-22 06:32:54 +00:00
jhb
f59079c372 MFC: Add device ID for the Neteasy DRP-32TXD cardbus 10/100 card.
Approved by:	re (hrs)
2006-03-21 21:10:58 +00:00
jhb
bc610ba42b MFC: Don't allow userland to set hardware watch points on kernel memory.
Approved by:	re (mux)
2006-03-20 19:56:44 +00:00
suz
8f7675c1f5 MFC Rev 1.32
Approved by: re(mux)
2006-03-20 16:23:08 +00:00
pjd
a56f321071 MFC: graid3(8)
Synchronize graid3(8) with HEAD:
- Speed up synchronization process by using configurable number of parallel
  I/O requests.
- Reimplement graid3 softc synchronization by using per-device sx(9) lock.
- Stop synchronization from pre-sync hook.
- Fix possible race between synchronization and regular requests.

Approved by:	re (mux)
2006-03-20 15:50:02 +00:00
pjd
c2dead3970 MFC: gmirror(8)
Synchronize gmirror(8) with HEAD:
- Speed up synchronization process by using configurable number of parallel
  I/O requests.
- Allow for kernel dumps to the mirror.
- Reimplement gmirror softc synchronization by using per-device sx(9) lock.
- Stop synchronization from pre-sync hook.
- Fix possible race between synchronization and regular requests.

Approved by:	re (mux)
2006-03-20 15:48:55 +00:00
pjd
84853dde8e MFC: sys/nfsclient/nfs_diskless.c 1.15
I wanted 'nolockd' here instead of 'lockd'.

Approved by:	re (mux)
2006-03-20 15:45:14 +00:00
rwatson
aa083dc18c Merge fifo_vnops.c:1.133 from HEAD to RELENG_6:
If fifo_open() is called with a negative file descriptor, return EINVAL
  rather than panicking later.  This can occur if the kernel calls
  vn_open() on a fifo, as there will be no associated file descriptor,
  and therefore the file descriptor operations cannot be modified to
  point to the fifo operation set.

  Reported by:    Martin <nakal at nurfuerspam dot de>
  PR:             94278

Approved by:    re (scottl)
2006-03-20 14:24:21 +00:00
davidxu
5ee78a5b24 MFC revision 1.258.
Approved by: re (mux)
2006-03-18 23:37:36 +00:00
davidxu
3b744ce278 MFC kern_thread.c revision 1.231
kern_exit.c   revision 1.286

    calcu fix for threaded process.

Approved by: re (mux)
2006-03-18 23:36:21 +00:00
glebius
fc9f312630 MFC 1.3:
Free private data when deleting hook.

  PR:		kern/93952
  Submitted by:	Antoine Brodin <antoine.brodin laposte.net>

Approved by:	re (mux)
2006-03-18 22:00:37 +00:00
glebius
4ff9bbbe0f MFC 1.21,1.22:
Fix several typos and trim spaces at eol.

  PR:		kern/93759
  Submitted by:	Antoine Brodin <antoine.brodin laposte.net>

Approved by:	re (mux)
2006-03-18 21:55:43 +00:00
glebius
cd16ebbcdf MFC 1.111:
Set ifp->if_baudrate according to current speed.

Approved by:	re (mux)
2006-03-18 21:48:08 +00:00
joerg
21ede35923 Add reference to PR for TOSHIBA TransMemory quirk entry.
Approved by:	re (implicitly)
2006-03-18 21:15:40 +00:00
flz
59e6f5d5cc MFC:
- Add a scsi_da.c and a umass.c quirk for Genesys 6-in-1 Card Reader.

      src/sys/dev/usb/usbdevs: rev 1.250 -> 1.251
      src/sys/cam/scsi/scsi_da.c: rev 1.185 -> 1.186
      src/sys/dev/usb/umass.c: rev 1.130 -> 1.131

Approved by:	re (mux)
2006-03-18 20:30:26 +00:00
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
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
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
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