]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
17 years agoMFC Rev. 1.64
suz [Fri, 29 Sep 2006 04:22:38 +0000 (04:22 +0000)]
MFC Rev. 1.64
 (fixed a bug that IPv6 packets arriving to stf are not accepted)

Approved by: re (kensmith)

17 years agoMFC: cp.1 1.34,1.35
julian [Fri, 29 Sep 2006 04:00:27 +0000 (04:00 +0000)]
MFC: cp.1 1.34,1.35
MFC: utils.c 1.47,1.48,1.49
MFC: extern.h 1.21
MFC: cp.c 1.54
Add an option to allow copying of a hierarchy while linking the regular files.
Bikeshedded to death on: hackers
Submitted by:andersonatcenttech.com
Approved by: re (ken)

17 years agoMFC rev 1.7
brooks [Fri, 29 Sep 2006 03:07:41 +0000 (03:07 +0000)]
MFC rev 1.7

  It is possible for bpf to return a length such that:

         length != BPF_WORDALIGN(length)

  This meeans that it is possible for this to be true:

         interface->rbuf_offset > interface->rbuf_len

  Handle this case in the test for running out of packets.  While
  OpenBSD's solution of setting interface->rbuf_len to
  BPF_WORDALIGN(length) is safe due to the size of the buffer, I think
  this solution results in less hidden assumptions.

  This should fix the problem of dhclient running away and consuming 100%
  CPU.

PR: bin/102226
Submitted by: Joost Bekkers <joost at jodocus.org>
Approved by: re (ken)

17 years agoMFC: add some preliminary ARM support
obrien [Fri, 29 Sep 2006 01:56:01 +0000 (01:56 +0000)]
MFC: add some preliminary ARM support

Approved by: re(KEN)

17 years agoMFC: rev 1.19: change platform name.
obrien [Fri, 29 Sep 2006 01:54:09 +0000 (01:54 +0000)]
MFC: rev 1.19: change platform name.

Approved by: re(KEN)

17 years agoMFC: default to big endian ARM if "TARGET_BIG_ENDIAN" is defined.
obrien [Fri, 29 Sep 2006 01:50:03 +0000 (01:50 +0000)]
MFC: default to big endian ARM if "TARGET_BIG_ENDIAN" is defined.

Approved by: re(KEN)

17 years agoMFC: rev 1.25: remove redundant defines alerady set.
obrien [Fri, 29 Sep 2006 01:44:25 +0000 (01:44 +0000)]
MFC: rev 1.25: remove redundant defines alerady set.

Approved by: re(KEN)

17 years agoWhitespace sync with HEAD.
obrien [Fri, 29 Sep 2006 01:30:37 +0000 (01:30 +0000)]
Whitespace sync with HEAD.

Approved by: re(ken)

17 years agoMFC: Make the tinybsd framework a peer of nanobsd and picobsd in the tree
julian [Thu, 28 Sep 2006 21:09:10 +0000 (21:09 +0000)]
MFC: Make the tinybsd framework a peer of nanobsd and picobsd in the tree
Some patches to come.
Approved by: re (ken)

17 years agoRe-word the description of the "async" flag.
danger [Thu, 28 Sep 2006 20:51:00 +0000 (20:51 +0000)]
Re-word the description of the "async" flag.

Suggested by: Milos Vyletel (mv@rulez.sk)
Approved by: re (bmah), keramida (mentor)

17 years agoremove reference to nonexistent pam(8) manual page.
danger [Thu, 28 Sep 2006 20:37:38 +0000 (20:37 +0000)]
remove reference to nonexistent pam(8) manual page.

Approved by: re (bmah), keramida (mentor)

17 years agoPartial MFC of v1.69 - adding info for 5.5-REL.
kensmith [Thu, 28 Sep 2006 18:35:26 +0000 (18:35 +0000)]
Partial MFC of v1.69 - adding info for 5.5-REL.

Approved by: re (hrs)

17 years agoMerge init_main.c:1.266, 1.267, copyright.h:1.22, 1.23 from HEAD to
rwatson [Thu, 28 Sep 2006 18:27:01 +0000 (18:27 +0000)]
Merge init_main.c:1.266, 1.267, copyright.h:1.22, 1.23 from HEAD to
RELENG_6:

  Add "FreeBSD" trademark statement to copyright section of boot
  messages.

  Approved by:    core, board at FreeBSDFoundation dot org

Approved by: re (bmah)

17 years agoMFC 1.44: Listen to a control socket on an IPv4 as well through
ume [Thu, 28 Sep 2006 15:57:10 +0000 (15:57 +0000)]
MFC 1.44: Listen to a control socket on an IPv4 as well through
an IPv4-mapped IPv6 address.

Approved by: re (kensmith)

17 years agoMFC: SA-06:21.gzip, SA-06:23.openssl.
bmah [Thu, 28 Sep 2006 15:42:02 +0000 (15:42 +0000)]
MFC:  SA-06:21.gzip, SA-06:23.openssl.

