]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
18 years agoMFC: if no device-name, look at subsystem
imp [Thu, 6 Oct 2005 23:12:05 +0000 (23:12 +0000)]
MFC: if no device-name, look at subsystem

Approved by: re@ (scottl)

18 years agoMFC: Minor fixes and add amd64 support:
jkim [Thu, 6 Oct 2005 20:43:44 +0000 (20:43 +0000)]
MFC: Minor fixes and add amd64 support:
- Fix SMBIOS entry point structure.
- Add structure length sanity check.
- Fix revision number output.

Approved by: re (kensmith)

18 years agoMFC: if_bridge.c r1.23
thompsa [Thu, 6 Oct 2005 20:43:24 +0000 (20:43 +0000)]
MFC: if_bridge.c r1.23

> Do not packet filter in the bridge_start() routine, locally generated packets
> are already filtered by the higher layers.

Approved by: re (kensmith)

18 years agoMFC: Don't save and restore the ELCR across suspend and resume for a
jhb [Thu, 6 Oct 2005 20:21:03 +0000 (20:21 +0000)]
MFC: Don't save and restore the ELCR across suspend and resume for a
particular Intel chipset.

Approved by: re (scottl)

18 years agoMFC: Minor fixups:
jhb [Thu, 6 Oct 2005 20:20:12 +0000 (20:20 +0000)]
MFC: Minor fixups:
- Use if_printf() and device_printf().
- Don't zero the softc.
- Cleanup error handling in attach().
- Don't double init the callout handle.

Approved by: re (scottl)

18 years agoMFC: Pin curthread longer during an interrupt so that we don't have to
jhb [Thu, 6 Oct 2005 20:18:20 +0000 (20:18 +0000)]
MFC: Pin curthread longer during an interrupt so that we don't have to
ignore preemptions caused by fast interrupt handlers.

Approved by: re (scottl)

18 years agoMFC: Fixup locking in rl(4) and re(4).
jhb [Thu, 6 Oct 2005 20:17:17 +0000 (20:17 +0000)]
MFC: Fixup locking in rl(4) and re(4).

Approved by: re (scottl)

18 years agoMFC: Consolidate common code for assigning interrupts to PCI devices and
jhb [Thu, 6 Oct 2005 20:05:04 +0000 (20:05 +0000)]
MFC: Consolidate common code for assigning interrupts to PCI devices and
add a sledgehammer tunable to override PCI interrupt routing for any PCI
device.

Approved by: re (scottl)

18 years agoMFC 1.280 (by des):
delphij [Thu, 6 Oct 2005 19:23:02 +0000 (19:23 +0000)]
MFC 1.280 (by des):

| Two minor optimizations of fdalloc():
|
|  - if minfd < fd_freefile (as is most often the case, since minfd is
|    usually 0), set it to fd_freefile.
|
|  - remove a call to fd_first_free() which duplicates work already done
|    by fdused().
|
| This change results in a small but measurable speedup for processes
| with large numbers (several thousands) of open files.
|
| PR:             kern/85176
| Submitted by:   Divacky Roman <xdivac02@stud.fit.vutbr.cz>
|
| Revision  Changes    Path
| 1.280     +3 -1      src/sys/kern/kern_descrip.c

Approved by: re

18 years agoMFC (by alc):
delphij [Thu, 6 Oct 2005 19:01:42 +0000 (19:01 +0000)]
MFC (by alc):

| Handle vm_map_wire()'s failure.
|
| Revision  Changes    Path
| 1.89      +5 -1      src/sys/kern/link_elf_obj.c

Approved by: re (scottl)

18 years agoMFC (by alc):
delphij [Thu, 6 Oct 2005 19:00:39 +0000 (19:00 +0000)]
MFC (by alc):

| Correctly handle vm_map_wire()'s failure.  (See also revisions 1.81 and
| 1.82.)
|
| Reviewed by:    tegge
|
| Revision  Changes    Path
| 1.84      +5 -1      src/sys/kern/link_elf.c

Approved by: re (scottl)

18 years agoMFC (by alc):
delphij [Thu, 6 Oct 2005 18:58:59 +0000 (18:58 +0000)]
MFC (by alc):

| Eliminate an unneeded reference on a vm object.  If, in fact, the nearby
| vm_map_find() fails, then the excess reference causes the vm object to be
| leaked.
|
| Reviewed by:    tegge
|
| Revision  Changes    Path
| 1.83      +0 -2      src/sys/kern/link_elf.c
| 1.88      +0 -2      src/sys/kern/link_elf_obj.c

Approved by: re (scottl)

18 years agoMFC 1.82:
delphij [Thu, 6 Oct 2005 18:57:13 +0000 (18:57 +0000)]
MFC 1.82:

| Revert the previous change for two reasons: (1) If vm_map_find() succeeds
| but vm_map_wire() fails, then a vm object, vm map entries, and kernel_map
| free space is leaked and (2) unwiring is handled automatically by
| vm_map_remove().
|
| Suggested by:   tegge
|
| Revision  Changes    Path
| 1.82      +10 -17    src/sys/kern/link_elf.c

Approved by: re (scottl)

18 years agoForced commit to note that the previous commit was to:
delphij [Thu, 6 Oct 2005 18:52:26 +0000 (18:52 +0000)]
Forced commit to note that the previous commit was to:

MFC: Hook up the hptmv driver for amd64.

| Revision  Changes    Path
| 1.442     +1 -0      src/sys/amd64/conf/GENERIC
| 1.42      +1 -1      src/sys/amd64/conf/NOTES
| 1.76      +10 -0     src/sys/conf/files.amd64
| 1.454     +1 -0      src/sys/modules/Makefile

Approved by:    re (scottl, implicitly)

18 years agoMFC Import of the new version of the HPTMV driver from Highpoint.
delphij [Thu, 6 Oct 2005 18:47:58 +0000 (18:47 +0000)]
MFC Import of the new version of the HPTMV driver from Highpoint.
The major change here is the support for amd64, as well as possible
support for PAE.  Many thanks to Highpoint for continuing to support
FreeBSD.

Obtained from:  Steve Chang @ Highpoint

Merged revisions:

