]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
19 years agoMerge if_var.h:1.101 from HEAD to RELENG_6:
rwatson [Wed, 24 Aug 2005 13:26:14 +0000 (13:26 +0000)]
Merge if_var.h:1.101 from HEAD to RELENG_6:

  - Rename ifmaof_ifpforaddr() to if_findmulti(); assert if_addr_mtx.
    Staticize.

  Problem reported by:    Ed Maste <emaste at phaedrus dot sandvine dot ca>

Approved by: re (scottl)

19 years agoMFC rev 1.35:
simon [Wed, 24 Aug 2005 08:07:29 +0000 (08:07 +0000)]
MFC rev 1.35:

  Remove reference to raid(4), the RAIDframe manual page, which was
  deleted a while ago.

Approved by: re (scottl)

19 years agoMFC 1.55
suz [Wed, 24 Aug 2005 06:46:16 +0000 (06:46 +0000)]
MFC 1.55
 added a missing unlock (just do the same thing as in netinet/raw_ip.c)

Approved by: re(scottl)

19 years agoMerge if.c:1.240, if.c:1.241, if.c:1.242 from HEAD to RELENG_6, which
rwatson [Wed, 24 Aug 2005 04:45:02 +0000 (04:45 +0000)]
Merge if.c:1.240, if.c:1.241, if.c:1.242 from HEAD to RELENG_6, which
correct nits in the addition of if_addr_mtx:

if.c:1.240:
  Initialize the if_addr mutex in if_alloc() rather than waiting until
  if_attach().  This allows ethernet drivers to use it in their routines
  to program their MAC filters before ether_ifattach() is called (de(4) is
  one such driver).  Also, the if_addr mutex is destroyed in if_free()
  rather than if_detach(), so there was another potential bug in that a
  driver that failed during attach and called if_free() without having
  called ether_ifattach() would have tried to destroy an uninitialized
  mutex.

  Reported by:    Holm Tiffe holm at freibergnet dot de
  Discussed with: rwatson

if.c:1.241:
  destroy lock _before_ free'ing the structure it resides in

if.c:1.242:
  - Move IF_ADDR_LOCK_DESTROY(ifp) from if_free to if_free_type.
  - Add a note that additions should be made to if_free_type and not
    if_free to help avoid this in the future.

  This apparently fixes a use after free in if_bridge and may fix bugs
  in other direct if_free_type consumers.

  Reported by:    thompsa

Approved by: re (hrs)

19 years agoMerge if.c:1.239, if_var.h:1.101 from HEAD to RELENG_6:
rwatson [Wed, 24 Aug 2005 04:42:03 +0000 (04:42 +0000)]
Merge if.c:1.239, if_var.h:1.101 from HEAD to RELENG_6:

  Protect link layer network interface multicast address list manipulation
  using ifp->if_addr_mtx:

  - Initialize if_addr_mtx when ifnet is initialized.

  - Destroy if_addr_mtx when ifnet is torn down.

  - Rename ifmaof_ifpforaddr() to if_findmulti(); assert if_addr_mtx.
    Staticize.

  - Extract ifmultiaddr allocation and initialization into if_allocmulti();
    accept a 'mflags' argument to indicate whether or not sleeping is
    permitted.  This centralizes error handling and address duplication.

  - Extract ifmultiaddr tear-down and deallocation in if_freemulti().

  - Re-structure if_addmulti() to hold if_addr_mtx around manipulation of
    the ifnet multicast address list and reference count manipulation.
    Make use of non-sleeping allocations.  Annotate the fact that we only
    generate routing socket events for explicit address addition, not
    implicit link layer address addition.

  - Re-structure if_delmulti() to hold if_addr_mtx around manipulation of
    the ifnet multicast address list and reference count manipulation.
    Annotate the lack of a routing socket event for implicit link layer
    address removal.

  - De-spl all and sundry.

  Problem reported by:    Ed Maste <emaste at phaedrus dot sandvine dot ca>

Approved by: re (hrs)

19 years agoMerge if.c:1.235 from HEAD to RELENG_6:
rwatson [Wed, 24 Aug 2005 04:19:48 +0000 (04:19 +0000)]
Merge if.c:1.235 from HEAD to RELENG_6:

  - Introduce a helper function if_setflag() containing the code common
    to ifpromisc() and if_allmulti() instead of duplicating the code poorly,
    with different bugs.
  - Call ifp->if_ioctl() in a consistent way: always use more compatible C
    syntax and check whether ifp->if_ioctl is not NULL prior to the call.

Discussed with: yar
Approved by: re (scottl)

19 years agoMerge vfs_subr.c:1.641 from HEAD to RELENG_6:
rwatson [Tue, 23 Aug 2005 01:50:19 +0000 (01:50 +0000)]
Merge vfs_subr.c:1.641 from HEAD to RELENG_6:

  Silence "busy" warnings when unmounting devfs at system shutdown.  This
  is a workaround for non-symetric teardown of the file systems at
  shutdown with respect to the mount order at boot.  The proper long term
  fix is to properly detach devfs from the root mount before unmounting
  each, and should be implemented, but since the problem is non-harmful,
  this temporary band-aid will prevent false positive bug reports and
  unnecessary error output for 6.0-RELEASE.

  Tested by:      pav, pjd

Approved by: re (scottl)

19 years agoAlmost ready for BETA3 builds.
kensmith [Mon, 22 Aug 2005 03:01:35 +0000 (03:01 +0000)]
Almost ready for BETA3 builds.

Approved by: re (implicit)