Approved by: re (implicitly)

17 years agoNew errata: SA-06:21.gzip, SA-06:23.openssl.
bmah [Thu, 28 Sep 2006 15:10:33 +0000 (15:10 +0000)]
New errata:  SA-06:21.gzip, SA-06:23.openssl.

Approved by: re (implicitly)

17 years agoMFC: id(1) -A, KDE 3.5.4.
bmah [Thu, 28 Sep 2006 14:51:42 +0000 (14:51 +0000)]
MFC:  id(1) -A, KDE 3.5.4.

Approved by: re (implicitly)

17 years agoCorrect multiple vulnerabilities in crypto(3).
cperciva [Thu, 28 Sep 2006 13:02:36 +0000 (13:02 +0000)]
Correct multiple vulnerabilities in crypto(3).
Limit the size of public keys used in order to protect applications
from a denial of service via insane key sizes.

Security: FreeBSD-SA-06:23.openssl
Approved by: re (htimsnek)

17 years agoMFC: The kvm_mkdb(8) is long dead.
delphij [Thu, 28 Sep 2006 01:59:30 +0000 (01:59 +0000)]
MFC: The kvm_mkdb(8) is long dead.

Approved by: re (kensmith)
Originally by: ru

17 years agoMFC
alc [Wed, 27 Sep 2006 18:10:16 +0000 (18:10 +0000)]
MFC
  Correct a very old and very obscure bug: vmspace_fork() calls
  pmap_copy() if the mapping is VM_INHERIT_SHARE.  Suppose the mapping
  is also wired.  vmspace_fork() clears the wiring attributes in the vm
  map entry but pmap_copy() copies the PG_W attribute in the PTE.  I
  don't think this is catastrophic.  It blocks pmap_remove_pages() from
  destroying the mapping and corrupts the pmap's wiring count.

  This revision fixes the problem by changing pmap_copy() to clear the
  PG_W attribute.

Approved by: re (mux)

17 years agoMFC: Revert back to using *(int *)arg when accessing integer ioctl
ru [Wed, 27 Sep 2006 15:32:04 +0000 (15:32 +0000)]
MFC: Revert back to using *(int *)arg when accessing integer ioctl
arguments.  For now, this is a work-around only, as sparc64 remains
broken for these ioctls, but it makes keyboard ioctls for little
endian LP64 platforms such as amd64 work again when using kbdmux
(it is used in the GENERIC kernel).  A one true fix for all is in
works, and will be committed to -CURRENT shortly.

Approved by: re (kensmith)

17 years agoMFC 1.34: Connect QFULL events up with decreasing openings.
mjacob [Wed, 27 Sep 2006 15:30:46 +0000 (15:30 +0000)]
MFC 1.34: Connect QFULL events up with decreasing openings.

Approved by: re (mux)

17 years agoMFC rev. 1.55: document 'make quicksearch'.
maxim [Wed, 27 Sep 2006 10:48:35 +0000 (10:48 +0000)]
MFC rev. 1.55: document 'make quicksearch'.

Approved by: re (mux)

17 years agoMFC rev. 1.456: s/IP_FIREWALL_FORWARD/IPFIREWALL_FORWARD/.
maxim [Wed, 27 Sep 2006 10:46:41 +0000 (10:46 +0000)]
MFC rev. 1.456: s/IP_FIREWALL_FORWARD/IPFIREWALL_FORWARD/.

Approved by: re (mux)

17 years agoMerge auditd:1.3 from HEAD to RELENG_6:
rwatson [Wed, 27 Sep 2006 10:08:47 +0000 (10:08 +0000)]
Merge auditd:1.3 from HEAD to RELENG_6:

  Sleep for one second after calling audit -t to give the audit daemon a
  chance to actually terminate the audit service and exit.  Otherwise, on
  an rc.d/auditd restart, the new audit daemon instance may try to start
  auditing while the previous session is still running.  Likewise, this
  ensures a chance for auditd to terminate the audit trail at system
  shutdown.

  Perhaps more ideally, the script would wait synchronously for auditd to
  exit rather than for an arbitrary but short period of time.

  Obtained from:  TrustedBSD Project

Approved by: re (mux)

17 years agoMerge audit_worker.c:1.12 from HEAD to RELENG_6:
rwatson [Wed, 27 Sep 2006 10:08:03 +0000 (10:08 +0000)]
Merge audit_worker.c:1.12 from HEAD to RELENG_6:

  Rework the way errors are handled with respect to how audit records are
  written to the audit trail file:

  - audit_record_write() now returns void, and all file system specific
    error handling occurs inside this function.  This pushes error handling
    complexity out of the record demux routine that hands off to both the
    trail and audit pipes, and makes trail behavior more consistent with
    pipes as a record destination.

  - Rate limit kernel printfs associated with running low on space.  Rate
    limit audit triggers for low space.  Rate limit printfs for fail stop
    events.  Rate limit audit worker write error printfs.

  - Document in detail the types of limits and space checks we perform, and
    combine common cases.

  This improves the audit subsystems tolerance to low space conditions by
  avoiding toasting the console with printfs are waking up the audit daemon
  continuously.

  Obtained from:  TrustedBSD Project