| 1.3      dev/hptmv/access601.h
| 1.1      dev/hptmv/amd64-elf.raid.o.uu
| 1.3      dev/hptmv/array.h
| 1.3      dev/hptmv/atapi.h
| 1.3      dev/hptmv/command.h
| 1.9+1.10 dev/hptmv/entry.c
| 1.4      dev/hptmv/global.h
| 1.5      dev/hptmv/gui_lib.c
| 1.3      dev/hptmv/hptintf.h
| 1.6      dev/hptmv/hptproc.c
| 1.5      dev/hptmv/i386-elf.raid.o.uu
| 1.5      dev/hptmv/ioctl.c
| 1.3      dev/hptmv/mv.c
| 1.4      dev/hptmv/mvOs.h
| 1.3      dev/hptmv/mvSata.h
| 1.4      dev/hptmv/mvStorageDev.h
| 1.5      dev/hptmv/osbsd.h
| 1.3      dev/hptmv/raid5n.h
| 1.3      dev/hptmv/readme.txt
| 1.3      dev/hptmv/vdevice.h
| 1.4      modules/hptmv/Makefile

Approved by: re (scottl)

18 years agoMFC 1.244 (by kbyanc)
delphij [Thu, 6 Oct 2005 18:31:38 +0000 (18:31 +0000)]
MFC 1.244 (by kbyanc)

| Make getsockopt(..., SOL_SOCKET, SO_ACCEPTCONN, ...) work per IEEE Std
| 1003.1 (POSIX).
|
| Revision  Changes    Path
| 1.244     +1 -0      src/sys/kern/uipc_socket.c

Approved by: re (scottl)

18 years agoMFC 1.12 (by netchild)
delphij [Thu, 6 Oct 2005 18:29:30 +0000 (18:29 +0000)]
MFC 1.12 (by netchild)

| The resource_xxx routines in subr_hints.c are called before and after the
| kenv environment in kern_environment.c switches to dynamic kenv. The prior
| call sets the static variable hintp to the static hints in subr_hints.c
| (hintmode==0).
|
| However, changes to the environment are not detected by the resource_xxx
| lookups after the change to dynamic kernel environment, so the lookup
| routines only report the old stuff of hintmode==0, even after the change to
| the dynamic kenv. This causes kenv users to see a different environment than
| the kernel routines.
|
| This is a problem in the mixer.c code that looks up initial mixer volume
| settings from the hints: If the hints are dynamic and not from the
| device.hints file, mixer.c doesn't see them, but kenv does.
|
| The patch from the PR (modified to comply to the style of the function)
| solves this.
|
| PR:             83686
| Submitted by:   Harry Coin <harrycoin@qconline.com>

Approved by: re (scottl)

18 years agoMFC 1.154 (by rodrigc)
delphij [Thu, 6 Oct 2005 18:27:27 +0000 (18:27 +0000)]
MFC 1.154 (by rodrigc)

|  In ext2_mountfs(), check that the superblock size, SBSIZE,
|  is aligned with the sectorsize value returned by GEOM, before
|  doing a bread() of the superblock.
|  This eliminates a panic when trying the following on an empty CD-ROM drive:
|  mount_ext2fs /dev/acd0 /mnt
|
|  Reviewed by:    phk
|
|  Revision  Changes    Path
|  1.154     +12 -0     src/sys/gnu/fs/ext2fs/ext2_vfsops.c

Approved by: re (scottl)

18 years agoComplete MFC of rev. 1.215:
delphij [Thu, 6 Oct 2005 18:24:24 +0000 (18:24 +0000)]
Complete MFC of rev. 1.215:
Fix a LOR between sched_lock and sleep queue lock.

Approved by: re (scottl)

18 years agoMFC: sbin/geom/class/mirror/gmirror.8 1.17
pjd [Thu, 6 Oct 2005 18:19:13 +0000 (18:19 +0000)]
MFC: sbin/geom/class/mirror/gmirror.8 1.17

Add a note in example as well, that last sector is used for metadata,
so it don't provoke confusions.

Noticed by: Victor Sudakov <sudakov@sibptus.tomsk.ru>
Approved by: re (scottl)

18 years agoMFC: sys/geom/eli/g_eli.h 1.4
pjd [Thu, 6 Oct 2005 18:17:29 +0000 (18:17 +0000)]
MFC: sys/geom/eli/g_eli.h 1.4

Add a __packed keyword to g_eli_metadata struct definition, so
sizeof(struct g_eli_metadata) will return the exact number of bytes needed
for storing it on the disk.
Without this change GELI was unusable on amd64 (and probably other 64-bit
archs), because sizeof(struct g_eli_metadata) was greater than 512 bytes
and geli(8) was failing on assertion.

Reported by: Michael Reifenberger <mike@Reifenberger.com>
Reminded by: delphij
Approved by: re (scottl)

18 years agoMFC: Add the simple refcount API.
jhb [Thu, 6 Oct 2005 18:13:19 +0000 (18:13 +0000)]
MFC: Add the simple refcount API.

Approved by: re (scottl)

18 years agoMFC: Add atomic_fetchadd(9) operation for types int and 32.
jhb [Thu, 6 Oct 2005 18:12:06 +0000 (18:12 +0000)]
MFC: Add atomic_fetchadd(9) operation for types int and 32.
Other small updates to atomic(9) include:
- Note that arm and ppc don't provide 64-bit atomic ops.
- Update sample code.

Approved by: re (scottl)

18 years agoMFC: 1.176
ups [Thu, 6 Oct 2005 17:53:46 +0000 (17:53 +0000)]
MFC: 1.176
Don't pretend to be thread0 when calling sync().
It confuses the lock manager since in some places thread0 is
then used for vnode locking while curthread is used for vnode unlocking.

Approved by:    re (scottl@)

18 years agoMFC: OLDCARD removal: don't build pccardd.
imp [Thu, 6 Oct 2005 16:56:45 +0000 (16:56 +0000)]
MFC: OLDCARD removal: don't build pccardd.
Approved by: re@ (scottl)

18 years agoMFC: Remove references to OLDCARD
imp [Thu, 6 Oct 2005 16:36:31 +0000 (16:36 +0000)]
MFC: Remove references to OLDCARD

Approved by: re@ (scottl)

18 years agoMFC: Remove OLDCARD. It only panics on my pc98 laptop. I'll fix cbb to attach to...
imp [Thu, 6 Oct 2005 16:34:27 +0000 (16:34 +0000)]
MFC: Remove OLDCARD.  It only panics on my pc98 laptop.  I'll fix cbb to attach to isa.

Approved by: re (scottl)

18 years agoMFC:
phk [Thu, 6 Oct 2005 15:17:41 +0000 (15:17 +0000)]
MFC:
Make sure clonelists are correctly sorted.

Approved by: re@ (scottl)