19 years agoMerge ip_output.c:1.244 from HEAD to RELENG_6:
rwatson [Sat, 20 Aug 2005 21:32:08 +0000 (21:32 +0000)]
Merge ip_output.c:1.244 from HEAD to RELENG_6:

  Add helper function ip_findmoptions(), which accepts an inpcb, and attempts
  to atomically return either an existing set of IP multicast options for the
  PCB, or a newlly allocated set with default values.  The inpcb is returned
  locked.  This function may sleep.

  Call ip_moptions() to acquire a reference to a PCB's socket options, and
  perform the update of the options while holding the PCB lock.  Release the
  lock before returning.

  Remove garbage collection of multicast options when values return to the
  default, as this complicates locking substantially.  Most applications
  allocate a socket either to be multicast, or not, and don't tend to keep
  around sockets that have previously been used for multicast, then used for
  unicast.

  This closes a number of race conditions involving multiple threads or
  processes modifying the IP multicast state of a socket simultaenously.

Approved by: re (scottl)

19 years agoMerge libmemstat.3:1.10 from HEAD to RELENG_6:
rwatson [Sat, 20 Aug 2005 21:25:21 +0000 (21:25 +0000)]
Merge libmemstat.3:1.10 from HEAD to RELENG_6:

  The "Mbuf" zone was renamed "mbuf" to improve consistency, but the code
  example in libmemstat.3 was not updated to take this rename into account.
  Update the example.

  PR:             84946
  Submitted by:   Wojciech A. Koszek <dunstan at freebsd dot czest dot pl>

Approved by: re (scottl)

19 years agoMerge if_var.h:1.99 from HEAD to RELENG_6:
rwatson [Sat, 20 Aug 2005 13:38:22 +0000 (13:38 +0000)]
Merge if_var.h:1.99 from HEAD to RELENG_6:

  Allocate one of the spare ifnet integer fields to hold if_drv_flags,
  which in the future will hold IFF_OACTIVE and IFF_RUNNING, and have
  its access synchronized by the device driver rather than the
  protocol stack.  This will avoid potential races in the management
  of flags in if_flags.

  Discussed with: various (scottl, jhb, ...)

Approved by: re (kensmith)

19 years agoMerge in_pcb.c:1.166 from HEAD to RELENG_6:
rwatson [Sat, 20 Aug 2005 13:34:59 +0000 (13:34 +0000)]
Merge in_pcb.c:1.166 from HEAD to RELENG_6:

  Remove no-op spl references in in_pcb.c, since in_pcb locking has been
  basically complete for several years now.  Update one spl comment to
  reference the locking strategy.

Approved by: re (kensmith)

19 years agoMerge tcp_subr.c:1.229, tcp_syncache.c:1.75, tcp_timer.c:1.75 from HEAD
rwatson [Sat, 20 Aug 2005 13:34:13 +0000 (13:34 +0000)]
Merge tcp_subr.c:1.229, tcp_syncache.c:1.75, tcp_timer.c:1.75 from HEAD
to RELENG_6:

  Remove no-op spl's and most comment references to spls, as TCP locking
  is believed to be basically done (modulo any remaining bugs).

Approved by: re (kensmith)

19 years agoMerge uma_dbg.c:1.21, uma_dbg.h:1.9 from HEAD to RELENG_6:
rwatson [Sat, 20 Aug 2005 13:31:05 +0000 (13:31 +0000)]
Merge uma_dbg.c:1.21, uma_dbg.h:1.9 from HEAD to RELENG_6:

  Improve canonicalization of copyrights.  Order copyrights by order of
  assertion (jeff, bmilekic, rwatson).

  Suggested ages ago by:  bde

Approved by: re (kensmith)

19 years agoMerge mdoc.local:1.50 from HEAD to RELENG_6:
rwatson [Sat, 20 Aug 2005 13:24:28 +0000 (13:24 +0000)]
Merge mdoc.local:1.50 from HEAD to RELENG_6:

  Hook up libmemstat(3) to the library list in mdoc.local.  This will cause
  the library description (specifically, -lmemstat) to render properly in
  the libmemstat.3 man page.

  Submitted by:   ru

Approved by: re (kensmith)

19 years agoMFC 1.34, 1.35:
ume [Sat, 20 Aug 2005 12:20:48 +0000 (12:20 +0000)]
MFC 1.34, 1.35:

  - avoid exclusive sleep mutex witness warning using sx lock.
  - use TAILQ_FOREACH() for readability.

Approved by: re (kensmith)

19 years agoMFC:
bz [Sat, 20 Aug 2005 08:36:57 +0000 (08:36 +0000)]
MFC:
rev. 1.108, 1.109 src/sys/netinet/ip_fw2.c
rev. 1.101        src/sys/netinet/ip_fw.h
rev. 1.77         src/sbin/ipfw/ipfw2.c
rev. 1.176        src/sbin/ipfw/ipfw.8

* Add dynamic sysctl for net.inet6.ip6.fw.
* Correct handling of IPv6 Extension Headers.
* Add unreach6 code.
* Add logging for IPv6.
* Fix build without INET6 and IPFIREWALL compiled into kernel.[1]

Submitted by:   sysctl handling derived from patch from ume needed for ip6fw
Obtained from:  is_icmp6_query and send_reject6 derived from similar
                functions of netinet6,ip6fw
Reviewed by:    ume, gnn; silence on ipfw@
Spotted and tested by:  Michal Mertl <mime at traveller.cz>[1]
Approved by:    re (kensmith)

19 years agoMFC rev. 1.29-1.31:
yar [Sat, 20 Aug 2005 08:05:01 +0000 (08:05 +0000)]
MFC rev. 1.29-1.31:

Make the procfs module buildable again in the MODULES_WITH_WORLD case.
This means defining a target for default opt_compat.h, but only if we
are not building the modules along with the kernel.

Approved by: re (kensmith)