Approved by: re (mux)

17 years agos/predefine/predefined/
delphij [Wed, 27 Sep 2006 09:28:54 +0000 (09:28 +0000)]
s/predefine/predefined/

PR: gnu/86627
Submitted by: Arne Woerner <arne_woerner at yahoo dot com>
Approved by: re (mux)

17 years agoMFC udp_usrreq.c:1.180 and tcp_usrreq.c:1.128 :
mux [Wed, 27 Sep 2006 09:24:44 +0000 (09:24 +0000)]
MFC udp_usrreq.c:1.180 and tcp_usrreq.c:1.128 :

  Fix a bunch of SYSCTL_INT() that should have been SYSCTL_ULONG() to
  match the type of the variable they are exporting.

  Spotted by:     Thomas Hurst <tom@hur.st>

Approved by: re@ (rwatson)
Forgotten by: mux

17 years agoMFC revision 1.38
alc [Wed, 27 Sep 2006 04:53:40 +0000 (04:53 +0000)]
MFC revision 1.38
  The sparc64/sparc64/pmap.c implementations of pmap_remove(),
  pmap_protect(), and pmap_copy() have optimizations for regions
  larger than PMAP_TSB_THRESH (which works out to 16MB).  This
  caused a panic in tsb_foreach for kernel mappings, since
  pm->pm_tsb is NULL in that case.  This fix teaches tsb_foreach
  to use the kernel's tsb in that case.

Approved by: re (mux)

17 years agoMFC rev 1.422: Hold reference on mountpoint slightly longer in
tegge [Wed, 27 Sep 2006 00:42:42 +0000 (00:42 +0000)]
MFC rev 1.422: Hold reference on mountpoint slightly longer in
               kern_fhstatfs()

Approved by: re (kensmith)

17 years agoMFC rev 1.134: Handle reclaimed vnode in VOP_GETWRITEMOUNT()
tegge [Wed, 27 Sep 2006 00:41:50 +0000 (00:41 +0000)]
MFC rev 1.134: Handle reclaimed vnode in VOP_GETWRITEMOUNT()

Approved by: re (kensmith)

17 years agoMFC rev 1.419 and 1.420: Hold reference on mountpoint slightly longer in
tegge [Wed, 27 Sep 2006 00:40:59 +0000 (00:40 +0000)]
MFC rev 1.419 and 1.420: Hold reference on mountpoint slightly longer in
                 kern_statfs() and kern_fstatfs()

Approved by: re (kensmith)

17 years agoMFC rev 1.226: Unbusy mount before destruction.
tegge [Wed, 27 Sep 2006 00:40:11 +0000 (00:40 +0000)]
MFC rev 1.226: Unbusy mount before destruction.

Approved by: re (kensmith)

17 years agoMFC rev 1.221 : Print dangling vnodes before panic at unmount.
tegge [Wed, 27 Sep 2006 00:39:19 +0000 (00:39 +0000)]
MFC rev 1.221 : Print dangling vnodes before panic at unmount.

Approved by: re (kensmith)

17 years agoMFC: Release references acquired by VOP_GETWRITEMOUNT() and vfs_getvfs().
tegge [Wed, 27 Sep 2006 00:37:46 +0000 (00:37 +0000)]
MFC: Release references acquired by VOP_GETWRITEMOUNT() and vfs_getvfs().

Approved by: re (kensmith)

17 years agoMFC rev 1.667: vfs_busy() holds reference on mount until vfs_unbusy()
tegge [Wed, 27 Sep 2006 00:36:10 +0000 (00:36 +0000)]
MFC rev 1.667: vfs_busy() holds reference on mount until vfs_unbusy()
               is called.
               vfs_getvfs() returns a referenced mount.

Approved by: re (kensmith)

17 years agoMFC rev 1.133: VOP_GETWRITEMOUNT() returns a referenced mount.
tegge [Wed, 27 Sep 2006 00:34:51 +0000 (00:34 +0000)]
MFC rev 1.133: VOP_GETWRITEMOUNT() returns a referenced mount.

Approved by: re (kensmith)

17 years agoMFC rev 1.220: Make struct mount type stable.
tegge [Wed, 27 Sep 2006 00:33:31 +0000 (00:33 +0000)]
MFC rev 1.220: Make struct mount type stable.

Approved by: re (kensmith)

17 years agoMFC rev 1.209: Prepare for type stable struct mount.
tegge [Wed, 27 Sep 2006 00:32:36 +0000 (00:32 +0000)]
MFC rev 1.209: Prepare for type stable struct mount.