18 years agoMFC:
yar [Thu, 6 Oct 2005 15:01:56 +0000 (15:01 +0000)]
MFC:

    ifconfig.c 1.116

For the sake of consistency and easier typing,
introduce "-tunnel" as an alias for "deletetunnel".
The latter is overly long and prone to typos,  but
keep it for POLA since it costs nothing.

    ifvlan.c 1.8

Deprecate the useless argument to -vlandev.

    ifconfig.8 1.102-1.105

Document the above changes.
Logically group vlan- and tunnel-related parameters.

Approved by: re (scottl)

18 years agoMerge db_command.c:1.62 from HEAD to RELENG_6:
rwatson [Thu, 6 Oct 2005 13:15:21 +0000 (13:15 +0000)]
Merge db_command.c:1.62 from HEAD to RELENG_6:

  Add a DDB "traceall" function, which stack traces all known process
  threads.  This is quite useful if generating a debug log for post-mortem
  by another developer, in which case the person at the console may not
  know which threads are of interest.  The output of this can be quite
  long.

  Discussed with: kris

Approved by: re (scottl)

18 years agoMFC:
joel [Thu, 6 Oct 2005 10:58:16 +0000 (10:58 +0000)]
MFC:
pcm.4           1.41-1.42
snd_cmi.4       1.5
snd_csa.4       1.14
snd_emu10k1.4   1.6
snd_es137x.4    1.6
snd_sbc.4       1.15

Approved by:    re (scottl)

18 years agoMFC: if_gem.c 1.31 + 1.35, if_gem_pci.c 1.20, if_gemvar.h 1.11
marius [Wed, 5 Oct 2005 22:08:17 +0000 (22:08 +0000)]
MFC: if_gem.c 1.31 + 1.35, if_gem_pci.c 1.20, if_gemvar.h 1.11

- In gem_ioctl() move the call to ether_ioctl() to the default case of
  the switch statement in order to make this driver more like other
  Ethernet NIC drivers.
- In gem_attach() call gem_stop() in addition to gem_reset() to make
  sure the chip actually is stopped and not just reset.
- In gem_stop() also stop the gem_rint_timeout() callout in case the
  driver is compiled with GEM_RINT_TIMEOUT defined.
- Remove NOP spl*() calls and add locking (making gem(4) MPSAFE).

This MFC actually brings the RELENG_6 gem(4) in line with HEAD which
means that it additionally includes a comment update regarding the
IFF_OACTIVE -> IFF_DRV_OACTIVE rename which was part of if_gem.c 1.33
but missed in the respective MFC in 1.29.2.2.

Requested by: thompsa
Approved by: re (scottl)

18 years agoMFC: 1.21
marius [Wed, 5 Oct 2005 21:53:17 +0000 (21:53 +0000)]
MFC: 1.21

Fix an endianness issue in pnp_eisaformat().

Approved by: re (scottl)

18 years agoMFC: creator.c 1.9, fbreg.h 1.19, gfb.c 1.8, machfb.c 1.4,
marius [Wed, 5 Oct 2005 21:48:03 +0000 (21:48 +0000)]
MFC: creator.c 1.9, fbreg.h 1.19, gfb.c 1.8, machfb.c 1.4,
ofw_syscons.c 1.9, s3_pci.c 1.10, scgfbrndr.c 1.23, scmouse.c 1.40,
scvgarndr.c 1.20, scvidctl.c 1.37, syscons.c 1.439, syscons.h 1.85,
tga.c 1.8, vesa.c 1.52, vga.c 1.35

Add a font width argument to vi_load_font_t, vi_save_font_t and vi_putm_t
and do some preparations for handling 12x22 fonts (currently lots of code
implies and/or hardcodes a font width of 8 pixels). This will be required
on sparc64 which uses a default font size of 12x22 in order to add font
loading and saving support as well as to use a syscons(4)-supplied mouse
pointer image.

Approved by: re (scottl)

18 years agoMFC: (1.193) fixing WEP bustage in hostap mode.
avatar [Wed, 5 Oct 2005 13:16:29 +0000 (13:16 +0000)]
MFC: (1.193) fixing WEP bustage in hostap mode.

Approved by: re (scottl)

18 years agoMFC: (1.27) fixing WEP bustage in hostap mode.
avatar [Wed, 5 Oct 2005 13:13:46 +0000 (13:13 +0000)]
MFC: (1.27) fixing WEP bustage in hostap mode.

Approved by: re (scottl)

18 years agoMerge netisr.c:1.16 from HEAD to RELENG_6:
rwatson [Wed, 5 Oct 2005 12:32:23 +0000 (12:32 +0000)]
Merge netisr.c:1.16 from HEAD to RELENG_6:

  Rename net.isr.enable to net.isr.direct.

  No compatibility code is provided, as this will be the production name
  as of 6.0.  Previously this has been an experimental and unsupported
  feature.

  Requested by: scottl

Approved by: re (kensmith)

18 years agoMerge init_main.c:1.258, mac_vfs.c:1.110, mac_biba.c:1.89,
rwatson [Wed, 5 Oct 2005 10:31:05 +0000 (10:31 +0000)]
Merge init_main.c:1.258, mac_vfs.c:1.110, mac_biba.c:1.89,
mac_lomac.c:1.37, mac_mls.c:1.74, mac_stub.c:1.55, mac_test.c:1.62,
mac.h:1.69, mac_policy.h:1.70 from HEAD to RELENG_6:

  Remove mac_create_root_mount() and mpo_create_root_mount(), which
  provided access to the root file system before the start of the
  init process.  This was used briefly by SEBSD before it knew about
  preloading data in the loader, and using that method to gain
  access to data earlier results in fewer inconsistencies in the
  approach.  Policy modules still have access to the root file system
  creation event through the mac_create_mount() entry point.

  Removed now, and will be removed from RELENG_6, in order to gain
  third party policy dependencies on the entry point for the lifetime
  of the 6.x branch.

  Obtained from: TrustedBSD Project
  Submitted by:  Chris Vance <Christopher dot Vance at SPARTA dot com>

Approved by: re (scottl)

18 years agoMFC: (1.192) honouring ic->ic_dtim_period.
avatar [Wed, 5 Oct 2005 06:54:12 +0000 (06:54 +0000)]
MFC: (1.192) honouring ic->ic_dtim_period.

Approved by: re (scottl)

18 years agoMFC kern_proc.c - fix locking in sysctl_kern_proc()
truckman [Wed, 5 Oct 2005 05:30:24 +0000 (05:30 +0000)]
MFC kern_proc.c - fix locking in sysctl_kern_proc()