19 years agoMFC
alc [Sat, 20 Aug 2005 06:07:55 +0000 (06:07 +0000)]
MFC
 Eliminate inconsistency in the setting of the B_DONE flag.

Approved by: re (kensmith)

19 years agoMFC rev 1.9, remove an incorrect and unnecessicary bzero of the softc.
brooks [Sat, 20 Aug 2005 04:35:29 +0000 (04:35 +0000)]
MFC rev 1.9, remove an incorrect and unnecessicary bzero of the softc.

Approved by: re (kensmith)

19 years agoMFC rev 1.81, use if_free_type to avoid leaking struct arpcoms.
brooks [Sat, 20 Aug 2005 04:34:11 +0000 (04:34 +0000)]
MFC rev 1.81, use if_free_type to avoid leaking struct arpcoms.

Approved by: re (kensmith)

19 years agoMFC rev 1.244, removal of if_findindex and correction of two if_alloc
brooks [Sat, 20 Aug 2005 04:32:54 +0000 (04:32 +0000)]
MFC rev 1.244, removal of if_findindex and correction of two if_alloc
calls before an if_attach.

Partial MFC of 1.243.  The change it was a response to has not been
MFCd, but the comment is relevent without it.

Approved by: re (kensmith)

19 years agoMFC revs 1.257 and 1.216.
brooks [Sat, 20 Aug 2005 04:30:35 +0000 (04:30 +0000)]
MFC revs 1.257 and 1.216.
 - interface startup doc updates
 - s/ISC dhclient/OpenBSD dhclient/

Approved by: re (kensmith)

19 years agoMFC 1.22: in the ufsdirhash_build() failure case for corrupted
iedowse [Sat, 20 Aug 2005 04:27:15 +0000 (04:27 +0000)]
MFC 1.22: in the ufsdirhash_build() failure case for corrupted
directories or unreadable blocks, make sure to destroy the mutex
we created.

Approved by: re (scottl)

19 years agoMFC: Make links for hoststat(8) and purgestat(8) man pages.
gshapiro [Sat, 20 Aug 2005 01:39:08 +0000 (01:39 +0000)]
MFC: Make links for hoststat(8) and purgestat(8) man pages.

     Revision  Changes    Path
     1.52      +2 -0      src/usr.sbin/sendmail/Makefile

Approved by: re (hrs)

19 years agoMFC 1.1.1.3, a patch to aid in out of memory conditions.
dougb [Fri, 19 Aug 2005 22:09:16 +0000 (22:09 +0000)]
MFC 1.1.1.3, a patch to aid in out of memory conditions.

Take this opportunity to note that glebius indicated
that the initial work in this area was done by
Igor Sysoev <is rambler-co.ru>

Approved by: re (kensmith)

19 years agoMFC: Make ichsmb unloadable
brian [Fri, 19 Aug 2005 18:38:55 +0000 (18:38 +0000)]
MFC: Make ichsmb unloadable

Approved by: re (kensmith)
Sponsored by: Sophos/ActiveState

19 years agoMFC 1.36: create sysctl tree dynamically. it is required to share
ume [Fri, 19 Aug 2005 17:38:52 +0000 (17:38 +0000)]
MFC 1.36: create sysctl tree dynamically.  it is required to share
net.inet6.ip6.fw with upcoming ipfw2 improvement for IPv6.

Requested by: bz
Approved by: re (kensmith)

19 years agoMFC: rev. 1.27
brueffer [Fri, 19 Aug 2005 15:54:42 +0000 (15:54 +0000)]
MFC: rev. 1.27

Clarify how the 'channel' argument should look like and add an
example on how to obtain information on devices on an ata channel.

Approved by: re (hrs)

19 years agoMFC:
glebius [Fri, 19 Aug 2005 15:08:43 +0000 (15:08 +0000)]
MFC:
  Add a new switch -h for interface stats mode, which prints all interface
  statistics in human readable form.

  In collaboration with: vsevolod
  Reviewed by: cperciva

Approved by: re (kensmith)

19 years agoMFC:
glebius [Fri, 19 Aug 2005 14:52:21 +0000 (14:52 +0000)]
MFC:
  Axe ppp_for_tty(). Use tty->t_lsc pointer to store sc. This
  also eliminates recursive use of ppp_softc_list_mtx.
  PR: kern/84686
  Reviewed by: phk

Approved by: re (kensmith)

19 years agoMFC: Attempt g_ctl for metadata modification.
nyan [Fri, 19 Aug 2005 12:43:55 +0000 (12:43 +0000)]
MFC: Attempt g_ctl for metadata modification.

Approved by: re (kensmith)

19 years agoMFC: revision 1.54 (Implement g_ctl api).
nyan [Fri, 19 Aug 2005 12:40:32 +0000 (12:40 +0000)]
MFC: revision 1.54 (Implement g_ctl api).

Approved by: re (kensmith)

19 years agoMFC: sys/opencrypto/cryptodev.c 1.26
pjd [Fri, 19 Aug 2005 12:04:19 +0000 (12:04 +0000)]
MFC: sys/opencrypto/cryptodev.c 1.26

Fix bogus check. It was possible to panic the kernel by giving 0 length.
This is actually a local DoS, as every user can use /dev/crypto if there
is crypto hardware in the system and cryptodev.ko is loaded (or compiled
into the kernel).

Reported by:    Mike Tancsa <mike@sentex.net>
Security: Local DoS on systems with crypto HW and with /dev/crypto available
Approved by: re (kensmith)

19 years agoMFC: usr.sbin/jls/jls.c 1.4,1.5
pjd [Fri, 19 Aug 2005 11:09:11 +0000 (11:09 +0000)]
MFC: usr.sbin/jls/jls.c 1.4,1.5

