]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
16 years agoMFC: A new configuration variable, daily_status_mail_rejects_shorten, allows
dds [Sun, 27 Jan 2008 08:07:15 +0000 (08:07 +0000)]
MFC: A new configuration variable, daily_status_mail_rejects_shorten, allows
the rejected mail reports to tally the rejects per blacklist without
providing details about individual sender hosts.  The default configuration
keeps the reports in their original form.

16 years agoMFC rev. 1.457:
kib [Sun, 27 Jan 2008 07:52:23 +0000 (07:52 +0000)]
MFC rev. 1.457:
Do not dereference NULL scp in the case the screen is not opened.
Instead, return ENXIO to the ioctl caller.

16 years agoMFC rev. 1.157:
kib [Sun, 27 Jan 2008 07:51:43 +0000 (07:51 +0000)]
MFC rev. 1.157:
In rev. 1.156, the convertion of the minor number to the unit number
resulted in the argument to the make_dev() to be a unit number.

Correct this by supplying a minor number to make_dev(), and using
the unit number for the calculation of the slave tty name.

16 years agoMFC revisions 1.47-1.50.
dds [Sun, 27 Jan 2008 07:38:39 +0000 (07:38 +0000)]
MFC revisions 1.47-1.50.

- Follow POSIX specification when moving a directory to an existing
  directory across devices.

- Improve consistency and remove some style bugs of earlier versions.

This version passes all tests of tools/regression/bin/mv/regress.sh 1.6

PR: bin/118367

16 years agoMFC rev. 1.88
mav [Sun, 27 Jan 2008 02:47:32 +0000 (02:47 +0000)]
MFC rev. 1.88
Add support for optional "AC-Name\Service-Name" syntax at NGM_PPPOE_CONNECT
argument. It allows ppp, mpd or any other node consumer to request
connection to specified access concentrator.

Proposed by: Alexander A. Burylov <burylov@mail.ru>

16 years agoMFC rev 1.85-1.86
mav [Sun, 27 Jan 2008 02:45:41 +0000 (02:45 +0000)]
MFC rev 1.85-1.86
Remove ng_pppoe_sendpacket() function to simplify code as it is called
as much times as it has cases inside of it.
Split ng_pppoe_rcvdata() function into three hook-specific ones
to simplify code and reduce stack usage.

16 years agoMFC rev. 1.25
mav [Sun, 27 Jan 2008 02:36:08 +0000 (02:36 +0000)]
MFC rev. 1.25
Remove some prehistoric never used defines.

16 years agoMFC: 1.4
marius [Sun, 27 Jan 2008 01:00:28 +0000 (01:00 +0000)]
MFC: 1.4

- Remove MIIF_NOISOLATE.
- Fix spelling in a comment.

16 years agoMFC revision 1.7
delphij [Sat, 26 Jan 2008 21:59:10 +0000 (21:59 +0000)]
MFC revision 1.7
date: 2008/01/12 00:11:26;  author: delphij;  state: Exp;  lines: +4 -4
 - Handle the case where interface from "middle" is missing by
   more carefully inspecting the return value from sysctl(3). [1]
 - Use calloc instead of malloc+memset of zero.

Submitted by: Alexander Chernikov <admin su29 net> [1]
PR: bin/119581
MFC after: 2 weeks

16 years agoMFC _ldtoa.c,v 1.5
das [Sat, 26 Jan 2008 08:21:32 +0000 (08:21 +0000)]
MFC _ldtoa.c,v 1.5

    Fix handling of subnormals on i386/ia64/amd64.

    PR: 85080

16 years agoMFC qsort.c,v 1.14-1.15, heapsort.c,v 1.6
das [Sat, 26 Jan 2008 08:21:13 +0000 (08:21 +0000)]
MFC qsort.c,v 1.14-1.15, heapsort.c,v 1.6

    Use size_t to avoid overflow when sorting arrays larger than 2 GB.

    PR: 111085

16 years agoMFC growfs.c,v 1.26
das [Sat, 26 Jan 2008 08:21:12 +0000 (08:21 +0000)]
MFC growfs.c,v 1.26

    Fix an int overflow on very large file systems.

    PR: bin/113399
    Submitted by: Staffan Ulfberg <staffan@ulfberg.se>

16 years agoMFC: rev. 1.110
mtm [Sat, 26 Jan 2008 06:49:27 +0000 (06:49 +0000)]
MFC: rev. 1.110
----------------------------------------------------------------------------
Instead of manually freeing the packet options structure (and not even doing
a good job of it) in the copypktopts() function, just call ip6_clearpktopts()
directly. Otherwise, the callers of this function would end up freeing the
memory twice.

Reviewed by: jinmei
PR:          kern/116360
----------------------------------------------------------------------------

16 years agoMFC rev. 1.52:
kib [Fri, 25 Jan 2008 10:12:33 +0000 (10:12 +0000)]
MFC rev. 1.52:
udf_vget() shall vgone() the vnode when the file_entry cannot be allocated
or read from the volume. Otherwise, half-constructed vnode could be found
later and cause panic when accessed.

PR: 118322