Original commit message:

  FreeBSD src repository

  Modified files:
    sys/kern             kern_proc.c
  Log:
  Always wire the sysctl output buffer in sysctl_kern_proc() before
  calling sysctl_out_proc().  -- fix from jhb

  Move the code in fill_kinfo_thread() that gathers data from struct proc
  into the new function fill_kinfo_proc_only().

  Change all callers of fill_kinfo_thread() to call both
  fill_kinfo_proc_only() and fill_kinfo() thread.  When gathering
  data from a multi-threaded process, fill_kinfo_proc_only() only needs
  to be called once.

  Grab sched_lock before accessing the process thread list or calling
  fill_kinfo_thread().

PR: kern/84684
Approved by: re (scottl)

18 years agoMFC ffs_alloc.c 1.135 - clear i_flag field in recycled inodes
truckman [Wed, 5 Oct 2005 05:24:53 +0000 (05:24 +0000)]
MFC ffs_alloc.c 1.135 - clear i_flag field in recycled inodes

Original commit message:

  FreeBSD src repository

  Modified files:
    sys/ufs/ffs          ffs_alloc.c
  Log:
  Initialize the inode i_flag field in ffs_valloc() to clean up any
  stale flag bits left over from before the inode was recycled.

  Without this change, a leftover IN_SPACECOUNTED flag could prevent
  softdep_freefile() and softdep_releasefile() from incrementing
  fs_pendinginodes.  Because handle_workitem_freefile() unconditionally
  decrements fs_pendinginodes, a negative value could be reported at
  file system unmount time with a message like:
          unmount pending error: blocks 0 files -3
  The pending block count in fs_pendingblocks could also be negative
  for similar reasons.  These errors can cause the data returned by
  statfs() to be slightly incorrect.  Some other cleanup code in
  softdep_releasefile() could also be incorrectly bypassed.

Reviewed by: tegge
Approved by: re (scottl)

18 years agoThis commit was manufactured by cvs2svn to create branch 'RELENG_6'.
cvs2svn [Wed, 5 Oct 2005 05:21:08 +0000 (05:21 +0000)]
This commit was manufactured by cvs2svn to create branch 'RELENG_6'.

18 years agoMFC 1.53
rodrigc [Wed, 5 Oct 2005 04:29:59 +0000 (04:29 +0000)]
MFC 1.53

Fix so that color changes are not lost when the video mode changes.

PR:             bin/83553
Submitted by:   Dan Lukes <dan at obluda dot cz>
Approved by: re (scottl)
Reminded by: delphij

18 years agoMFC 1.81
rodrigc [Wed, 5 Oct 2005 01:16:39 +0000 (01:16 +0000)]
MFC 1.81
Call gctl_free() to free resource allocated with gctl_get_handle().

PR: bin/84664
Submitted by: Daan Vreeken <Danovitsch at Vitsch dot net>
Approved by: re (scottl)

18 years agoMFC kern/kern_thread.c revision 1.217
davidxu [Tue, 4 Oct 2005 22:53:56 +0000 (22:53 +0000)]
MFC kern/kern_thread.c  revision 1.217
    kern/kern_kse.c     revision 1.218

Fix scheduler and sleep queue LOR.

Approved by: re (scottl)

18 years agoMFC to RELENG_6:
rse [Tue, 4 Oct 2005 17:29:00 +0000 (17:29 +0000)]
MFC to RELENG_6:

| Fix system shutdown timeout handling by again supporting longer running
| shutdown procedures (which have a duration of more than 120 seconds).
|
| We have two user-space affecting shutdown timeouts: a "soft" one in
| /etc/rc.shutdown and a "hard" one in init(8). The first one can be
| configured via /etc/rc.conf variable "rcshutdown_timeout" and defaults
| to 30 seconds. The second one was originally (in 1998) intended to be
| configured via sysctl(8) variable "kern.shutdown_timeout" and defaults
| to 120 seconds.
|
| Unfortunately, the "kern.shutdown_timeout" was declared "unused" in 1999
| (as it obviously is actually not used within the kernel itself) and
| hence was intentionally but misleadingly removed in revision 1.107 from
| init_main.c. Kernel sysctl(8) variables are certainly a wrong way to
| control user-space processes in general, but in this particular case the
| sysctl(8) variable should have remained as it supports init(8), which
| isn't passed command line flags (which in turn could have been set via
| /etc/rc.conf), etc.
|
| As there is already a similar "kern.init_path" sysctl(8) variable which
| directly affects init(8), resurrect the init(8) shutdown timeout under
| sysctl(8) variable "kern.init_shutdown_timeout". But this time document
| it as being intentionally unused within the kernel and used by init(8).
| Also document it in the manpages init(8) and rc.conf(5).
|
| Reviewed by: phk
| MFC after: 2 weeks
|
| Revision  Changes    Path
| 1.48      +7 -1      src/sbin/init/init.8
| 1.61      +1 -1      src/sbin/init/init.c
| 1.264     +16 -1     src/share/man/man5/rc.conf.5
| 1.257     +11 -0     src/sys/kern/init_main.c

Approved by: re (scottl)

18 years agoMerge fifo_vnops.c:1.132 from HEAD to RELENG_6:
rwatson [Tue, 4 Oct 2005 15:33:06 +0000 (15:33 +0000)]
Merge fifo_vnops.c:1.132 from HEAD to RELENG_6:

  Second attempt at a work-around for fifo-related socket panics during
  make -j with high levels of parallelism: acquire Giant in fifo I/O
  routines.

  Discussed with: ups

Approved by: re (scottl)

18 years agoMFC 1.28
dds [Tue, 4 Oct 2005 15:26:10 +0000 (15:26 +0000)]
MFC 1.28
Bug fix: a numeric flag specification in the substitute command would
cause the next substitute flag to be ignored.
While working at it, detect and report overflows.

Reported by: Jingsong Liu
Bugged by: Xin Li
Approved by: re (kensmith)

18 years agoMFC: Add interrupt counters for IPIs.
jhb [Tue, 4 Oct 2005 15:15:22 +0000 (15:15 +0000)]
MFC: Add interrupt counters for IPIs.

Approved by: re (scottl)

18 years agoMFC: Rename the lapic timer interrupt counter to cpuX: timer.
jhb [Tue, 4 Oct 2005 15:13:06 +0000 (15:13 +0000)]
MFC: Rename the lapic timer interrupt counter to cpuX: timer.