Approved by: re (kensmith)

17 years agoRevert 1.17.2.8, it causes some problems.
sobomax [Tue, 26 Sep 2006 19:12:11 +0000 (19:12 +0000)]
Revert 1.17.2.8, it causes some problems.

Approved by: re
Reported by: glebius

17 years agoMFC: Add an explicit bus_add_child method for smbus(4).
jhb [Tue, 26 Sep 2006 18:44:56 +0000 (18:44 +0000)]
MFC: Add an explicit bus_add_child method for smbus(4).

Approved by: re (kensmith)

17 years agoBack out rev 1.242.2.13 as it introduces a potentially expensive hash lookup
bms [Tue, 26 Sep 2006 18:28:38 +0000 (18:28 +0000)]
Back out rev 1.242.2.13 as it introduces a potentially expensive hash lookup
to the ip output path. A better way needs to be found to resolve this.

Approved by: re@

17 years agoRevert 1.17.2.8, which reportedly causes problems on some hardware.
sobomax [Tue, 26 Sep 2006 16:08:29 +0000 (16:08 +0000)]
Revert 1.17.2.8, which reportedly causes problems on some hardware.

Approved by: re
Reported by: glebius

17 years agoMFC
brooks [Tue, 26 Sep 2006 02:17:43 +0000 (02:17 +0000)]
MFC

pccard_ether rev 1.51:
    Search the list of up interfaces provided by "ifconfig -ul" instead of
    greping for UP in "ifconfig $ifn".  This eliminates a dependancy on /usr.

pccard_ether rev 1.53 and network.subr rev 1.173:
  Introduce a new method ipv6if which attemptes to figure out if an
  interface is an IPv6 interface.

  Use this method to decide if we should attempt to configure an interface
  with an IPv6 address in pccard_ether.  The mechanism pccard_ether uses
  to do this is unsuited to the task because it assumes the list of
  interfaces it is passed is the full list of IPv6 interfaces and makes
  decissions based on that.  This is at least a step in the right
  direction and is probably about as much as we can MFC safely.

PR: conf/103428
Approved by: re (hrs)

17 years agoMFC rev 1.10
brooks [Tue, 26 Sep 2006 02:15:15 +0000 (02:15 +0000)]
MFC rev 1.10

  network_ipv6 also does some interface configuration so require it to
  run before starting devd so they don't trip over each other.

PR: conf/103428
Approved by: re (hrs)

17 years agoMerge Makefile:1.12, id.1:1.16,1.17, id.c:1.28,1.29 from HEAD to RELENG_6:
rwatson [Tue, 26 Sep 2006 02:12:05 +0000 (02:12 +0000)]
Merge Makefile:1.12, id.1:1.16,1.17, id.c:1.28,1.29 from HEAD to RELENG_6:

  Add a -a argument to id(1), which causes id(1) to print out process
  audit properties, including the audit user id.  This can be quite
  helpful in debugging audit problems.

  Obtained from:  TrustedBSD Project

  Rename "-a" flag to "-A" in order to avoid conflicting with the "-a" flag
  as found on Solaris.

  Requested by:   ceri

Approved by: re (hrs)

17 years agoMFC 1.13-1.15
ache [Mon, 25 Sep 2006 17:19:28 +0000 (17:19 +0000)]
MFC 1.13-1.15

Approved by:    re (hrs)

17 years agoMFC v1.2
ache [Mon, 25 Sep 2006 17:12:20 +0000 (17:12 +0000)]
MFC v1.2

PR:             88222
Approved by: re (bmah)

17 years agoMFC rev 1.311: Allow 16 byte memory mapped I/O ranges.
marcel [Mon, 25 Sep 2006 15:49:51 +0000 (15:49 +0000)]
MFC rev 1.311: Allow 16 byte memory mapped I/O ranges.

Approved by: re (hrs)

17 years agoMFC: Account for output IP datagrams on the ifaddr where they will
bms [Mon, 25 Sep 2006 13:02:58 +0000 (13:02 +0000)]
MFC: Account for output IP datagrams on the ifaddr where they will
be sent from, not the first ifaddr on the ifp.

PR: kern/72936
Submitted by: alfred
Reviewed by: andre
Approved by: re@

17 years agoMFC: Fix an incompatibility between CARP and IPv4 multicast routing, whereby
bms [Mon, 25 Sep 2006 13:01:59 +0000 (13:01 +0000)]
MFC: Fix an incompatibility between CARP and IPv4 multicast routing, whereby
advertisements originate from the wrong source address. This only affects
MROUTING kernels.

PR: kern/100532
Submitted by: Bohus Plucinsky
Approved by: re@

17 years agoMFC: upgrade to 1.2.3.
des [Mon, 25 Sep 2006 11:16:58 +0000 (11:16 +0000)]
MFC: upgrade to 1.2.3.

Approved by: re (hrs)