Not sure why, but SYSCTL_OUT() can sometimes keep returning ENOMEM
in sysctl_jail_list(). Because of this, jls(8) could enter into
an endless loop. The strange thing is, that we can call jls(8) while
the other one is in loop and it will succeed - SYSCTL_OUT() will
not return ENOMEM there.

Approved by: re (kensmith)

19 years agoMFC:
glebius [Fri, 19 Aug 2005 09:29:25 +0000 (09:29 +0000)]
MFC:
  Implement a new feature for ping(8) - sweeping pings. In a sweeping
  ping ICMP payload of packets being sent is increased with given step.
  Sweeping pings are useful for testing problematic channels, MTU
  issues or traffic policing functions in networks.

  PR: bin/82625
  Submitted by: Chris Hellberg <chellberg juniper.net> (with some cleanups)

Approved by: re (kensmith)

19 years agoMFC:
le [Fri, 19 Aug 2005 08:48:04 +0000 (08:48 +0000)]
MFC:
  geom_vinum.c        rev. 1.17
  geom_vinum_drive.c  rev. 1.19
  geom_vinum_plex.c   rev. 1.16
  geom_vinum_rm.c     rev. 1.7
  geom_vinum_var.h    rev. 1.9, 1.10
  geom_vinum_volume.c rev. 1.9

Approved by:  re (kensmith)

19 years agoMFC revision 1.157
csjp [Fri, 19 Aug 2005 04:52:02 +0000 (04:52 +0000)]
MFC revision 1.157
date: 2005/08/18 22:30:52;  author: csjp;  state: Exp;  lines: +4 -2
Add missing braces around bpf_filter which were missed when I
merged the bpfstat code.

Approved by: re (kensmith)

19 years agoSynch with HEAD:
csjp [Fri, 19 Aug 2005 04:50:08 +0000 (04:50 +0000)]
Synch with HEAD:

MFC revision 1.167
date: 2005/08/08 21:06:42;  author: csjp;  state: Exp;  lines: +2 -0
Drop in a WITNESS_WARN into SYSCTL_IN to make sure that we are
not holding any non-sleep-able-locks locks when copyin is called.
This gets executed un-conditionally since we have no function
to wire the buffer in this direction.

MFC revision 1.166
date: 2005/08/08 18:54:35;  author: csjp;  state: Exp;  lines: +6 -1
Check to see if we wired the user-supplied buffers in SYSCTL_OUT, if
the buffer has not been wired and we are holding any non-sleep-able locks,
drop a witness warning. If the buffer has not been wired, it is possible
that the writing of the data can sleep, especially if the page is not in
memory. This can result in a number of different locking issues, including
dead locks.

Approved by: re (kensmith)

19 years agoMFC: Pad the strings sccs[], version[], and osrelease[], and add a
cperciva [Fri, 19 Aug 2005 04:12:41 +0000 (04:12 +0000)]
MFC: Pad the strings sccs[], version[], and osrelease[], and add a
BRANCH_OVERRIDE environment variable (which, if set, overrides the
BRANCH specified here).  These make my FreeBSD Update build code
simpler by making it easier to recognize when two kernels are identical
modulo version numbers.

Approved by: re (kensmith)

19 years agoMFC 1.3: Fix backtraces.
marcel [Fri, 19 Aug 2005 04:02:34 +0000 (04:02 +0000)]
MFC 1.3: Fix backtraces.

Approved by: re (kensmith)

19 years agoMFC: correct date, fix typos, add 07/07 london bombing entry.
murray [Fri, 19 Aug 2005 03:23:07 +0000 (03:23 +0000)]
MFC: correct date, fix typos, add 07/07 london bombing entry.

Approved by: re (kensmith)

19 years agoMFC: Remove dates, since they serve no purpose and result in files
cperciva [Fri, 19 Aug 2005 02:53:00 +0000 (02:53 +0000)]
MFC: Remove dates, since they serve no purpose and result in files
spuriosuly changing each time they are built.  Also add $FreeBSD$ tags,
because cvs wants them.

Approved by: re (kensmith)

19 years agoMFC: Add -frandom-seed=RepeatabilityConsideredGood to CFLAGS in order
cperciva [Fri, 19 Aug 2005 02:49:55 +0000 (02:49 +0000)]
MFC: Add -frandom-seed=RepeatabilityConsideredGood to CFLAGS in order
to make this library build repeatably.

Approved by: re (kensmith)

19 years agoMFC: if_bridge.c, r1.17; bridgestp.c, r1.5
thompsa [Fri, 19 Aug 2005 02:43:07 +0000 (02:43 +0000)]
MFC: if_bridge.c, r1.17; bridgestp.c, r1.5

>   Ensure that we are holding the lock when initialising the bridge interface. We
>   could initialise while unlocked if the bridge is not up when setting the inet
>   address, ether_ioctl() would call bridge_init.
>
>   Change it so bridge_init is always called unlocked and then locks before
>   calling bstp_initialization().

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

19 years agoMerge Makefile:1.12, vmstat.c:1.87 from HEAD to RELENG_6:
rwatson [Fri, 19 Aug 2005 00:07:06 +0000 (00:07 +0000)]
Merge Makefile:1.12, vmstat.c:1.87 from HEAD to RELENG_6:

  Teach vmstat -m and vmstat -z to use libmemstat(3).  Certain
  statistics from -z are now a bit different due to changes in the
  way statistics are now measured.  Reproduce with some amount of
  accuracy the slightly obscure layouts adopted by the two kernel
  sysctls.  In the future, we might want to normalize them.

  GC dosysctl(), which is now no longer used.

Merge vmstat.c:1.88 from HEAD to RELENG_6:

  Minor syntax tweaks:

  - Remove some extra blank lines.
  - Remove comments that don't contribute to understanding.
  - Remove additional blank lines in output added to maximize
    compatibility with older vmstat output, but that is actually
    somewhat gratuitous.

  Submitted by:   bde