Approved by: re (scottl)

18 years agoMFC: 1.26-1.28
ache [Tue, 4 Oct 2005 14:33:09 +0000 (14:33 +0000)]
MFC: 1.26-1.28

Approved by: re

18 years agoMFC: 1.23
ache [Tue, 4 Oct 2005 14:31:10 +0000 (14:31 +0000)]
MFC: 1.23

Approved by: re

18 years agoMFC 1.73:
glebius [Tue, 4 Oct 2005 14:07:44 +0000 (14:07 +0000)]
MFC 1.73:

  In em_process_receive_interrupts() store and clear adapter->fmt. This
  make function reenterable. In the runtime the race is masked by
  serializing
  of em_process_receive_interrupts() either by interrupt thread, or by
  polling. The race can be triggered when polling is switched on or off.

Approved by: re (scottl)

18 years agoMFC:
phk [Tue, 4 Oct 2005 13:56:35 +0000 (13:56 +0000)]
MFC:

Add the flash device sizing subroutine.

Approved by: re@ (scottle)
Reminded by: simon@

18 years agoMFC BOOTSIG[23] removal:
peadar [Tue, 4 Oct 2005 13:13:57 +0000 (13:13 +0000)]
MFC BOOTSIG[23] removal:

    msdosfs_vfsops.c v1.146
    bootsect.h v1.13

    Remove checks for BOOTSIG[23] from FAT32 bootblocks.
    There seems to be very little documentary evidence outside this
    implementation to suggest a these checks are neccessary, and more
    than one camera-formatted flash disk fails the check, but mounts
    successfully on most other systems.

Approved by: re (scottl@)

18 years agoMFC rev 1.146 (and 1.147)
cognet [Tue, 4 Oct 2005 12:50:11 +0000 (12:50 +0000)]
MFC rev 1.146 (and 1.147)
revision 1.146
date: 2005/09/28 16:05:13;  author: cognet;  state: Exp;  lines: +7 -1
Use SO_REUSEADDR on the socket, to make the use of syslogd in jails easier.

Submitted by:   Jeremie Le Hen <jeremie le-hen org>
Approved by: re

18 years agoMFC snaplk deadlock fix
truckman [Tue, 4 Oct 2005 04:41:27 +0000 (04:41 +0000)]
MFC snaplk deadlock fix
        src/sys/kern/vfs_bio.c          1.495, 1.496
        src/sys/kern/vfs_subr.c         1.648
        src/sys/sys/buf.h               1.190, 1.191
        src/sys/sys/proc.h              1.436
        src/sys/ufs/ffs/ffs_snapshot.c  1.104, 1.105, 1.106

Original commit messages:

    Log:
    Un-staticize runningbufwakeup() and staticize updateproc.

    Add a new private thread flag to indicate that the thread should
    not sleep if runningbufspace is too large.

    Set this flag on the bufdaemon and syncer threads so that they skip
    the waitrunningbufspace() call in bufwrite() rather than than
    checking the proc pointer vs. the known proc pointers for these two
    threads.  A way of preventing these threads from being starved for
    I/O but still placing limits on their outstanding I/O would be
    desirable.

    Set this flag in ffs_copyonwrite() to prevent bufwrite() calls from
    blocking on the runningbufspace check while holding snaplk.  This
    prevents snaplk from being held for an arbitrarily long period of
    time if runningbufspace is high and greatly reduces the contention
    for snaplk.  The disadvantage is that ffs_copyonwrite() can start
    a large amount of I/O if there are a large number of snapshots,
    which could cause a deadlock in other parts of the code.

    Call runningbufwakeup() in ffs_copyonwrite() to decrement runningbufspace
    before attempting to grab snaplk so that I/O requests waiting on
    snaplk are not counted in runningbufspace as being in-progress.
    Increment runningbufspace again before actually launching the
    original I/O request.

    Prior to the above two changes, the system could deadlock if enough
    I/O requests were blocked by snaplk to prevent runningbufspace from
    falling below lorunningspace and one of the bawrite() calls in
    ffs_copyonwrite() blocked in waitrunningbufspace() while holding
    snaplk.

    See <http://www.holm.cc/stress/log/cons143.html>

    Revision  Changes    Path
    1.495     +3 -3      src/sys/kern/vfs_bio.c
    1.648     +2 -1      src/sys/kern/vfs_subr.c
    1.190     +1 -0      src/sys/sys/buf.h
    1.436     +1 -1      src/sys/sys/proc.h
    1.104     +16 -4     src/sys/ufs/ffs/ffs_snapshot.c

    Log:
    Un-staticize waitrunningbufspace() and call it before returning from
    ffs_copyonwrite() if any async writes were launched.

    Restore the threads previous TDP_NORUNNINGBUF state before returning
    from ffs_copyonwrite().

    Revision  Changes    Path
    1.496     +1 -1      src/sys/kern/vfs_bio.c
    1.191     +1 -0      src/sys/sys/buf.h
    1.105     +13 -1     src/sys/ufs/ffs/ffs_snapshot.c

    Log:
    Correct previous commit to fix the sense of the TDP_NORUNNINGBUF
    check in ffs_copyonwrite() that is a precondition for calling
    waitrunningbufspace().

    Pointed out by: tegge
    Pointy hat to:  truckman
    MFC after:      3 days

    Revision  Changes    Path
    1.106     +1 -1      src/sys/ufs/ffs/ffs_snapshot.c

Approved by: re (scottl)

18 years agoMFC kern_exec.c 1.276 (and 1.278)
truckman [Tue, 4 Oct 2005 04:29:08 +0000 (04:29 +0000)]
MFC kern_exec.c 1.276 (and 1.278)

Original commit messages:

  truckman    2005-10-01 08:33:57 UTC

    FreeBSD src repository

    Modified files:
      sys/kern             kern_exec.c
    Log:
    Copy new process argument list in do_execve() before grabbing PROC_LOCK
    to avoid touching pageable memory while holding a mutex.

    Simplify argument list replacement logic.

    PR:            kern/84935
    Submitted by:  "Antoine Pelisse" apelisse AT gmail.com (in a different form)
    MFC after:     3 days

    Revision  Changes    Path
    1.276     +10 -10    src/sys/kern/kern_exec.c

  truckman    2005-10-04 04:02:33 UTC

    FreeBSD src repository

    Modified files:
      sys/kern             kern_exec.c
    Log:
    Add missing word to comment.

    Revision  Changes    Path
    1.278     +1 -1      src/sys/kern/kern_exec.c