17 years agoMFC rev 1.36 to RELENG_6:
thomas [Mon, 25 Sep 2006 10:05:37 +0000 (10:05 +0000)]
MFC rev 1.36 to RELENG_6:
(pw_copy): Handle the case of a malformed line in master.passwd
 (copy it silently, do not dereference NULL pointer).

MFC rev. 1.37 to RELENG_6:
Minor comment fix to the change above.

PR: bin/102848
Approved by: re (hrs)

17 years agoMFC: vendor patch for BSM problem in protocol version 1.
des [Mon, 25 Sep 2006 09:37:35 +0000 (09:37 +0000)]
MFC: vendor patch for BSM problem in protocol version 1.

Approved by: re (mux)

17 years agoMFC: Bring GCC manpages back to reality.
ru [Mon, 25 Sep 2006 06:19:41 +0000 (06:19 +0000)]
MFC: Bring GCC manpages back to reality.

Approved by: re (kensmith)

17 years agoMFC r1.81
thompsa [Mon, 25 Sep 2006 04:01:20 +0000 (04:01 +0000)]
MFC r1.81
 Revert r1.11.2.38 as the ethernet header was inadvertently stripped from ARP
 packets. Reimplement this correctly and use a sysctl that defaults to off so
 the user doesnt get any suprises if ipfw blocks the ARP packet.

Approved by: re (hrs)

17 years agoMFC:
emax [Mon, 25 Sep 2006 02:53:32 +0000 (02:53 +0000)]
MFC:

Do not try to call keyboard callback unless keyboard is active and busy.
This should fix 'kbdcontrol -K < /dev/console' panic on sparc64 with sunkbd(4).

PR: sparc64/96798
Approved by: re (hrs)

17 years agoMFC:
emax [Sun, 24 Sep 2006 16:02:32 +0000 (16:02 +0000)]
MFC:

Make op parameter to mux_keyboard() u_int instead of int.
This should fix sparc64 messages like

Sep 15 11:17:39 peahi kernel: WARNING pid 5477 (kbdcontrol): ioctl sign-extension ioctl ffffffff80244b45

PR: sparc64/96798
Approved by: re (hrs)

17 years agoMFC 1.106: Fix a number of cases where ugen would panic, especially
iedowse [Sun, 24 Sep 2006 14:55:48 +0000 (14:55 +0000)]
MFC 1.106: Fix a number of cases where ugen would panic, especially
when the device went away while open or if you tried to change the
config number while devices were open.

Approved by: re (hrs)

17 years agoMFC 1.152:
delphij [Sun, 24 Sep 2006 14:35:26 +0000 (14:35 +0000)]
MFC 1.152:

When the volume is being downgraded from a read-write mode, mark
it as clean.

PR:             kern/85366
Submitted by:   Dan Lukes <dan at obluda dot cz>
Approved by: re (hrs)

17 years agoMFC 1.42, 1.43: Let the EHCI hardware track the toggle state for
iedowse [Sun, 24 Sep 2006 13:39:04 +0000 (13:39 +0000)]
MFC 1.42, 1.43: Let the EHCI hardware track the toggle state for
bulk and interrupt transfers. This fixes some cases where the
software toggle tracking was not doing the right thing. For example,
a short transfer that transferred 0 bytes of the requested qTD
transfer size does cause a toggle change, but the existing code was
assuming it didn't.

Approved by: re (mux)

17 years agoBump .Dd.
ceri [Sat, 23 Sep 2006 22:01:51 +0000 (22:01 +0000)]
Bump .Dd.

Reminded by: ru
Approved by: re (implicit)

17 years agoMFC 1.165: New Dell 1950/2950 SES backplane drops off
mjacob [Sat, 23 Sep 2006 18:42:08 +0000 (18:42 +0000)]
MFC 1.165: New Dell 1950/2950 SES backplane drops off
the bus if you poke at greater then lun 0.

Approved by: re (hrs)

17 years agoMerge audit_bsm_token.c:1.8 from HEAD to RELENG_6:
rwatson [Sat, 23 Sep 2006 16:26:02 +0000 (16:26 +0000)]
Merge audit_bsm_token.c:1.8 from HEAD to RELENG_6:

  Add missing white space in au_to_exec_{args,env}().

Approved by: re (hrs)

17 years agoMFC:
ceri [Sat, 23 Sep 2006 15:34:23 +0000 (15:34 +0000)]
MFC:
     src/usr.bin/truncate/truncate.1         r1.33
     src/usr.bin/truncate/truncate.c         r1.10 through r1.11

Approved by: re (hrs), pjd

17 years agoMFC rev. 1.20
mbr [Sat, 23 Sep 2006 15:02:39 +0000 (15:02 +0000)]
MFC rev. 1.20

Fix unpaired sigblock which possibly leaves the process with all
signals blocked.

Approved by: re