16 years agoMFC: 1.430
mnag [Fri, 25 Jan 2008 02:00:24 +0000 (02:00 +0000)]
MFC: 1.430

  - Add new NTP servers provided by NIC.br (http://www.ntp.br)
  - Remove nonfunctional servers

  PR:             119884
  Approved by:    simon

16 years ago- Add geom_virstor to the module build.
lulf [Thu, 24 Jan 2008 20:23:07 +0000 (20:23 +0000)]
- Add geom_virstor to the module build.

PR: kern/119902
Submitted by: Yoshihiro Ota <ota -at- j.email.ne.jp>
Approved by: re (kensmith), pjd (mentor)

16 years agoMFC: Add support for booting from GPT-labeled disks from the BIOS. This
jhb [Thu, 24 Jan 2008 19:42:17 +0000 (19:42 +0000)]
MFC: Add support for booting from GPT-labeled disks from the BIOS.  This
includes /boot/pmbr, /boot/gptboot, and 'gpt boot'.

16 years agoMFC: 1.95: Weed out a warning argument that isn't applicable to C++ code.
ru [Thu, 24 Jan 2008 13:33:00 +0000 (13:33 +0000)]
MFC: 1.95: Weed out a warning argument that isn't applicable to C++ code.

16 years agoMFC: (1.101) replace fclose() with comment explaining why it's incorrect.
des [Thu, 24 Jan 2008 08:07:52 +0000 (08:07 +0000)]
MFC: (1.101) replace fclose() with comment explaining why it's incorrect.

Approved by: re (kensmith)

16 years agoMFC: 1.79: Fix printing of the number of syncache entries added.
ru [Thu, 24 Jan 2008 07:50:12 +0000 (07:50 +0000)]
MFC: 1.79: Fix printing of the number of syncache entries added.

16 years agoMFC: rev. 1.65
brueffer [Thu, 24 Jan 2008 05:48:55 +0000 (05:48 +0000)]
MFC: rev. 1.65

Document the 'maintainer' target.

16 years agoMerge tcp_usrreq.c:1.167 from HEAD to RELENG_7:
rwatson [Wed, 23 Jan 2008 23:40:22 +0000 (23:40 +0000)]
Merge tcp_usrreq.c:1.167 from HEAD to RELENG_7:

  tcp_usrreq.c:1.313 removed tcbinfo locking from tcp_usr_accept(), which
  while in principle a good idea, opened us up to a race inherrent to
  the syncache's direct insertion of incoming TCP connections into the
  "completed connection" listen queue, as it transpires that the socket
  is inserted before the inpcb is fully filled in by syncache_expand().
  The bug manifested with the occasional returning of 0.0.0.0:0 in the
  address returned by the accept() system call, which occurred if accept
  managed to execute tcp_usr_accept() before syncache_expand() had copied
  the endpoint addresses into inpcb connection state.

  Re-add tcbinfo locking around the address copyout, which has the effect
  of delaying the copy until syncache_expand() has finished running, as
  it is run while the tcbinfo lock is held.  This is undesirable in that
  it increases contention on tcbinfo further, but a more significant
  change will be required to how the syncache inserts new sockets in
  order to fix this and keep more granular locking here.  In particular,
  either more state needs to be passed into sonewconn() so that
  pru_attach() can fill in the fields *before* the socket is inserted, or
  the socket needs to be inserted in the incomplete connection queue
  until it is actually ready to be used.

  Reported by:    glebius (and kris)
  Tested by:      glebius

Approved: re (kensmith)

16 years agoMFC:
kensmith [Wed, 23 Jan 2008 20:19:18 +0000 (20:19 +0000)]
MFC:
Add fsck_4.2bsd and fsck_ufs as hard links to fsck_ffs in /stand on
the MFS image so that (for example) "fsck /dev/ad0s1a" will work.
Without this you needed (for example) "fsck -t ffs /dev/ad0s1a" (or
needed to run fsck_ffs instead of fsck).

Versions being MFCed:

        1.62    src/release/amd64/boot_crunch.conf
        1.62    src/release/i386/boot_crunch.conf
        1.12    src/release/ia64/boot_crunch.conf
        1.63    src/release/pc98/boot_crunch.conf
        1.5     src/release/powerpc/boot_crunch.conf
        1.9     src/release/sparc64/boot_crunch.conf
        1.2     src/release/sun4v/boot_crunch.conf

16 years agoMFC v1.12:
kensmith [Wed, 23 Jan 2008 20:05:22 +0000 (20:05 +0000)]
MFC v1.12:
Update EDITOR and PAGER environment variables so they are correct for
the CDROM fixit environment.

Noticed by:     gallatin

16 years agoMFC: Don't cache the new-bus name of a PCI device in the PCI conf
jhb [Wed, 23 Jan 2008 18:05:34 +0000 (18:05 +0000)]
MFC: Don't cache the new-bus name of a PCI device in the PCI conf
structure.

16 years agoMFC: Fix some minor issues such as using read/modify/write for updating
jhb [Wed, 23 Jan 2008 18:03:15 +0000 (18:03 +0000)]
MFC: Fix some minor issues such as using read/modify/write for updating
the configuration register and add a header file to hold HPET register
constants.

16 years agoMFC: Update openpty(3) manpage for the recent pty fixes and remove some
jhb [Wed, 23 Jan 2008 17:59:27 +0000 (17:59 +0000)]
MFC: Update openpty(3) manpage for the recent pty fixes and remove some
now-unused macros from grantpt.c.

16 years agoMerge revisions 1.1 and 1.2 of the coda.4 man page from HEAD to RELENG_7:
rwatson [Wed, 23 Jan 2008 12:16:00 +0000 (12:16 +0000)]
Merge revisions 1.1 and 1.2 of the coda.4 man page from HEAD to RELENG_7:

  Add a rather basic man page for the coda kernel module.

  Small fixes.

Approved by: re (kensmith)

16 years agoMerge uipc_usrreq.c:1.214 from HEAD to RELENG_7:
rwatson [Wed, 23 Jan 2008 12:07:17 +0000 (12:07 +0000)]
Merge uipc_usrreq.c:1.214 from HEAD to RELENG_7:

  Move unlock of global UNIX domain socket lock slightly lower in
  unp_connect(): it is expected to return with the lock held, and two
  possible error paths otherwise returned with it unlocked.

  The fix committed here is slightly different from the patch in the
  PR, but along an alternative line suggested in the PR.

  PR:             119778
  Submitted by:   James Juran <james dot juran at baesystems dot com>

Approved by: re (gnn)

16 years agoMFC rev 1.71
mav [Wed, 23 Jan 2008 11:50:35 +0000 (11:50 +0000)]
MFC rev 1.71
Fix bundle xmit octets stats for packet-split operation mode.

16 years agoThis commit was manufactured by cvs2svn to create branch 'RELENG_7'.
cvs2svn [Wed, 23 Jan 2008 05:43:27 +0000 (05:43 +0000)]
This commit was manufactured by cvs2svn to create branch 'RELENG_7'.

16 years agoMFC: 1.26
jkim [Tue, 22 Jan 2008 17:53:40 +0000 (17:53 +0000)]
MFC: 1.26

Check battery presence first before trying to get battery information.

16 years agoThis commit was manufactured by cvs2svn to create branch 'RELENG_7'.
cvs2svn [Tue, 22 Jan 2008 07:40:22 +0000 (07:40 +0000)]
This commit was manufactured by cvs2svn to create branch 'RELENG_7'.

16 years agoMerge a variety of Coda fixes from HEAD to RELENG_7:
rwatson [Tue, 22 Jan 2008 00:32:53 +0000 (00:32 +0000)]
Merge a variety of Coda fixes from HEAD to RELENG_7:

coda_vnops.c:1.79:

  Borrow the VM object associated with an underlying cache vnode with the
  Coda vnode derived from it, in the style of nullfs.  This allows files
  in the Coda file system to be memory-mapped, such as with execve(2) or
  mmap(2).

  Reported by:    Rune <u+openafsdev-sr55 at chalmers dot se>

coda_vnops.c:1.80:

  Lock the new directory vnode returned by coda_mkdir(), as this is required
  by FreeBSD's vnode locking protocol.

coda_vnops.c:1.81:

  Use VOP_NULL rather than VOP_PANIC for Coda's vop_print routine, so as
  to avoid panicking in DDB show lockedvnods.

cnode.h:1.22, coda_namecache.h:1.12, coda_psdev.c:1.40, coda_vfsops.c:1.70:

  Don't declare functions as extern.

  Move all extern variable definitions to associated .h files, move some
  extern variable definitions between include files to place them more
  appropriately.

coda_vnops.c:1.82:

  Don't acquire an additional vnode reference to a vnode when it is opened
  and then release it when it is closed: we rely on the caller to keep the
  vnode around with a valid reference.  This avoids vrele() destroying the
  vnode vop_close() is being called from during a call to vop_close(), and
  a crash due to lockmgr recursing the vnode lock when a Coda unmount
  occurs.

coda_vfsops.c:1.71:

  Zero mi_rotovp and coda_ctlvp immediately after calling vrele() on the
  vnodes during coda_unmount() in order to detect errant use of them
  after the vnode references may no longer be valid.

  No need to clear the VV_ROOT flag on mi_rootvp flag (especially after
  the vnode reference is no longer valid) as this isn't done on other
  file systems.

coda_vfsops.c:

  Rework coda_statfs(): no longer need to zero the statfs structure or
  fill out all fields, just fill out the ones the file system knows
  about.  Among other things, this causes the outpuf of "mount" and
  "df" to make quite a bit more sense as /dev/cfs0 is specified as the
  mountfrom name.

coda_vnops.c:1.83:

  Improve default vnode operation handling for Coda:

  - Don't specify vnode operations for mknod, lease, and advlock--let them
    fall through to vop_default.

  - Implement vop_default with &default_vnodeops, rather than with
    VOP_PANIC, so that unimplemented vnode operations are handled in more
    sensible ways than panicking, such as EOPNOTSUPP on ACL queries
    generated by bsdtar, or mknod.

coda_namecache.h:1.13:

  Remove unused oldhash definition from Coda namecache.

coda_vnops.c:1.84:

  Replace references to VOP_LOCK() w/o LK_RETRY to vn_lock() with LK_RETRY,
  avoiding extra error handling, or in some cases, missing error handling.

  Discussed with: kib

coda_vnops.c:1.85:

  Put "coda_rdwr: Internally Opening" printf generated by in-kernel writes
  to files, such as ktrace output, under CODA_VERBOSE.  Otherwise, each
  such call to VOP_WRITE() results in a kernel printf.

  Obtained from:  NetBSD

16 years agoMFC: rev. 1.72
brueffer [Mon, 21 Jan 2008 18:50:17 +0000 (18:50 +0000)]
MFC: rev. 1.72

Remove remnants of old *_FORTRAN build flags.

Approved by: rwatson (mentor)

16 years agoMFC: rev. 1.592
brueffer [Mon, 21 Jan 2008 18:49:04 +0000 (18:49 +0000)]
MFC: rev. 1.592

Remove WITHOUT_FORTRAN from the XMAKE target, it doesn't exist anymore.

Approved by: rwatson (mentor)

16 years agoMFC: rev. 1.12
brueffer [Mon, 21 Jan 2008 18:47:37 +0000 (18:47 +0000)]
MFC: rev. 1.12

Remove files conditional on the obsolete MK_FORTRAN knob.  They are already
listed in ObsoleteFiles.inc anyway.

Approved by: rwatson (mentor)

16 years agoMFC: 1.201
jkim [Mon, 21 Jan 2008 17:17:00 +0000 (17:17 +0000)]
MFC: 1.201

Fix mbuf pool watermark configuration.

16 years agoFinal part of the OpenPAM MFC which CVS botched.
des [Mon, 21 Jan 2008 16:12:05 +0000 (16:12 +0000)]
Final part of the OpenPAM MFC which CVS botched.

16 years agoAdd copyrights.
ru [Mon, 21 Jan 2008 13:26:33 +0000 (13:26 +0000)]
Add copyrights.

PR: 119136

16 years agoMFC 1.28,1.29: reject cpufreq changes before sched_bind() is usable and
njl [Sat, 19 Jan 2008 20:31:00 +0000 (20:31 +0000)]
MFC 1.28,1.29: reject cpufreq changes before sched_bind() is usable and
remove duplicated levels.

Approved by: re

16 years agoUpdate release documentation entities for a post 7.0 world.
bmah [Sat, 19 Jan 2008 18:25:18 +0000 (18:25 +0000)]
Update release documentation entities for a post 7.0 world.

16 years agoNow that RELENG_7 is in a slush state, trim release notes for a
bmah [Sat, 19 Jan 2008 18:24:30 +0000 (18:24 +0000)]
Now that RELENG_7 is in a slush state, trim release notes for a
post-7.0 world.

16 years agoMFC revs. 1.116-1.118: OpenBSD 4.2, NetBSD 4.0, FreeBSD 6.3.
maxim [Sat, 19 Jan 2008 18:07:07 +0000 (18:07 +0000)]
MFC revs. 1.116-1.118: OpenBSD 4.2, NetBSD 4.0, FreeBSD 6.3.

16 years agoMFC rev. 1.85: wait/nowait column for ONC services.
maxim [Sat, 19 Jan 2008 18:02:11 +0000 (18:02 +0000)]
MFC rev. 1.85: wait/nowait column for ONC services.

16 years agoMFC rev. 1.156:
kib [Sat, 19 Jan 2008 17:57:06 +0000 (17:57 +0000)]
MFC rev. 1.156:
In the rev. 1.153, the one place for converting minor number to unit
was missed. As result, pty_create_slave() may index out of the names[]
bounds, creating wrong slave tty names.

16 years agoMFC rev. 1.90 ntfs_vfsops.c and revs. 1.22, 1.23 mount_ntfs.8: mask
maxim [Sat, 19 Jan 2008 17:54:11 +0000 (17:54 +0000)]
MFC rev. 1.90 ntfs_vfsops.c and revs. 1.22, 1.23 mount_ntfs.8: mask
maximum file permissions with ACCESSPERMS.

16 years agoMFC rev. 1.53 rc.firewall and rev. 1.18 rc.firewall6: fix bibliography.
maxim [Sat, 19 Jan 2008 17:40:27 +0000 (17:40 +0000)]
MFC rev. 1.53 rc.firewall and rev. 1.18 rc.firewall6: fix bibliography.

16 years agoMFC revs. 1.8, 1.9: do not claim vlan(4) uses mbuf_tags(9).
maxim [Sat, 19 Jan 2008 17:33:02 +0000 (17:33 +0000)]
MFC revs. 1.8, 1.9: do not claim vlan(4) uses mbuf_tags(9).

16 years agoMFC rev 1.37: fix an output. MFC revs. 1.38, 1.39: plug a memory leak.
maxim [Sat, 19 Jan 2008 17:27:43 +0000 (17:27 +0000)]
MFC rev 1.37: fix an output.  MFC revs. 1.38, 1.39: plug a memory leak.

16 years agoMFC rev. 1.322 rc.conf, rev. 1.332 rc.conf.5: TCP_DROP_SYNFIN has gone.
maxim [Sat, 19 Jan 2008 17:18:57 +0000 (17:18 +0000)]
MFC rev. 1.322 rc.conf, rev. 1.332 rc.conf.5: TCP_DROP_SYNFIN has gone.

16 years ago- Add missing file for OpenPAM Hydrangea MFC
rafan [Sat, 19 Jan 2008 11:47:37 +0000 (11:47 +0000)]
- Add missing file for OpenPAM Hydrangea MFC

16 years agoMFC rev. 1.53:
kib [Sat, 19 Jan 2008 05:57:48 +0000 (05:57 +0000)]
MFC rev. 1.53:
ffs_balloc_ufsX() routines, in the case of recovering from the failed
allocation, free the indirect blocks before clearing the disk pointers,
that could lead to the softupdate inconsistencies in the case of the
machine or disk crash at the wrong time.

Rearrange the recover code to do the ffs_blkfree() after the second
ffs_syncvnode(), that clears the pointers chain.

16 years agoMFC rev. 1.52:
kib [Sat, 19 Jan 2008 05:48:30 +0000 (05:48 +0000)]
MFC rev. 1.52:
The ffs_balloc() routines, whan allocating the indirect blocks for
the inode, do the rollback in case the allocation failed (due to
insufficient free space or quota limits). But, the code does leaves the
buffers corresponding to the inoirect blocks on the vnode bufobj list.
This causes several assertion failures (for instance, "ffs_truncate3"
in ffs_truncate()) to fail, and could result in the indirect block
aliasing problem, like writing the context of such blocks to random
disk location.

Remove the buffers from the bufobj properly.

16 years agoMFC:
brueffer [Fri, 18 Jan 2008 16:45:43 +0000 (16:45 +0000)]
MFC:

WITHOUT_FORTRAN was removed some time ago.  Regen src.conf.5.

16 years agoMFC: (1.68) document environment variables.
des [Fri, 18 Jan 2008 13:35:09 +0000 (13:35 +0000)]
MFC: (1.68) document environment variables.

16 years agoMFC: OpenPAM Hydrangea
des [Fri, 18 Jan 2008 13:29:05 +0000 (13:29 +0000)]
MFC: OpenPAM Hydrangea

16 years agoMFC: (1.10) correct documentation of ~/.opiealways
des [Fri, 18 Jan 2008 13:28:24 +0000 (13:28 +0000)]
MFC: (1.10) correct documentation of ~/.opiealways

PR: 117512

16 years agoMFC: clean up namespace violations; correct is*() usage; NO_PROXY support
des [Fri, 18 Jan 2008 13:23:57 +0000 (13:23 +0000)]
MFC: clean up namespace violations; correct is*() usage; NO_PROXY support

16 years agoMFC: (1.26) traverse the tree in lexical order
des [Fri, 18 Jan 2008 13:13:01 +0000 (13:13 +0000)]
MFC: (1.26) traverse the tree in lexical order

16 years agoMFC fix for the panic("vm_thread_new: kstack allocation failed") and
kib [Fri, 18 Jan 2008 10:02:53 +0000 (10:02 +0000)]
MFC fix for the panic("vm_thread_new: kstack allocation failed") and
silent NULL pointer dereference in the i386 and sparc64 pmap_pinit()
when the kmem_alloc_nofault() failed to allocate address space. Both
functions now return error instead of panicing or dereferencing NULL.

The reason for MFCing this so late in release cycle is, according to
marius@, because
> it fixes the crashing (though no panic) of the test suite
> of the graphic/OpenEXR port on sparc64. This test suite is run
> (and required to succeed) during the package build and that's
> why portmgr@ bitch about at it as OpenEXR is a dependency of KDE
> which in turn is supposed to end up on the release CD images.

Revisions MFCed:
  1.677     of      src/sys/amd64/amd64/machdep.c
  1.592     of      src/sys/amd64/amd64/pmap.c
  1.88      of      src/sys/arm/arm/pmap.c
  1.27      of      src/sys/arm/at91/kb920x_machdep.c
  1.22      of      src/sys/arm/sa11x0/assabet_machdep.c
  1.8       of      src/sys/arm/xscale/i80321/ep80219_machdep.c
  1.29      of      src/sys/arm/xscale/i80321/iq31244_machdep.c
  1.3       of      src/sys/arm/xscale/i8134x/crb_machdep.c
  1.6       of      src/sys/arm/xscale/ixp425/avila_machdep.c
  1.41      of      src/sys/compat/pecoff/imgact_pecoff.c
  1.26      of      src/sys/compat/svr4/imgact_svr4.c
  1.660     of      src/sys/i386/i386/machdep.c
  1.596     of      src/sys/i386/i386/pmap.c
  1.68      of      src/sys/i386/ibcs2/imgact_coff.c
  1.56      of      src/sys/i386/linux/imgact_linux.c
  1.226     of      src/sys/ia64/ia64/machdep.c
  1.192     of      src/sys/ia64/ia64/pmap.c
  1.102     of      src/sys/kern/imgact_aout.c
  1.179     of      src/sys/kern/imgact_elf.c
  1.56      of      src/sys/kern/imgact_gzip.c
  1.310     of      src/sys/kern/kern_exec.c
  1.287     of      src/sys/kern/kern_fork.c
  1.236     of      src/sys/kern/kern_kse.c
  1.253     of      src/sys/kern/kern_proc.c
  1.352     of      src/sys/kern/kern_sig.c
  1.63      of      src/sys/kern/kern_thr.c
  1.257     of      src/sys/kern/kern_thread.c
  1.397     of      src/sys/pc98/pc98/machdep.c
  1.104     of      src/sys/powerpc/powerpc/machdep.c
  1.10      of      src/sys/powerpc/powerpc/pmap_dispatch.c
  1.139     of      src/sys/sparc64/sparc64/machdep.c
  1.167     of      src/sys/sparc64/sparc64/pmap.c
  1.16      of      src/sys/sun4v/sun4v/machdep.c
  1.40      of      src/sys/sun4v/sun4v/pmap.c
  1.493     of      src/sys/sys/proc.h
  1.78      of      src/sys/sys/signalvar.h
  1.80      of      src/sys/vm/pmap.h
  1.79      of      src/sys/vm/vm_extern.h
  1.226     of      src/sys/vm/vm_glue.c
  1.390     of       src/sys/vm/vm_map.c

Requested by: marius
Tested by: Peter Holm, marius (make universe and sparc64 runs)
Approved by: re (kensmith)

16 years agoMFC rev. 1.319, 1.320:
kib [Fri, 18 Jan 2008 09:39:35 +0000 (09:39 +0000)]
MFC rev. 1.319, 1.320:

Fix unload of the fdc.ko:
Wakeup the thread doing the fdc_detach() when the fdc worker thread exits.
Write access to the write-protected floppy shall call device_unbusy() to
pair the device_busy() in the fd_access().

16 years agoThis commit was manufactured by cvs2svn to create branch 'RELENG_7'.
cvs2svn [Fri, 18 Jan 2008 05:05:59 +0000 (05:05 +0000)]
This commit was manufactured by cvs2svn to create branch 'RELENG_7'.

16 years agoMFC: Force consistent use of the mountpoint's credentials when connecting
jhb [Thu, 17 Jan 2008 21:04:51 +0000 (21:04 +0000)]
MFC: Force consistent use of the mountpoint's credentials when connecting
to the NFS server by temporarily changing the current thread's credentials
to that of the mountpoint while establishing the connection.

16 years agoMFC: sys/contrib/opensolaris/uts/common/fs/zfs/zvol.c 1.4
pjd [Thu, 17 Jan 2008 07:50:34 +0000 (07:50 +0000)]
MFC: sys/contrib/opensolaris/uts/common/fs/zfs/zvol.c 1.4

Call zil_commit() (if ZIL is not disabled) after every non-read request
(BIO_WRITE and BIO_FLUSH) as it is done is Solaris. The difference is
that Solaris calls it only for sync requests, but we can't say in GEOM
if the request is sync or async, so we do it for every request.

Approved by: re (gnn)

16 years agoClose access to vdev when setting state to anything but open state.
pjd [Thu, 17 Jan 2008 07:49:16 +0000 (07:49 +0000)]
Close access to vdev when setting state to anything but open state.
This fixes replacing drive in place, eg. zpool replace tank da1 da1.
Before the fix, it complained that device is already open.

Obtained from: OpenSolaris
Approved by: re (gnn)

16 years agoMFC: sys/vm/vm_kern.c 1.131
pjd [Thu, 17 Jan 2008 07:47:03 +0000 (07:47 +0000)]
MFC: sys/vm/vm_kern.c 1.131

When one tries to allocate memory with the M_WAITOK flag and we are short in
address space in kmem map call vm_lowmem event in a loop and wait a bit for
subsystems to reclaim some memory which in turn will reclaim address space as
well.

Note, this is a work-around.

Reviewed by: alc
Approved by: alc, re (gnn)

16 years agoMFC: 1.270
rodrigc [Thu, 17 Jan 2008 04:24:53 +0000 (04:24 +0000)]
MFC: 1.270
 - In vfs_scanopt(), make sure that the mount option value is not NULL
   before calling vsscanf().

PR: 118531

MFC: 1.268
  - Internally convert "rdonly" mount option to "ro".

Approved by: re (kensmith)

16 years agoMFC rev 1.14:
cognet [Wed, 16 Jan 2008 22:45:03 +0000 (22:45 +0000)]
MFC rev 1.14:
Back when I committed the arm port, I've been asked to move
memcpy/memset/memcmp and friends from libkern/arm to arm/arm/support.S, and so
I did, but in the process, I didn't add the appropriate copyrights.
This is a major oversight from me, and I apology to the NetBSD people for it.

Approved by: re (mux)

16 years agoMerge uipc_sem.c:1.30 from HEAD to RELENG_7:
rwatson [Wed, 16 Jan 2008 21:40:05 +0000 (21:40 +0000)]
Merge uipc_sem.c:1.30 from HEAD to RELENG_7:

  Free MAC label on a POSIX semaphore when the semaphore is freed.

  Submitted by:   jhb

Approved by: re (kensmith)

16 years agoMFC: queue an asynch handler to re-enable a level-triggered GPE
njl [Wed, 16 Jan 2008 01:22:15 +0000 (01:22 +0000)]
MFC: queue an asynch handler to re-enable a level-triggered GPE

Approved by: re

16 years agoMFC: Use a dummy interrupt handler to work around lpt(4) interrupt
jhb [Tue, 15 Jan 2008 22:28:15 +0000 (22:28 +0000)]
MFC: Use a dummy interrupt handler to work around lpt(4) interrupt
problems.

Approved by: re (gnn)

16 years agoMFC: Update to firmware version 1.4.29 from 1.4.25
gallatin [Tue, 15 Jan 2008 17:59:15 +0000 (17:59 +0000)]
MFC: Update to firmware version 1.4.29 from 1.4.25
Approved by: re (kensmith)

16 years agoFix issues which allow snooping on ptys. [08:01]
cperciva [Mon, 14 Jan 2008 22:57:45 +0000 (22:57 +0000)]
Fix issues which allow snooping on ptys. [08:01]

Fix an off-by-one error in inet_network(3). [08:02]

Security: FreeBSD-SA-08:01.pty
Security: FreeBSD-SA-08:02.libc
Approved by: re (kensmith)

16 years agoRemove a dublicate complete copy of the manpage. No MFC as the version
brueffer [Mon, 14 Jan 2008 21:45:02 +0000 (21:45 +0000)]
Remove a dublicate complete copy of the manpage.  No MFC as the version
in HEAD is ok.

Submitted by: pluknet
Approved by: re (hrs)

16 years agoMFC: dist.c v1.254, dist.h v1.72, menus.c v1.429, sysinstall.h v1.275
kensmith [Mon, 14 Jan 2008 19:28:43 +0000 (19:28 +0000)]
MFC: dist.c v1.254, dist.h v1.72, menus.c v1.429, sysinstall.h v1.275

> Change sysinstall's handling of X11 stuff.  Doing it in pieces was
> probably the right thing to do a while ago but xorg has progressed
> to the point that for novice users (who are the ones expected to think
> installing X11 during an install...) it's best to just install the
> whole x11/xorg metaport for them.  This removes the X11 sub-menus
> and sets it up so you just select whether or not you want X11.  While
> here garbage collect an X11 configuration menu I missed removing when
> I removed support for attempting xorg configuration from inside sysinstall
> a while ago.

Approved by:    re (hrs)

16 years agoAdd the various packages we've ejected from the CD sets through
kensmith [Mon, 14 Jan 2008 17:28:36 +0000 (17:28 +0000)]
Add the various packages we've ejected from the CD sets through
recent years back on disc3.

Approved by: re (hrs)

16 years agoMFC the change from 1.27, removal of zones from the empty zone list that
dougb [Sun, 13 Jan 2008 20:51:09 +0000 (20:51 +0000)]
MFC the change from 1.27, removal of zones from the empty zone list that
may theoretically be allocated some day.

Approved by: re (kensmith)

16 years agoMFC: Close a race in the kern.ttys sysctl handler that resulted in panics
jhb [Sat, 12 Jan 2008 00:20:06 +0000 (00:20 +0000)]
MFC: Close a race in the kern.ttys sysctl handler that resulted in panics
in dev2udev().

Approved by: re (gnn)

16 years agoMFC: Lock the vnode interlock while reading v_usecount to update
jhb [Sat, 12 Jan 2008 00:13:33 +0000 (00:13 +0000)]
MFC: Lock the vnode interlock while reading v_usecount to update
si_usecount in a cdev in devfs_reclaim().

Approved by: re (gnn)

16 years agoMFC: Only use sockoptname() to parse socket option names for SOL_SOCKET
jhb [Sat, 12 Jan 2008 00:07:50 +0000 (00:07 +0000)]
MFC: Only use sockoptname() to parse socket option names for SOL_SOCKET
requests.

Approved by: re (gnn)

16 years agoMFC rev. 1.62:
attilio [Fri, 11 Jan 2008 19:56:17 +0000 (19:56 +0000)]
MFC rev. 1.62:
g_vfs_close wants the sx topology lock held while executing, so add
correct locking for mounting operation.

Approved by: re

16 years agoMFC: 1.25
marius [Wed, 9 Jan 2008 21:45:37 +0000 (21:45 +0000)]
MFC: 1.25

Fix some bugs in the FreeBSD 4/5/6 pci(4) IOCTLs compatibility code:
- Use the correct offsets when copying out the results of PCIOCGETCONF_OLD.
  This happened to not affect the 64-bit architectures because there the
  addition of pc_domain to struct pcisel didn't change the overall size of
  struct pci_conf.
- Always copy the name and unit information to conf_old so it's also part
  of the output once this information is cached in dinfo.
- Use the correct type for flags in struct pci_match_conf_old. This
  change is more or less cosmetic though.

Approved by: re (gnn)

16 years agoMFC rev. 1.22
mav [Wed, 9 Jan 2008 19:55:51 +0000 (19:55 +0000)]
MFC rev. 1.22
Increase control channel xmit queue to 128 packets.
Previous value 16 was too small for real LAC as temporal activity
spike cound easily overflow queue demanding tunnel disconnection due
to possible state inconsistency.

Approved by: re (gnn)

16 years agoMFC: More properly handle links who only have 1 valid IRQ in their bitmask.
jhb [Wed, 9 Jan 2008 18:01:51 +0000 (18:01 +0000)]
MFC: More properly handle links who only have 1 valid IRQ in their bitmask.

Approved by: re (kensmith)

16 years agoMFC: Update the shlib version for libgssapi_krb5.
jhb [Wed, 9 Jan 2008 18:00:51 +0000 (18:00 +0000)]
MFC: Update the shlib version for libgssapi_krb5.

Approved by: re (kensmith)

16 years agoMFC rev. 1.89, 1.90:
kib [Wed, 9 Jan 2008 15:30:34 +0000 (15:30 +0000)]
MFC rev. 1.89, 1.90:
Apply the LCONVPATH() to the (old) linux_stat() and linux_lstat() syscalls.

Approved by: re (kensmith)

16 years agoMFC route.c@1.125 and route.h@1.68:
mux [Wed, 9 Jan 2008 15:23:36 +0000 (15:23 +0000)]
MFC route.c@1.125 and route.h@1.68:
  Add a workaround for a deadlock between the rt_setgate() and rt_check()
  functions.  It is easily triggered by running routed, and, I expect, by
  running any other daemon that uses routing sockets.

Approved by:    re (kensmith)

16 years agoMFC rev. 1.392:
kib [Wed, 9 Jan 2008 15:19:22 +0000 (15:19 +0000)]
MFC rev. 1.392:
In the vm_map_stack(), check for the specified stack region wraparound.

Approved by: re (kensmith)

16 years agoMFC important fixes by sos@:
delphij [Wed, 9 Jan 2008 08:55:10 +0000 (08:55 +0000)]
MFC important fixes by sos@:
Implement a workaround of the datacorruption problem on ServerWorks
HT1000 chipsets.  The HT1000 DMA engine seems to not always like 64K
transfers and sometimes barfs data all over memory leading to instant
chrash and burn.

Also fix 48bit adressing issues, apparently newer chips needs 16bit
writes and not the usual fifo thing.

HW donated by: Travis Mikalson at TerraNovaNet
Original work: sos
Approved by: re (kensmith)

16 years agoMFC r1.5:
gabor [Tue, 8 Jan 2008 15:37:57 +0000 (15:37 +0000)]
MFC r1.5:
- This driver will first appear in FreeBSD 6.3, not 7.0

Approved by: re (hrs)

16 years agoMFC:
brix [Mon, 7 Jan 2008 23:12:45 +0000 (23:12 +0000)]
MFC:
- src/sys/dev/usb/usb_quirks.c (revision 1.64)
- src/sys/dev/usb/usbdevs (revision 1.333)

Update quirks for the MetaGeek Wi-Spy 1A, 1B and 2.4x.

Approved by: re (kensmith), erwin (mentor)

16 years agoMFC: Fix a typo in regards to the ENOENT error.
jhb [Mon, 7 Jan 2008 21:29:29 +0000 (21:29 +0000)]
MFC: Fix a typo in regards to the ENOENT error.

Approved by: re (hrs)

16 years agoMFC: Use devclass_get_count() instead of devclass_get_maxunit().
jhb [Mon, 7 Jan 2008 21:27:50 +0000 (21:27 +0000)]
MFC: Use devclass_get_count() instead of devclass_get_maxunit().

Approved by: re (hrs)

16 years agoMFC: (revision 1.2)
brix [Mon, 7 Jan 2008 21:15:45 +0000 (21:15 +0000)]
MFC: (revision 1.2)

Add reload functionality.

Approved by: re (kensmith), erwin (mentor)

16 years agoMFC r1.10:
gabor [Mon, 7 Jan 2008 14:53:59 +0000 (14:53 +0000)]
MFC r1.10:
- ipmi(4) appeared in FreeBSD 6.2, not in 6.3

Approved by: re (hrs)

16 years agoMFC: rev 1.4: forward compatability with cvs-1.12 repository
peter [Mon, 7 Jan 2008 09:02:02 +0000 (09:02 +0000)]
MFC: rev 1.4: forward compatability with cvs-1.12 repository

Approved by:  re (kensmith)

16 years agoMFC of tzdata2007k.
edwin [Sun, 6 Jan 2008 07:36:08 +0000 (07:36 +0000)]
MFC of tzdata2007k.

Approved by: re (ken smith)

16 years agoUpdate iso3166 with the data from Newsletter VI-1 2007-09-21:
edwin [Sun, 6 Jan 2008 07:25:43 +0000 (07:25 +0000)]
Update iso3166 with the data from Newsletter VI-1 2007-09-21:
Added SAINT BARTHELEMY (BL) and SAINT MARTIN (MF).

MFC of rev 1.17

Approved by: re (ken smith)

16 years agoOn FreeBSD GCC 4.2.x checks for the existence of pthread_cancel() in
marius [Sat, 5 Jan 2008 22:58:51 +0000 (22:58 +0000)]
On FreeBSD GCC 4.2.x checks for the existence of pthread_cancel() in
order to determine whether a program is running with multithreading
support. This check causes __gthread_active_p() to always return 1
however, regardless of whether the program was actually compiled with
-pthread or not, due to the fact that the FreeBSD libc contains a
pthread_cancel() stub. Fix this by using the __gthread_active_p()
version that GCC uses for Solaris and which actively checks for a
working POSIX threads implementation (if such functions exist) instead
of checking for the mere existence of corresponding functions.

On platforms without TLS support, i.e. on arm and sparc64 due to the
lack of GNU TLS support for these archs in binutils 2.15., the false
positives returned by __gthread_active_p() for non-threaded programs
cause the exception handling implementation GCC uses in this case to
crash. This is because GCC assumes that the POSIX threading functions
actually work when __gthread_active_p() returns 1 while in fact the
corresponding stubs in libc just immediately return.
Given that __gthread_active_p() is also used in a couple of other
places besides exception handling, this bug has great potential to
also cause problems in other areas and on all archs.

This is committed to RELENG_7 directly in order to get a fix into
RELENG_7_0 as soon as possible while allowing to loop the official
fix back into the vendor branch and not taking gthr-posix.h off the
vendor branch in HEAD.

PR: 119289
Reviewed by: obrien (plus style fix)
Approved by: re (kensmith)