PR: kern/84935
Submitted by: "Antoine Pelisse" apelisse AT gmail.com (in a different form)
Approved by: re (scottl)

18 years agoMFC:
grog [Mon, 3 Oct 2005 23:45:01 +0000 (23:45 +0000)]
MFC:
  Initialize uninitialized variables.
  Remove one possible way of shooting yourself in the foot.

Requested by:   Dan Lukes <dan@obluda.cz>
Approved by: RE (kensmith@)

And now for the scripts which refuse the line above:

Approved by: re

18 years agoMFC revision 1.11: Fix a bug introduced in revision 1.9 which causes
cperciva [Mon, 3 Oct 2005 21:39:21 +0000 (21:39 +0000)]
MFC revision 1.11: Fix a bug introduced in revision 1.9 which causes
chkgrp to coredump on certain corrupt files.

Approved by: re (scottl)

18 years agoMFC revision 1.9:
ups [Mon, 3 Oct 2005 20:08:00 +0000 (20:08 +0000)]
MFC revision 1.9:
Fix the "fpudna: fpcurthread == curthread XXX times" problem.

Approved by: re (scottl@)

18 years agoMFC revision 1.494:
peadar [Mon, 3 Oct 2005 09:30:12 +0000 (09:30 +0000)]
MFC revision 1.494:

    Close a race in biodone(), whereby the bio_done field of the passed
    bio may have been freed and reassigned by the wakeup before being
    tested after releasing the bdonelock.

Approved by: re (scottl@)

18 years agoAdd KPnS (known problems and solutions) entries:
hrs [Sun, 2 Oct 2005 20:11:34 +0000 (20:11 +0000)]
Add KPnS (known problems and solutions) entries:

 - /dev/ttyv* not found on FreeBSD/sparc64 when
   there is no framebuffer[1].

 - KLDs do not work on FreeBSD/sparc64 with >4GB RAM[2].

 - kgdb is broken for debugging panics on FreeBSD/sparc64[2].

Thanks to: marius[1], kris[2]
Approved by: re (implicitly)

18 years agoMFC revision 1.639: Don't let the upper bits of %dr6/%dr7 get set.
cperciva [Sun, 2 Oct 2005 16:38:12 +0000 (16:38 +0000)]
MFC revision 1.639: Don't let the upper bits of %dr6/%dr7 get set.

Submitted by: Nate Eldredge
Approved by: re@ (scottl)
Security: Local denial of service

18 years agoMFC IP_DONTFRAG IP socket option.
andre [Sun, 2 Oct 2005 15:45:47 +0000 (15:45 +0000)]
MFC IP_DONTFRAG IP socket option.

Approved by: re (scottl)

18 years agoMFC rev 1.55-1.58:
joel [Sun, 2 Oct 2005 14:32:06 +0000 (14:32 +0000)]
MFC rev 1.55-1.58:
*  Document existing support for:
  -  ALI M5229
  -  ALI M5281
  -  ALI M5287
  -  ALI M5289
  -  CMD 646U2
  -  Highpoint HPT372N
  -  Intel 6300ESB
  -  Intel ICH7
  -  Nvidia nForce2 MCP
  -  Nvidia nForce3 MCP
  -  Nvidia nForce3 Pro
  -  Nvidia nForce4
  -  Promise PDC20571
  -  Promise PDC20575
  -  Promise PDC20579
  -  Promise PDC20580
  -  Promise PDC20621
  -  Promise PDC20622
  -  Promise PDC40518
  -  Promise PDC40519
  -  Promise PDC40718
  -  Promise PDC40719
  -  SIS 180
  -  SIS 181
  -  SIS 182
  -  SIS 965
  -  VIA VT6410
  -  VIA VT6420
  -  VIA VT6421

*  Add two missing dots.

*  Remove HPT366 duplicate.

Approved by: re (hrs)

18 years agoMFC: 1.46: Document that -q also affects "route change".
ru [Sun, 2 Oct 2005 13:44:05 +0000 (13:44 +0000)]
MFC: 1.46: Document that -q also affects "route change".

Approved by: re (hrs)

18 years agoMFC g_uzip.c rev. 1.5:
fjoe [Sun, 2 Oct 2005 11:22:28 +0000 (11:22 +0000)]
MFC g_uzip.c rev. 1.5:

- Fix "end_blk out of range" panic when INVARIANTS.
- Do not allow rw access.

Approved by: re (scott)

18 years agoMerge kern_lock.c:1.95 from HEAD to RELENG_6:
rwatson [Sun, 2 Oct 2005 10:08:29 +0000 (10:08 +0000)]
Merge kern_lock.c:1.95 from HEAD to RELENG_6:

  Include kdb.h so that kdb_active is declared regardless of KDB being
  included in the kernel.

Approved by: re (kensmith)

18 years agoMerge fifo_vnops.c:1.130 from HEAD to RELENG_6:
rwatson [Sun, 2 Oct 2005 10:07:21 +0000 (10:07 +0000)]
Merge fifo_vnops.c:1.130 from HEAD to RELENG_6:

  Assert v_fifoinfo is non-NULL in fifo_close() in order to catch
  non-conforming cases sooner.

  Reported by:    Peter Holm <peter at holm dot cc>

Approved by: re (scottl)

18 years agoMerge subr_pcpu.c:1.7 from HEAD to RELENG_6:
rwatson [Sun, 2 Oct 2005 10:06:49 +0000 (10:06 +0000)]
Merge subr_pcpu.c:1.7 from HEAD to RELENG_6:

  Add "show allpcpu" to DDB, which prints the current CPU id followed by
  the per-cpu data for all CPUs.  This is easier to ask users to do than
  "figure out how many CPUs you have, now run show pcpu, then run it
  once for each CPU you have".

Approved by: re (scottl)

18 years agoMerge subr_kdb.c:1.13 from HEAD to RELENG_6:
rwatson [Sun, 2 Oct 2005 10:06:15 +0000 (10:06 +0000)]
Merge subr_kdb.c:1.13 from HEAD to RELENG_6:

  If KDB_STOP_NMI is compiled into the kernel, default
  debug.kdb.stop_cpus_with_nmi to 1 rather than 0.

Approved by: re (scottl)