Approved by: re (kensmith)

19 years agoMerge if.c:1.238 from HEAD to RELENG_6:
rwatson [Thu, 18 Aug 2005 18:36:53 +0000 (18:36 +0000)]
Merge if.c:1.238 from HEAD to RELENG_6:

  In multicast routines:

  Compare pointers with NULL rather than treating them as booleans.

  Compare pointers with NULL rather than 0 to make it more clear
  they are pointers.

  Assign pointers value of NULL rather than 0 to make it more clear
  they are pointers.

Approved by: re (kensmith)

19 years agoMerge if.c:1.237 from HEAD to RELENG_6:
rwatson [Thu, 18 Aug 2005 18:34:23 +0000 (18:34 +0000)]
Merge if.c:1.237 from HEAD to RELENG_6:

  Rename equal() macro to sa_equal(), which matches the definitions
  of sa_equal() in other files, and makes it more clear what equal()
  is comparing.

Approved by: re (kensmith)

19 years agoMFC spelling fixes of several manpages.
keramida [Thu, 18 Aug 2005 15:01:27 +0000 (15:01 +0000)]
MFC spelling fixes of several manpages.

Approved by: re (kensmith)

The merged revisions/files are:

Revision  Path
1.10      src/lib/libarchive/archive_entry.3
1.21      src/lib/libarchive/archive_read.3
1.8       src/lib/libautofs/libautofs.3
1.10      src/lib/libc/net/inet6_rth_space.3
1.8       src/lib/libc/posix1e/acl_get_entry.3
1.15      src/lib/libc/posix1e/mac.3
1.7       src/lib/libc/posix1e/mac_prepare.3
1.37      src/lib/libc/stdtime/strftime.3
1.16      src/lib/libc/sys/kse.2
1.8       src/lib/libc/sys/uuidgen.2
1.4       src/share/man/man4/man4.i386/acpi_ibm.4
1.6       src/share/man/man4/man4.i386/acpi_panasonic.4
1.40      src/share/man/man4/man4.i386/ep.4
1.6       src/share/man/man4/man4.i386/pbio.4
1.5       src/share/man/man4/man4.i386/snc.4
1.2       src/share/man/man4/man4.sparc64/openprom.4
1.4       src/share/man/man4/man4.sparc64/snd_audiocs.4
1.11      src/share/man/man4/witness.4
1.3       src/share/man/man5/devfs.conf.5
1.51      src/share/man/man9/ifnet.9
1.7       src/share/man/man9/printf.9
1.12      src/usr.bin/file2c/file2c.1
1.27      src/usr.bin/indent/indent.1
1.17      src/usr.bin/lockf/lockf.1
1.90      src/usr.bin/make/make.1
1.45      src/usr.bin/systat/systat.1
1.19      src/usr.bin/truss/truss.1
1.33      src/usr.bin/xinstall/install.1
1.11      src/usr.sbin/bluetooth/rfcomm_pppd/rfcomm_pppd.8
1.4       src/usr.sbin/bluetooth/sdpd/sdpd.8
1.9       src/usr.sbin/bsnmpd/modules/snmp_netgraph/snmp_netgraph.3
1.36      src/usr.sbin/i4b/isdnd/isdnd.rc.5
1.53      src/usr.sbin/mtree/mtree.8
1.8       src/usr.sbin/ndiscvt/ndiscvt.8
1.13      src/usr.sbin/ntp/doc/ntpdc.8
1.26      src/usr.sbin/pppd/pppd.8
1.40      src/usr.sbin/syslogd/syslog.conf.5
1.5       src/usr.sbin/wpa/wpa_supplicant/wpa_supplicant.conf.5

19 years agoMFC: r1.141
grehan [Thu, 18 Aug 2005 11:32:06 +0000 (11:32 +0000)]
MFC: r1.141

    >restore the ability to mount cd9660 filesystems as root by inverting
    >some of the options test, specifically the joliet and rockridge tests.
    > ...

Approved by: re (Ken Smith)

19 years agoMFC: r1.8
grehan [Thu, 18 Aug 2005 11:03:53 +0000 (11:03 +0000)]
MFC: r1.8

    > Remove unnecessary and alarming printf.

Approved by: re (Ken Smith)

19 years agoMFC 1.126:
glebius [Thu, 18 Aug 2005 10:15:25 +0000 (10:15 +0000)]
MFC 1.126:
  To prevent a race between RTM_DELETE message and
  arptimer() deleting stale entry, we need to lock
  rtentry before unlocking radix head.

Approved by: re (kensmith)

19 years agoMFC 1.139, that closes several races in ARP code. See original
glebius [Thu, 18 Aug 2005 10:14:22 +0000 (10:14 +0000)]
MFC 1.139, that closes several races in ARP code. See original
commit log for more information.

Approved by: re (kensmith)

19 years agoo Make rt_check() return a locked rtentry.
glebius [Thu, 18 Aug 2005 10:12:42 +0000 (10:12 +0000)]
o Make rt_check() return a locked rtentry.
o Make rt_check() function more strict:
  - rt0 passed to rt_check() must not be NULL, assert this.
  - rt returned by rt_check() must be valid locked rtentry,
    if no error occured.
o Modify callers, so that they never pass NULL rt0
  to rt_check().
o Modify callers, so that they unlock rtentry.

Revisions merged:

net/if_atmsubr.c - 1.39, 1.41
net/if_fwsubr.c - 1.13, 1.15
net/if_iso88025subr.c - 1.69, 1.71
net/route.c - 1.110, 1.111
netinet6/nd6.c - 1.51-1.53