17 years agoMFC rev. 1.187:
netchild [Sat, 23 Sep 2006 10:36:57 +0000 (10:36 +0000)]
MFC rev. 1.187:
  - don't reboot() when feed with wrong parameters (and enough permissions) [1]
  - add support to power off the system [2]
  - check the linux magic values [3]

  Submitted by: Marcin Cieslak <saper@SYSTEM.PL> [1,2]
  Modelled after: linux man page of the reboot() syscall [3]
  Found by: LTP testcase "reboot02" [1]
  Tested with: LTP testcase "reboot02" [1,3]

Approved by: re (hrs)

17 years agoMFC: sys/geom/label/g_label_ufs.c 1.11
pjd [Sat, 23 Sep 2006 09:58:50 +0000 (09:58 +0000)]
MFC: sys/geom/label/g_label_ufs.c 1.11

Fix detecting of UFS1 label when mediasize%fragsize != 0.

Submitted by: Stanislav Sedov
PR: kern/84637
Approved by: re (hrs)

17 years agoMFC: v1.314 pci.c
jmg [Sat, 23 Sep 2006 03:33:17 +0000 (03:33 +0000)]
MFC: v1.314 pci.c
  spell PCIS_CRYPTO_ENTERTAIN properly...

Approved by: re (bmah)

17 years agoThis commit was manufactured by cvs2svn to create branch 'RELENG_6'.
cvs2svn [Fri, 22 Sep 2006 22:11:30 +0000 (22:11 +0000)]
This commit was manufactured by cvs2svn to create branch 'RELENG_6'.

17 years agoMFC: Minor overhaul of SMBus support including:
jhb [Fri, 22 Sep 2006 19:19:16 +0000 (19:19 +0000)]
MFC: Minor overhaul of SMBus support including:
- Changing the smbus_bread() function in the smbus interface to return the
  actual number of bytes read.
- Changing the SMB_BREAD ioctl of /dev/smbX to return the actual number of
  bytes read.
- Attaching smb(4) to smbus(4) via an identify routine.
- Adding locking to smbus(4).
- Fixing the bread() and bwrite() methods of alpm(4), amdpm(4), and
  viapm(4) to only perform a single transaction.
- Fix several buffer overflows with bread() and SMB_BREAD.

Approved by: re (mux)

17 years agoMFC: Fix rman_manage_region() to detect overlaps and coallesce adjacent
jhb [Fri, 22 Sep 2006 19:04:51 +0000 (19:04 +0000)]
MFC: Fix rman_manage_region() to detect overlaps and coallesce adjacent
free regions.

Approved by: re (mux)

17 years agoMFC: Add bus_generic_add_child().
jhb [Fri, 22 Sep 2006 18:49:14 +0000 (18:49 +0000)]
MFC: Add bus_generic_add_child().

Approved by: re (mux)

17 years agoMerge audit_bsm.c:1.14 from HEAD to RELENG_6:
rwatson [Fri, 22 Sep 2006 13:50:58 +0000 (13:50 +0000)]
Merge audit_bsm.c:1.14 from HEAD to RELENG_6:

  Rather than allocating all buffer memory for the completed BSM record
  when allocating the record in the first place, allocate the final buffer
  when closing the BSM record.  At that point, more size information is
  available, so a sufficiently large buffer can be allocated.

  This allows the kernel to generate audit records in excess of
  MAXAUDITDATA bytes, but is consistent with Solaris's behavior.  This only
  comes up when auditing command line arguments, in which case we presume
  the administrator really does want the data as they have specified the
  policy flag to gather them.

  Obtained from:  TrustedBSD Project

Approved by: re (mux)

17 years agoMFC:
marck [Fri, 22 Sep 2006 11:55:14 +0000 (11:55 +0000)]
MFC:
   Clean obsolete reference to the old NMBCLUSTERS kernel option.
   It seems the last reference (modulo manual pages where such obsoleteness
   clearly highlighted).

   Revision  Changes    Path
   1.19      +0 -1      src/release/picobsd/bridge/PICOBSD

Approved by: re (kensmith)

17 years agoMFC the birthtime modification support from -HEAD.
ceri [Fri, 22 Sep 2006 11:20:10 +0000 (11:20 +0000)]
MFC the birthtime modification support from -HEAD.

Approved by: re (hrs)

17 years agoMerge Makefile:1.4 from HEAD to RELENG_6:
rwatson [Fri, 22 Sep 2006 08:38:02 +0000 (08:38 +0000)]
Merge Makefile:1.4 from HEAD to RELENG_6:

  Hook up au_open.3 man page (and its symlinks), apparently missed during
  initial OpenBSM merge.

  Obtained from:  TrustedBSD Project

Approved by: re (mux)

17 years agoMFC revision 1.80 su.c
csjp [Fri, 22 Sep 2006 02:29:54 +0000 (02:29 +0000)]
MFC revision 1.80 su.c
MFC revision 1.41 Makefile

  Log:
  Integrate audit_submit(3) bits into su. This means that records for
  successful and failed su attempts will be recorded using the AUE_su
  event type (login or lo class) if auditing is present in the system.
  Currently, the records will have a header, subject, text (with the
  actual diagnostics), a return and trailer token.