18 years agoMerge kern_lock.c:1.94 from HEAD to RELENG_6:
rwatson [Sun, 2 Oct 2005 09:58:54 +0000 (09:58 +0000)]
Merge kern_lock.c:1.94 from HEAD to RELENG_6:

  In lockstatus(), don't lock and unlock the interlock when testing the
  sleep lock status while kdb_active, or we risk contending with the
  mutex on another CPU, resulting in a panic when using "show
  lockedvnods" while in DDB.

  Reviewed by:    jhb
  Reported by:    kris

Approved by: re (scottl)

18 years agoMFC ffs_softdep.c 1.185
truckman [Sun, 2 Oct 2005 08:25:33 +0000 (08:25 +0000)]
MFC ffs_softdep.c 1.185

Original commit message:

  truckman    2005-09-29 21:50:26 UTC

   FreeBSD src repository

   Modified files:
     sys/ufs/ffs          ffs_softdep.c
   Log:
   After a rmdir()ed directory has been truncated, force an update of
   the directory's inode after queuing the dirrem that will decrement
   the parent directory's link count.  This will force the update of
   the parent directory's actual link to actually be scheduled.  Without
   this change the parent directory's actual link count would not be
   updated until ufs_inactive() cleared the inode of the newly removed
   directory, which might be deferred indefinitely.  ufs_inactive()
   will not be called as long as any process holds a reference to the
   removed directory, and ufs_inactive() will not clear the inode if
   the link count is non-zero, which could be the result of an earlier
   system crash.

   If a background fsck is run before the update of the parent directory's
   actual link count has been performed, or at least scheduled by
   putting the dirrem on the leaf directory's inodedep id_bufwait list,
   fsck will corrupt the file system by decrementing the parent
   directory's effective link count, which was previously correct
   because it already took the removal of the leaf directory into
   account, and setting the actual link count to the same value as the
   effective link count after the dangling, removed, leaf directory
   has been removed.  This happens because fsck acts based on the
   actual link count, which will be too high when fsck creates the
   file system snapshot that it references.

   This change has the fortunate side effect of more quickly cleaning
   up the large number dirrem structures that linger for an extended
   time after the removal of a large directory tree.  It also fixes a
   potential problem with the shutdown of the syncer thread timing out
   if the system is rebooted immediately after removing a large directory
   tree.

   Submitted by:   tegge
   MFC after:      3 days

   Revision  Changes    Path
   1.185     +2 -0      src/sys/ufs/ffs/ffs_softdep.c

Submitted by: tegge
Approved by: re (scottl)

18 years agoMFC revision 1.890:
kensmith [Sun, 2 Oct 2005 05:47:04 +0000 (05:47 +0000)]
MFC revision 1.890:
> date: 2005/09/28 12:39:00;  author: kensmith;  state: Exp;  lines: +17 -6
> Add SHA256 checksums to the release build.
>
> Requested by:           cperciva (so)
> Reviewed/improved by:   ru

Approved by: re (scottl)

18 years agoMFC bpf.c v1.159
csjp [Sat, 1 Oct 2005 18:43:16 +0000 (18:43 +0000)]
MFC bpf.c v1.159

Make stats a bit more accurate by refreshing the PID after each
descriptor operation.

Approved by: re (scottl)

18 years agoMFC:
phk [Sat, 1 Oct 2005 17:39:50 +0000 (17:39 +0000)]
MFC:
one character fix in mount option name.

Approved by: re@ (scottl)

18 years agoMFC: add product ID for Linux Ethernet/RNDIS gadget on pxa210/25x/26x.
ume [Sat, 1 Oct 2005 16:26:25 +0000 (16:26 +0000)]
MFC: add product ID for Linux Ethernet/RNDIS gadget on pxa210/25x/26x.

sys/dev/usb/if_cdce.c: 1.11
sys/dev/usb/usbdevs: 1.234

Approved by: re (scottl)

18 years agoMFC: IP_MINTTL socket option.
andre [Sat, 1 Oct 2005 15:56:44 +0000 (15:56 +0000)]
MFC: IP_MINTTL socket option.

Approved by: re (scottl)

18 years agoMFC r1.11-1.12:
jkoshy [Sat, 1 Oct 2005 15:52:13 +0000 (15:52 +0000)]
MFC r1.11-1.12:
  - Correct a typo.
  - Note the requirement for 'device apic' on i386 systems.
  - Consistently use 'x86' when referring to behaviour common to the
    i386 and amd64.

Approved by: re (hrs)

18 years agoMFC r1.5:
jkoshy [Sat, 1 Oct 2005 15:48:02 +0000 (15:48 +0000)]
MFC r1.5:
  The 'intr_bufferfull' driver statistic actually counts the number
  of times sampling was stopped due to a space shortage; change its
  description in the output of `pmcstat -s` to match reality.

Approved by: re (scottl)

18 years agoMFC: don't take unprotected keys into account for authentication.
des [Fri, 30 Sep 2005 14:02:29 +0000 (14:02 +0000)]
MFC: don't take unprotected keys into account for authentication.

PR: bin/81231
Approved by: re (kensmith)

18 years agoMFC: Call gctl_free() to free resource allocated with gctl_get_handle().
nyan [Fri, 30 Sep 2005 13:09:01 +0000 (13:09 +0000)]
MFC: Call gctl_free() to free resource allocated with gctl_get_handle().

Approved by: re (kensmith)

18 years agoMFC sys/fs/hpfs/hpfs_vfsops.c:1.54-1.56,
delphij [Fri, 30 Sep 2005 06:26:42 +0000 (06:26 +0000)]
MFC sys/fs/hpfs/hpfs_vfsops.c:1.54-1.56,
    sys/fs/msdosfs/msdosfs_vfsops.c:1.145,
    sys/fs/ntfs/ntfs_vfsops.c:1.79-1.80,
    sys/fs/udf/udf_vfsops.c:1.34-1.35,
    sys/gnu/fs/ext2fs/ext2_vfsops.c:1.152-1.153,
    sys/gnu/fs/reiserfs/reiserfs_vfsops.c:1.2-1.3 (by ssouhlal):

*_mountfs() (if the filesystem mounts from a device) needs devvp to be
locked, so lock it.

Approved by: re (scottl)

18 years agoMFC 1.293 (by ssouhlal):
delphij [Fri, 30 Sep 2005 06:14:44 +0000 (06:14 +0000)]
MFC 1.293 (by ssouhlal):

ffs_mountfs() needs devvp to be locked, so lock it.

Approved by: re (scottl)

18 years agoMFC 1.197 (by ssouhlal):
delphij [Fri, 30 Sep 2005 06:10:59 +0000 (06:10 +0000)]
MFC 1.197 (by ssouhlal):