netinet/if_ether.c intentionally not touched by this merge.

Approved by: re (kensmith)

19 years agoMFC: IPv6 stealth forwarding
suz [Thu, 18 Aug 2005 09:01:48 +0000 (09:01 +0000)]
MFC: IPv6 stealth forwarding
   Revision  Changes    Path
   1.39      +3 -1      src/sys/netinet6/in6.h
   1.35      +8 -0      src/sys/netinet6/in6_proto.c
   1.30      +8 -0      src/sys/netinet6/ip6_forward.c
   1.34      +3 -0      src/sys/netinet6/ip6_var.h

PR: kern/54625
Approved by: re(kensmith)

19 years agoMFC, rev 1.28:
ken [Thu, 18 Aug 2005 04:46:26 +0000 (04:46 +0000)]
MFC, rev 1.28:
Remove a reference to compute_stats(), since it is no longer documented at
least.

Submitted by: osa
Approved by: re (hrs)

19 years agoMFC: (1.26) Fixing a regression introduced in rev1.25 by honouring the errno.
avatar [Wed, 17 Aug 2005 14:35:20 +0000 (14:35 +0000)]
MFC: (1.26) Fixing a regression introduced in rev1.25 by honouring the errno.

This should keep 'ugidfw list' to stop complaining about "Data error in
security.mac.bsdextended.rules.N: Unknown error: 0" if there is a "hole"
within the rule set.

Approved by: re (hrs)

19 years agoMFC revision 1.149: Change the default partition sizes to provide more
cperciva [Wed, 17 Aug 2005 13:53:11 +0000 (13:53 +0000)]
MFC revision 1.149: Change the default partition sizes to provide more
space in /, /var, and /tmp, and if the device is large enough, provide
extra space to /var sufficient to store a crash dump.

Approved by: re (kensmith)

19 years agoMFC v1.125:
kensmith [Wed, 17 Aug 2005 13:32:29 +0000 (13:32 +0000)]
MFC v1.125:

>   Log:
>   The /stand directory now disappears out from under sysinstall while
>   it is running during installations.  The vsystem() function does get
>   used after this happens (e.g. if you manually configure the network
>   interface and ask it to enable the interface) so it needs to be a
>   little smarter about whether it uses /stand/sh or /bin/sh.

Approved by: re (hrs)

19 years agoMFC: ifconfig.8, r1.101
thompsa [Wed, 17 Aug 2005 02:27:08 +0000 (02:27 +0000)]
MFC: ifconfig.8, r1.101

> Document two missed if_bridge commands 'addr' and 'static'.

Approved by: re (hrs), mlaier (mentor)

19 years agoMFC: Pull in stuff from -current.
phk [Tue, 16 Aug 2005 22:49:11 +0000 (22:49 +0000)]
MFC: Pull in stuff from -current.

Approved by: re@

19 years agoMFC: fix a bug relating to multiple (>2) data sets.
phk [Tue, 16 Aug 2005 22:48:12 +0000 (22:48 +0000)]
MFC: fix a bug relating to multiple (>2) data sets.

Approved by: re@

19 years agoMFC: better facility for extracting and inspecting BIOS strings.
phk [Tue, 16 Aug 2005 22:47:14 +0000 (22:47 +0000)]
MFC: better facility for extracting and inspecting BIOS strings.

Approved by: re@

19 years agoMFC: use g_ctl for metadata modification if possible.
phk [Tue, 16 Aug 2005 22:46:05 +0000 (22:46 +0000)]
MFC: use g_ctl for metadata modification if possible.

Approved by: re@

19 years agoMFC: use g_ctl for modifying metadata if possible.
phk [Tue, 16 Aug 2005 22:45:33 +0000 (22:45 +0000)]
MFC: use g_ctl for modifying metadata if possible.

Approved by: re@

19 years agoMFC: Implement g_ctl api for metadata modification.
phk [Tue, 16 Aug 2005 22:44:39 +0000 (22:44 +0000)]
MFC: Implement g_ctl api for metadata modification.

Approved by: re@

19 years agoMFC: fix a tiny race in statistics collection.
phk [Tue, 16 Aug 2005 22:43:51 +0000 (22:43 +0000)]
MFC: fix a tiny race in statistics collection.

Approved by: re@

19 years agoMFC: Remove map3270 file, telnet3270 is long gone.
phk [Tue, 16 Aug 2005 22:42:46 +0000 (22:42 +0000)]
MFC: Remove map3270 file, telnet3270 is long gone.

Approved by: re@

19 years agoMFC: fix typo in debugging statement.
phk [Tue, 16 Aug 2005 22:41:39 +0000 (22:41 +0000)]
MFC: fix typo in debugging statement.

Approved by: re@

19 years agoMFC: Remove vttest program, it lives in ports.
phk [Tue, 16 Aug 2005 22:40:54 +0000 (22:40 +0000)]
MFC: Remove vttest program, it lives in ports.

Approved by: re@

19 years agoRemove paper about the Berkeley Pascal Runtime which we have never had
phk [Tue, 16 Aug 2005 22:39:27 +0000 (22:39 +0000)]
Remove paper about the Berkeley Pascal Runtime which we have never had
in FreeBSD because it was VAX specific.

Approved by: re@

19 years agoRemove pointless formatting date.
phk [Tue, 16 Aug 2005 22:36:54 +0000 (22:36 +0000)]
Remove pointless formatting date.

Approved by: re@

19 years agoMFC: rev. 1.11
brueffer [Tue, 16 Aug 2005 20:49:47 +0000 (20:49 +0000)]
MFC: rev. 1.11

- add missing ether_poll_deregister
- add per-device polling
- move the setting of if_capenable further down so that the
  VLAN caps are honored as well

Approved by: re (kensmith), ru