This should conclude the userspace audit bits for 6.2, there will be
a lot more to come in future releases!

Reviewed by: rwatson, cperciva
Approved by: re@ (mux)

17 years agoMFC rev 1.25:
dwhite [Fri, 22 Sep 2006 01:05:30 +0000 (01:05 +0000)]
MFC rev 1.25:
   Avoid an infinite loop in empty_both_buffers() by adding a timeout.
   This helps systems that don't actually have atkbd controllers, such as
   the Intel SBX82 blade, boot without device.hints hacks.

PR:             94822
Submitted by:   Devon H. O'Dell <devon.odell@coyotepoint.com>
Approved by: re

17 years agoMFC: rev. 1.116
brueffer [Thu, 21 Sep 2006 19:27:04 +0000 (19:27 +0000)]
MFC: rev. 1.116

Document the bluetooth/, rc.d/, security/ and ssh/ etc subdirectories.

Approved by: re (bmah)

17 years agoMFC revision 1.290
csjp [Thu, 21 Sep 2006 15:14:08 +0000 (15:14 +0000)]
MFC revision 1.290

Hopefully close up race between the TTY (t_session) subsystem and exit(2)

date: 2006/09/13 15:47:53;  author: csjp;  state: Exp;  lines: +2 -2
Back out one of the Giant removals from revision 1.272. Giant was not here to
protect the vnode, it was present to synchronize access to TTY session
information between exit(2) and the TTY code. While we are here, note that
Giant is required for TTY protection.

Clue from: bde
Discussed with: jhb
Approved by: re@ (mux)

17 years agoMFC: 1.23: With minidumps, the dumping partition could be smaller
ru [Thu, 21 Sep 2006 14:21:40 +0000 (14:21 +0000)]
MFC: 1.23: With minidumps, the dumping partition could be smaller
than physical memory, so checking the size of the partition is not
necessary.

Approved by: re (kensmith)

17 years agoRegenerate.
rwatson [Thu, 21 Sep 2006 14:06:49 +0000 (14:06 +0000)]
Regenerate.

Approved by: re (mux)

17 years agoMerge audit event assignments for 32-bit FreeBSD binary compatibility
rwatson [Thu, 21 Sep 2006 14:06:19 +0000 (14:06 +0000)]
Merge audit event assignments for 32-bit FreeBSD binary compatibility
from HEAD to RELENG_6: syscalls.master:1.63, 1.72, 1.73, 1.75.  With
this change, 6.x 32-bit binary compatibility will also generate system
call audit events.

Approved by: re (mux)

17 years agoMerge audit_bsm.c:1.12 from HEAD to RELENG_6:
rwatson [Thu, 21 Sep 2006 11:20:28 +0000 (11:20 +0000)]
Merge audit_bsm.c:1.12 from HEAD to RELENG_6:

  Add AUE_SYSARCH to the list of audit events during BSM conversion to
  prevent a console warning.  Eventually, we will capture more arguments
  for sysarch.

  Obtained from:  TrustedBSD Project

Approved by: re (mux)

17 years agoMFC if_re.c 1.73 to RELENG_6.
yongari [Thu, 21 Sep 2006 11:08:28 +0000 (11:08 +0000)]
MFC if_re.c 1.73 to RELENG_6.
  Make 8139C+ work again which was broken since rev 1.68.
  Ever since rev 1.68 re(4) checks the validity of link in re_start.
  But rlphy(4) got a garbled data due to a different bit layout used on
  8139C+ and it couldn't report correct link state. To fix it, ignore
  BMCR_LOOP and BMCR_ISO bits which have different meanings on 8139C+.
  I think this also make dhclient(8) work on 8139C+.

Approved by: re (mux)

17 years agoMFC r1.80
thompsa [Wed, 20 Sep 2006 21:26:19 +0000 (21:26 +0000)]
MFC r1.80
 Rearrange things so that ARP packets can be filtered or rate limited with IPFW.

Approved by: re (kensmith)

17 years agoMFC: 1.98
jhay [Wed, 20 Sep 2006 19:20:19 +0000 (19:20 +0000)]
MFC: 1.98
Check the length of the ipv4 and ipv6 address lists. It must be less
than F_LEN_MASK.

Approved by: re (hrs)

17 years agoMFC: 1.97
jhay [Wed, 20 Sep 2006 19:18:03 +0000 (19:18 +0000)]
MFC: 1.97
Use bzero() to clear the whole ipfw_insn_icmp6 structure in fill_icmp6types(),
otherwise this command

ipfw add allow ipv6-icmp from any to 2002::1 icmp6types 1,2,128,129

turns into icmp6types 1,2,32,33,34,...94,95,128,129