Don't unbusy the devfs mount in vfs_mountroot_try() as it gets accessed
and unbusied in devfs_fixup(), which assumes that the devfs mount is
still locked.

Approved by: re (scottl)

18 years agoMFC src/contrib/pf/pflogd/pflogd.c rev 1.9
csjp [Thu, 29 Sep 2005 23:50:29 +0000 (23:50 +0000)]
MFC src/contrib/pf/pflogd/pflogd.c rev 1.9

Implement BIOCLOCK

Approved by: re (kensmith)

18 years agoMFC privilege separation enhancements for bpf(4)
csjp [Thu, 29 Sep 2005 23:48:04 +0000 (23:48 +0000)]
MFC privilege separation enhancements for bpf(4)

Introduce BIOCLOCK and BIOCSETWF

Revision(s)
    1.158     +81 -23    src/sys/net/bpf.c
    1.40      +2 -0      src/sys/net/bpf.h
    1.31      +4 -1      src/sys/net/bpfdesc.h

Approved by: re (scottl)

18 years agoMerge if.c:1.247, in.c:1.88, in.h:1.92 from HEAD to RELENG_6:
rwatson [Thu, 29 Sep 2005 20:57:07 +0000 (20:57 +0000)]
Merge if.c:1.247, in.c:1.88, in.h:1.92 from HEAD to RELENG_6:

  Take a first cut at cleaning up ifnet removal and multicast socket
  panics, which occur when stale ifnet pointers are left in struct
  moptions hung off of inpcbs:

  - Add in_ifdetach(), which matches in6_ifdetach(), and allows the
    protocol to perform early tear-down on the interface early in
    if_detach().

  - Annotate that if_detach() needs careful consideration.

  - Remove calls to in_pcbpurgeif0() in the handling of SIOCDIFADDR --
    this is not the place to detect interface removal!  This also
    removes what is basically a nasty (and now unnecessary) hack.

  - Invoke in_pcbpurgeif0() from in_ifdetach(), in both raw and UDP
    IPv4 sockets.

  It is now possible to run the msocket_ifnet_remove regression test
  using HEAD without panicking.

  Reported by: Gavin Atkinson <gavin dot atkinson at ury dot york dot ac dot uk>

Approved by: re (scottl)

18 years agoMFC: Use correct VFS locking in kern_alternate_path().
jhb [Thu, 29 Sep 2005 18:53:10 +0000 (18:53 +0000)]
MFC: Use correct VFS locking in kern_alternate_path().

Approved by: re (scottl)

18 years agoMFC various fixes to sis(4):
jhb [Thu, 29 Sep 2005 18:52:21 +0000 (18:52 +0000)]
MFC various fixes to sis(4):
- Remove sis_unit and use device_printf() and if_printf() instead.
- Use callout_init_mtx() for the callout.
- Remove spls.
- Fix locking for ifmedia to happen in the ifmedia handlers rather than in
  sis_ioctl().

Approved by: re (scottl)

18 years agoMFC: Add the spin lock used by the binary nvidia-driver to the static lock
jhb [Thu, 29 Sep 2005 18:47:31 +0000 (18:47 +0000)]
MFC: Add the spin lock used by the binary nvidia-driver to the static lock
order list.

Approved by: re (scottl)

18 years agoMerge subr_prof.c:1.119, 1.120, 1.121, nfs_socket.c:1.130,
rwatson [Thu, 29 Sep 2005 18:40:36 +0000 (18:40 +0000)]
Merge subr_prof.c:1.119, 1.120, 1.121, nfs_socket.c:1.130,
rpcclnt.c:1.14 from HEAD to RELENG_6:

Acquire Giant in uprintf() and tprintf() due to the non-MPSAFEty of
the tty code invoked from these functions.  In two cases, during
timeout handling in NFS-related RPC client code, acquire Giant in
the caller before other mutexes the caller might hold, in order to
avoid lock order reversals with Giant (a recursive acquire is not
a reversal as it won't ever wait).

Correct age-old comments about uprintf()/tprintf() sleeping: they
will never sleep.

Much useful feedback from: bde
Approved by: re (scottl)

18 years agoMFC 1.62:
glebius [Thu, 29 Sep 2005 13:19:10 +0000 (13:19 +0000)]
MFC 1.62:
  - Print space character in show_stat(). Remove a lot of priuntf(" ").
  - Utilize show_stat() in sidewaysintpr() loop. This makes periodic
    statistics to honor -h flag.

Approved by: re (kensmith)

18 years agoMFC: rev. 1.6
brueffer [Wed, 28 Sep 2005 16:51:27 +0000 (16:51 +0000)]
MFC: rev. 1.6

Fix typo.

Approved by: re (hrs)

18 years agoMFC: 1.57: Respect IFF_PROMISC.
ru [Wed, 28 Sep 2005 16:46:17 +0000 (16:46 +0000)]
MFC: 1.57: Respect IFF_PROMISC.

Approved by: re (scottl)

18 years agoMFC v1.43: Move hme_stop() BEFORE ether_ifdetach() and if_free() to
kensmith [Wed, 28 Sep 2005 14:10:00 +0000 (14:10 +0000)]
MFC v1.43: Move hme_stop() BEFORE ether_ifdetach() and if_free() to
prevent a memory-referenced-after-free panic if the hme interface
fails to attach.

Patch obtained from: marius
Suggested same thing: brooks
Approved by: re (scottl)

18 years agoMFC v1.30: Update for RELENG_6.
kensmith [Wed, 28 Sep 2005 14:00:13 +0000 (14:00 +0000)]
MFC v1.30: Update for RELENG_6.

Approved by: re (scottl)

18 years agoMerge fifo_vnops.c:1.129 from HEAD to RELENG_6:
rwatson [Wed, 28 Sep 2005 06:55:02 +0000 (06:55 +0000)]
Merge fifo_vnops.c:1.129 from HEAD to RELENG_6:

  Lock the read socket receive buffer when frobbing the sb_state flag on
  that socket during open, not the write socket receive buffer.

  Spotted by: ups

Approved by: re (scottl)

18 years agoMerge uipc_usrreq.c:1.156 from HEAD to RELENG_6:
rwatson [Wed, 28 Sep 2005 06:52:10 +0000 (06:52 +0000)]
Merge uipc_usrreq.c:1.156 from HEAD to RELENG_6:

  Canonicalize the UNIX domain socket copyright layout: original holders
  before more recent holders.

Approved by: re (scottl)