19 years agoThis commit was manufactured by cvs2svn to create branch 'RELENG_6'.
cvs2svn [Tue, 16 Aug 2005 19:08:02 +0000 (19:08 +0000)]
This commit was manufactured by cvs2svn to create branch 'RELENG_6'.

19 years agoMFC: share/man/man5/rc.conf.5 1.258,1.259,1.260
pjd [Tue, 16 Aug 2005 09:30:13 +0000 (09:30 +0000)]
MFC: share/man/man5/rc.conf.5 1.258,1.259,1.260
etc/defaults/rc.conf 1.255,1.256,1.257

- Remove gbde_swap_enable variable (it has no effect).
- Add geli_swap_flags variable which holds flags used by geli(8) when
  configuring GELI-encrypted swap partitions.
- Add variables used by rc.d/geli and rc.d/geli2 scripts.

Approved by: re (kensmith)

19 years agoMFC: etc/rc.d/Makefile 1.54,1.55
pjd [Tue, 16 Aug 2005 09:23:45 +0000 (09:23 +0000)]
MFC: etc/rc.d/Makefile 1.54,1.55

- Disconnect gbde_swap from the build.
- Connect encswap, geli and geli2 to the build.

Approved by: re (kensmith)

19 years agoMFC:
pjd [Tue, 16 Aug 2005 09:20:32 +0000 (09:20 +0000)]
MFC:
Add scripts for GELI device configuration on boot.

rc.d/geli - configures encryption (ask for passphrases, etc.);
rc.d/geli2 - is called after file systems are mounted and mark devices for
             detach on last close.

Approved by: re (kensmith)

19 years agoMerge if_var.h:1.100 from HEAD to RELENG_6:
rwatson [Tue, 16 Aug 2005 09:15:14 +0000 (09:15 +0000)]
Merge if_var.h:1.100 from HEAD to RELENG_6:

  Add if_addr_mtx to struct ifnet, a mutex to protect ifnet-related address
  lists.  Add accessor macros.

  This changes the size of struct ifnet, but ideally, all ifnet consumers
  are now using if_alloc() to allocate these structures rather than
  embedding them into device driver softc's, so this won't modify the
  network device driver ABI.

Approved by: re (hrs)

19 years agoMFC: etc/rc.subr 1.36
pjd [Tue, 16 Aug 2005 09:06:42 +0000 (09:06 +0000)]
MFC: etc/rc.subr 1.36

Add a function which creates list of devices for GELI-encryption.

Approved by: re (kensmith)

19 years agoMFC: Remove gbde_swap script and introduce encswap script, which knows how to
pjd [Tue, 16 Aug 2005 09:04:55 +0000 (09:04 +0000)]
MFC: Remove gbde_swap script and introduce encswap script, which knows how to
     encrypt swap partitions using both: gbde and geli.

Approved by: re (kensmith)

19 years agoMFC: sbin/geom/class/eli/geom_eli.c 1.2
pjd [Tue, 16 Aug 2005 09:02:22 +0000 (09:02 +0000)]
MFC: sbin/geom/class/eli/geom_eli.c 1.2