PR: 102422 (part 1)
Submitted by: Andrey V. Elsukov <bu7cher at yandex.ru>
Approved by: re (hrs)

17 years agoMFC: 1.147
jhay [Wed, 20 Sep 2006 19:15:03 +0000 (19:15 +0000)]
MFC: 1.147
Handle a list of IPv6 src and dst addresses correctly, eg.
ipfw add allow ip6 from any to 2000::/16,2002::/16

PR: 102422 (part 3)
Submitted by: Andrey V. Elsukov <bu7cher at yandex dot ru>
Approved by: re (hrs)

17 years agoMFC: 1.67
jhay [Wed, 20 Sep 2006 19:10:18 +0000 (19:10 +0000)]
MFC: 1.67
Make it possible to add an IPv6 host route to a host directly connected.

Use something like this:
route add -inet6 <dest_addr> <my_addr_on_that_interface> -interface -llinfo

This is usefull for wireless adhoc mesh networks.

Approved by: re (hrs)

17 years agoMFC audit work which fully implements processing of user supplied records
csjp [Wed, 20 Sep 2006 17:07:11 +0000 (17:07 +0000)]
MFC audit work which fully implements processing of user supplied records

  Log:
   Correct a slight regression which was introduced with the implementation of
   audit pipes. If the kernel record was not selected for the trail or the pipe,
   any user supplied record attached to it would be tossed away, resulting in
   otherwise selected events being lost.

   - Introduce two new masks: AR_PRESELECT_USER_TRAIL AR_PRESELECT_USER_PIPE,
     currently we have AR_PRESELECT_TRAIL and AR_PRESELECT_PIPE, which tells
     the audit worker that we are interested in the kernel record, with
     the additional masks we can determine if either the pipe or trail is
     interested in seeing the kernel or user record.

   - In audit(2), we unconditionally set the AR_PRESELECT_USER_TRAIL and
     AR_PRESELECT_USER_PIPE masks under the assumption that userspace has
     done the preselection [1].

   Currently, there is work being done that allows the kernel to parse and
   preselect user supplied records, so in the future preselection could occur
   in either layer. But there is still a few details to work out here.

   [1] At some point we need to teach au_preselect(3) about the interests of
       all the individual audit pipes.

Approved by: re@ (kensmith)

17 years agoMFC audit_bsm.c revision 1.13
csjp [Wed, 20 Sep 2006 17:04:04 +0000 (17:04 +0000)]
MFC audit_bsm.c revision 1.13

Convert audit record for lutimes(2)

Approved by: re@ (kensmith)

17 years agoMFC: don't account ticks of the disabled HTT cores as idle time.
sobomax [Wed, 20 Sep 2006 00:10:30 +0000 (00:10 +0000)]
MFC: don't account ticks of the disabled HTT cores as idle time.

Approved by: re

17 years agoMFC: Add a new ddb command 'show lapic'.
jhb [Tue, 19 Sep 2006 19:10:08 +0000 (19:10 +0000)]
MFC: Add a new ddb command 'show lapic'.

Approved by: re (bmah)

17 years agoMFC: Give the ACPI I/O rman's unique description strings.
jhb [Tue, 19 Sep 2006 19:08:52 +0000 (19:08 +0000)]
MFC: Give the ACPI I/O rman's unique description strings.

Approved by: re (bmah)

17 years agoMFC the firewall labeling changes.
csjp [Tue, 19 Sep 2006 15:45:22 +0000 (15:45 +0000)]
MFC the firewall labeling changes.

This fixes kernel panics which occur when the firewall sends out a packet.
This can happen for keep alives, or instances when the firewall is
configured to return RST or ICMP unreach packets. These panics occured
only if MLS, BIBA or LOMAC security policies were loaded.

Approved by: re@ (kensmith)
Submitted by: mlaier (with changes)

17 years agoCorrect multiple vulnerabilities in gzip(1).
simon [Tue, 19 Sep 2006 14:02:30 +0000 (14:02 +0000)]
Correct multiple vulnerabilities in gzip(1).

Security: FreeBSD-SA-06:21.gzip
Approved by: re (kensmith, bmah)

17 years agoWith recent MFC the tcp_twclose() can be converted to void,
glebius [Tue, 19 Sep 2006 12:58:40 +0000 (12:58 +0000)]
With recent MFC the tcp_twclose() can be converted to void,
as it is in HEAD.

Submitted by: ru
Approved by: re (mux)

17 years agoMerge ia32_trap.c:1.13, ia64/trap.c:1.124, and powerpc/trap.c:1.62 from
rwatson [Tue, 19 Sep 2006 12:38:08 +0000 (12:38 +0000)]
Merge ia32_trap.c:1.13, ia64/trap.c:1.124, and powerpc/trap.c:1.62 from
HEAD to RELENG_6:

  Add audit hooks for ppc, ia64 system call paths.

  Reviewed by:    marcel (ia64)
  Obtained from:  TrustedBSD Project

Approved by: re (mux)