When keys were configured without passphrase, number of iterations in
metadata is equal to -1. if we then wanted to attach provider (or change
keys) and forget about '-p' flag it failed on assertion (quite ok, without
assertion it could call PKCS#5v2 with 4294967295 iterations).

Instead of failing on assertion, remind about '-p' flag.

Approved by: re (kensmith)

19 years agoMFC: sys/geom/eli/g_eli.h 1.2
pjd [Tue, 16 Aug 2005 09:00:24 +0000 (09:00 +0000)]
MFC: sys/geom/eli/g_eli.h 1.2

Be case-insensitive when dealing with algorithm names.

Submitted by: Benjamin Lutz <benlutz@datacomm.ch>
PR: kern/84659
Approved by: re (kensmith)

19 years agoMFC: sbin/geom/class/eli/geli.8 1.3
pjd [Tue, 16 Aug 2005 08:58:33 +0000 (08:58 +0000)]
MFC: sbin/geom/class/eli/geli.8 1.3
sys/geom/eli/g_eli.c 1.4,1.5

- GELI doesn't need cryptodev.
- Because code paths for I/O requests are quite complex, add comments above
  the functions which participate in I/O paths.

Approved by: re (kensmith)

19 years agoMFC: sbin/geom/core/geom.c 1.23
pjd [Tue, 16 Aug 2005 08:45:11 +0000 (08:45 +0000)]
MFC: sbin/geom/core/geom.c 1.23

Unfortunately dlerror(3) returns string, so there is no clean way to
ignore "no such file" errors only, which I wanted to do.
Because of this I ignored all other errors on dlopen(3) failure as well,
which isn't good.
Fix this situation by calling access(2) on library file first and ignore
only ENOENT error. This allows to report all the rest of dlopen(3) errors.

Approved by: re (kensmith)

19 years agoMFC: etc/rc.d/jail 1.25
pjd [Tue, 16 Aug 2005 08:43:06 +0000 (08:43 +0000)]
MFC: etc/rc.d/jail 1.25

Skip jails which are already running and inform why.
We're checking for /var/run/jail_<name>.id file and if it exists, we don't
start the jail. It should be also safe in case of reboot(8), because
rc.d/cleanvar script is going to remove /var/run/jail_* files.

It helps to avoid potential mess when the same jail is started twice,
because of an administrator mistake (been there, done that).

Approved by: re (kensmith)

19 years agoMFC: rc.d/cleanvar 1.10
pjd [Tue, 16 Aug 2005 08:41:30 +0000 (08:41 +0000)]
MFC: rc.d/cleanvar 1.10

Skip 'logpriv' socket when cleaning /var/.

Approved by: re (kensmith)

19 years agoMFC: rc.d/gbde 1.13
pjd [Tue, 16 Aug 2005 08:39:36 +0000 (08:39 +0000)]
MFC: rc.d/gbde 1.13
rc.subr 1.35

Move 'local_tr' function to rc.subr and change its name to 'ltr'.

Approved by: re (kensmith)

19 years agoMFC:
pjd [Tue, 16 Aug 2005 08:20:48 +0000 (08:20 +0000)]
MFC:
- Add code for Ext2FS and ReiserFS labels recognition.
- Avoid creating directories in devfs by changing all '/' in labels to '_'.

Submitted by: Stanislav Sedov <stas@310.ru>
PR: kern/84638
Approved by: re (kensmith)

19 years agoMFC: Add strcasecmp() and strncasecmp() to libkern and connect to the build.
pjd [Tue, 16 Aug 2005 08:11:00 +0000 (08:11 +0000)]
MFC: Add strcasecmp() and strncasecmp() to libkern and connect to the build.

Approved by: re (kensmith)

19 years agoPartial MFC rev 1.3:
marcel [Tue, 16 Aug 2005 03:29:22 +0000 (03:29 +0000)]
Partial MFC rev 1.3:
  o  Remove the obscure tid command, because it does what the thread
     command does, but worse.
  o  Move the PID to the extra thread info, where it makes sense and
     where it doesn't confuse users. The extra thread info holds some
     process information, to which the PID belongs.
  o  Implement the to_find_new_threads target method by having it call
     the target beneath us if we're not using KVM. This makes sure that
     new threads are found when using the remote target.

  o  Fix various core dump scenarios:
     -  Implement the to_files_info target method. Previously the
        'info target' command would cause a NULL pointer dereference.
     -  Don't assume there's a current thread. We're not initialized
        in all cases. This prevents a NULL pointer dereference.
     -  When we're not ussing KVM, have the to_xfer_memory target
        method call the target beneath us. This avoids calling into
        KVM with a NULL pointer.

Approved by: re (kensmith)

19 years agoMFC r1.7 "Sync usage message with the code and manual page".
jkoshy [Tue, 16 Aug 2005 02:03:48 +0000 (02:03 +0000)]
MFC r1.7 "Sync usage message with the code and manual page".

Approved by: re (kensmith)

19 years agoMFC 1.8:
marcel [Tue, 16 Aug 2005 00:29:26 +0000 (00:29 +0000)]
MFC 1.8:
o  As mentioned in the previous commit: make the KVM error buffer
   static.
o  Register a function with atexit(3) to close the KVM object if
   we have one open.
o  Show the unread portion of the kernel's message buffer before
   presenting the prompt. It's bound to provide some useful info.
o  Don't call kgdb_target() twice. It results in having all threads
   listed twice.

Approved by: re (hrs)

19 years agoMFC addition of portsnap to the base system plus subsequent enhancements
cperciva [Mon, 15 Aug 2005 20:24:08 +0000 (20:24 +0000)]
MFC addition of portsnap to the base system plus subsequent enhancements
and bug fixes.

Approved by: re (kensmith)

19 years agoMFC: reduce warnings when compiled under -W.
julian [Mon, 15 Aug 2005 20:04:28 +0000 (20:04 +0000)]
MFC:  reduce warnings when compiled under -W.

Obtained from: Sandvine inc.
Approved by:  re (ken)

19 years agoMFC { sys/dev/hwpmc/hwpmc_mod.c:1.13, sys/kern/kern_pmc.c:1.5,
jkoshy [Mon, 15 Aug 2005 18:46:13 +0000 (18:46 +0000)]
MFC { sys/dev/hwpmc/hwpmc_mod.c:1.13, sys/kern/kern_pmc.c:1.5,
    sys/sys/pmckern.h:1.5 }

Fail the module loading process if the currently executing kernel
was not compiled with 'options HWPMC_HOOKS' or if the compiled-in
version numbers of the kernel and module are not in sync.

Approved by: re (kensmith)

19 years agoMFC addition of bsdiff and bspatch to the base system, in order to
cperciva [Mon, 15 Aug 2005 18:34:21 +0000 (18:34 +0000)]
MFC addition of bsdiff and bspatch to the base system, in order to
allow them to be used by portsnap(8) in 6.0-RELEASE.

Approved by: re (kensmith)

19 years agoThis commit was manufactured by cvs2svn to create branch 'RELENG_6'.
cvs2svn [Mon, 15 Aug 2005 17:07:38 +0000 (17:07 +0000)]
This commit was manufactured by cvs2svn to create branch 'RELENG_6'.

19 years agoMFC r1.8 "Correctly print system-wide PMC counts for short-lived command lines".
jkoshy [Mon, 15 Aug 2005 15:33:59 +0000 (15:33 +0000)]
MFC r1.8 "Correctly print system-wide PMC counts for short-lived command lines".

Approved by: re (hrs)

19 years agoMFC: Check for marker pages when scanning active and inactive page queues.
tegge [Mon, 15 Aug 2005 14:28:48 +0000 (14:28 +0000)]
MFC: Check for marker pages when scanning active and inactive page queues.

Approved by: re (kensmith)

19 years agoMFC: Do not use vm_pager_init() to initialize vnode_pbuf_freecnt variable.
kan [Mon, 15 Aug 2005 14:04:47 +0000 (14:04 +0000)]
MFC: Do not use vm_pager_init() to initialize vnode_pbuf_freecnt variable.
vm_pager_init() is run before required nswbuf variable has been set
to correct value. This caused system to run with single pbuf available
for vnode_pager. Handle both cluster_pbuf_freecnt and vnode_pbuf_freecnt
variableis in the same way.

Approved by: re (kensmith)