]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
17 years agoMerge syscalls.master:1.229 from HEAD to RELENG_6:
rwatson [Tue, 10 Oct 2006 13:19:47 +0000 (13:19 +0000)]
Merge syscalls.master:1.229 from HEAD to RELENG_6:

  Audit creat() system call (compat code), and change type for getpagesize(),
  which isn't actually being audited anyway.

  Obtained from:  TrustedBSD Project

Approved by: re (kensmith)

17 years agoMerge audit_bsm.c:1.15 from HEAD to RELENG_6:
rwatson [Tue, 10 Oct 2006 13:11:32 +0000 (13:11 +0000)]
Merge audit_bsm.c:1.15 from HEAD to RELENG_6:

  Add BSM conversion switch entries for a number of system calls, many
  administrative, to prevent console warnings and enable basic event
  auditing (generally without arguments).

  Obtained from:  TrustedBSD Project

Approved by: re (kensmith)

17 years agoMFC: Restore the behavior that net.inet6.ip6.auto_linklocal=0 could
ume [Tue, 10 Oct 2006 12:41:05 +0000 (12:41 +0000)]
MFC: Restore the behavior that net.inet6.ip6.auto_linklocal=0 could
be coexist with ipv6_enable="YES".

etc/network.subr: 1.175
etc/rc.d/Makefile: 1.77
etc/rc.d/auto_linklocal: 1.1

Approved by: re (hrs)

17 years agoMFC 1.63: Put a bit of hysteresis into both BUSY SCSI status returns
mjacob [Mon, 9 Oct 2006 21:44:23 +0000 (21:44 +0000)]
MFC 1.63: Put a bit of hysteresis into both BUSY SCSI status returns
and CAM_RESRC_UNAVAIL returns.
Approved by: re (kensmith)

17 years agoMFC:
emax [Mon, 9 Oct 2006 21:00:17 +0000 (21:00 +0000)]
MFC:

Install vkbd(4) header into dev/vkbd.

Update bthidd(8) code and hook it up to the build. bthidd(8) now was integrated
with vkbd(4) and supports multiple keyboards via vkbd(4)/kbdmux(4).

The code was tested with Apple Bluetooth keyboard and SE k700i cell phone
(remote control feature).

Add bthidd(8) rc(8) script.

Approved by: re (kensmith)

17 years agoMFC: Correct check for when IO_SYNC should be set for filesystem
tegge [Mon, 9 Oct 2006 20:09:36 +0000 (20:09 +0000)]
MFC: Correct check for when IO_SYNC should be set for filesystem
     not using softupdates when truncating a directory to zero length.

Approved by: re (kensmith)

17 years agoMFC: If the buffer lock has waiters after the buffer has changed identity
tegge [Mon, 9 Oct 2006 20:04:46 +0000 (20:04 +0000)]
MFC: If the buffer lock has waiters after the buffer has changed identity
     then getnewbuf() needs to drop the buffer in order to wake waiters that
     might sleep on the buffer in the context of the old identity.

Approved by: re (kensmith)

17 years agoMFC: Reduce fluctuations of mnt_flag to allow unlocked readers to get a
tegge [Mon, 9 Oct 2006 19:56:37 +0000 (19:56 +0000)]
MFC: Reduce fluctuations of mnt_flag to allow unlocked readers to get a
     slightly more consistent view.

Approved by: re (kensmith)

17 years agoMFC: Don't restore MNT_QUOTA bit in mnt_flag after snapshot creation,
tegge [Mon, 9 Oct 2006 19:55:19 +0000 (19:55 +0000)]
MFC: Don't restore MNT_QUOTA bit in mnt_flag after snapshot creation,
     closing a race between nmount() and quotactl().

Approved by: re (kensmith)

17 years agoMFC: Don't restore MNT_QUOTA bit in mnt_flag after a failed mount with
tegge [Mon, 9 Oct 2006 19:52:25 +0000 (19:52 +0000)]
MFC: Don't restore MNT_QUOTA bit in mnt_flag after a failed mount with
     MNT_UPDATE flag, closing a race between nmount() and quotactl().

Approved by: re (kensmith)

17 years agoMFC: Don't restore mnt_kern_flag on failed MNT_UPDATE mount, it can race
tegge [Mon, 9 Oct 2006 19:50:05 +0000 (19:50 +0000)]
MFC: Don't restore mnt_kern_flag on failed MNT_UPDATE mount, it can race
     with dounmount(), causing loss of MNTK_UNMOUNT flag.

Approved by: re (kensmith)

17 years agoMFC: Use mount interlock to protect all changes to mnt_flag and
tegge [Mon, 9 Oct 2006 19:47:17 +0000 (19:47 +0000)]
MFC: Use mount interlock to protect all changes to mnt_flag and
     mnt_kern_flag. This eliminates a race where MNT_UPDATE flag could be
     lost when nmount() raced against sync(), sync_fsync() or quotactl().

Approved by: re (kensmith)

17 years agoMFC:
simon [Mon, 9 Oct 2006 18:41:37 +0000 (18:41 +0000)]
MFC:
- Remove SCHED_ULE from GENERIC to better avoid foot-shooting by
  unsuspecting users.
- Add a comment in NOTES about experimental status of SCHED_ULE.
- Make warning about experimental status in sched_ule(4) a bit
  stronger.

This is not an exact MFC since we don't have alpha in -CURRENT.

Approved by: re (kensmith)

17 years agoMFC:
sos [Mon, 9 Oct 2006 18:13:51 +0000 (18:13 +0000)]
MFC:

        Enable atausb.

Approved by: re@

17 years agoMFC:
sos [Mon, 9 Oct 2006 18:11:19 +0000 (18:11 +0000)]
MFC:
Bring in ATA<>USB support.

Approved by: re@

17 years agoMFC:
sos [Mon, 9 Oct 2006 16:01:35 +0000 (16:01 +0000)]
MFC:
Add missing PCI ID for the acer m5288

Approved by: re@

17 years agoMFen 1.73.2.29 -> 1.73.2.32
delphij [Mon, 9 Oct 2006 14:33:26 +0000 (14:33 +0000)]
MFen 1.73.2.29 -> 1.73.2.32

Approved by: re (hrs)

17 years agoMFC rev. 1.27:
kib [Mon, 9 Oct 2006 14:18:26 +0000 (14:18 +0000)]
MFC rev. 1.27:
Remove long untrue note about storing state information inside free items.

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

17 years agoMFC rev. 1.685:
kib [Mon, 9 Oct 2006 14:17:30 +0000 (14:17 +0000)]
MFC rev. 1.685:

Correct the comment: numvnodes is decreased on vdestroying the vnode.

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

17 years agoThis commit was manufactured by cvs2svn to create branch 'RELENG_6'.
cvs2svn [Mon, 9 Oct 2006 12:50:17 +0000 (12:50 +0000)]
This commit was manufactured by cvs2svn to create branch 'RELENG_6'.

17 years agoMFC of rev 1.21:
hrs [Mon, 9 Oct 2006 12:44:53 +0000 (12:44 +0000)]
MFC of rev 1.21:
Disable an overly-verbose warning message by default.

Suggested by: njl
Approved by: re (kensmith)

17 years agoMFC rev. 1.45: fixes from NetBSD:
maxim [Sun, 8 Oct 2006 05:52:49 +0000 (05:52 +0000)]
MFC rev. 1.45: fixes from NetBSD:
  restore owner/group/mode/atime/mtime of symbolic links;
  extract file flags of symbolic link;
  call getfile() before altering file attributes;
  open file with mode 0600 instead of 0666;
  move skipfile() before altering file attributes in IF{CHR,BLK} and
  IFIFO cases;
  use file mode 0600 when creating special file or fifo, revs. 1.33;
  remove redundant -N check.

Approved by: re (kensmith)

17 years agoMFC rev. 1.36: don't fseek() on closed file.
maxim [Sun, 8 Oct 2006 05:45:57 +0000 (05:45 +0000)]
MFC rev. 1.36: don't fseek() on closed file.

Approved by: re (kensmith)

17 years agoMFC rev. 1.28: make 'pw groupadd -o' work.
maxim [Sun, 8 Oct 2006 05:37:24 +0000 (05:37 +0000)]
MFC rev. 1.28: make 'pw groupadd -o' work.

Approved by: re (kensmith)

17 years agoMFC rev. 1.19, 1.20: mention DEFAULT keyword, markup fixes.
maxim [Sun, 8 Oct 2006 05:34:54 +0000 (05:34 +0000)]
MFC rev. 1.19, 1.20: mention DEFAULT keyword, markup fixes.

Approved by: re (kensmith)

17 years agoMFC rev. 1.12: don't leak fd on error, change parselength() prototype.
maxim [Sun, 8 Oct 2006 05:32:54 +0000 (05:32 +0000)]
MFC rev. 1.12: don't leak fd on error, change parselength() prototype.

Approved by: re (kensmith)

17 years agoMFC rev. 1.16 (iedowse):
delphij [Sun, 8 Oct 2006 02:24:33 +0000 (02:24 +0000)]
MFC rev. 1.16 (iedowse):

Add missing parentheses to fix a segmentation fault that is easily
reproducable with `jot -s " " 400 1 | column -t'. The bug was present
in the the original CSRG 'column -t' added in 1989.

Approved by: re (kensmith)

17 years agoMFC: SA-06:22.openssh.
bmah [Sun, 8 Oct 2006 00:24:14 +0000 (00:24 +0000)]
MFC:  SA-06:22.openssh.

Approved by: re (implicitly)

17 years agoMFC:
emax [Sat, 7 Oct 2006 23:41:22 +0000 (23:41 +0000)]
MFC:

Pacify new GCC4 warnings

Submitted by: kan
Approved by: re (kensmith)

17 years agoSync with CURRENT:
trhodes [Sat, 7 Oct 2006 23:17:05 +0000 (23:17 +0000)]
Sync with CURRENT:
Kill the BUGS section, and remove a similar line noted under -T.  As far
as I know, Sun's NFS support works with TCP just fine.  This is even
hinted at in the PR.

PR:             71782

Properly separate sentences by adding a semi-colon.

Hinted by: bmah
Approved by: re (bmah)

17 years agoMFC: 1.74: Don't run install-info under lockf if not installing in parallel.
ru [Sat, 7 Oct 2006 21:18:13 +0000 (21:18 +0000)]
MFC: 1.74: Don't run install-info under lockf if not installing in parallel.

Approved by: re (kensmith)

17 years agoMFC add.c:1.15, label.c:1.3, remove.c:1.10
marcel [Sat, 7 Oct 2006 18:35:48 +0000 (18:35 +0000)]
MFC add.c:1.15, label.c:1.3, remove.c:1.10
Use strtoll(3) instead of strtol(3) for the starting block or partition size.

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

17 years agoMFC: 1.70
jhay [Sat, 7 Oct 2006 18:31:27 +0000 (18:31 +0000)]
MFC: 1.70
Hopefully the last tweak in trying to make it possible to add ipv6 direct
host routes without side effects.

Submitted by: JINMEI Tatuya
Approved by: re (kensmith)

17 years agoMFC pthread_yield.3 man page.
maxim [Sat, 7 Oct 2006 17:34:25 +0000 (17:34 +0000)]
MFC pthread_yield.3 man page.

Approved by: re (kensmith)

17 years agoMFC rev. 1.12 - 1.14: add a Gedenktag, strip eol w/spaces, remove an
maxim [Sat, 7 Oct 2006 17:30:32 +0000 (17:30 +0000)]
MFC rev. 1.12 - 1.14: add a Gedenktag, strip eol w/spaces, remove an
obsoleted entry.

Approved by: re (kensmith)

17 years agoNew errata: SA-06.22:openssh.
bmah [Sat, 7 Oct 2006 15:33:26 +0000 (15:33 +0000)]
New errata:  SA-06.22:openssh.

While here, update the state of a couple other items (i386 bootloader,
locking-related bug) to reflect reality.

Approved by: re (implicitly)

17 years agoMFC: Fix Mother's/Father's day in most case.
flz [Sat, 7 Oct 2006 15:25:38 +0000 (15:25 +0000)]
MFC: Fix Mother's/Father's day in most case.

      src/usr.bin/calendar/calendars/fr_FR.ISO8859-1/calendar.jferies: rev 1.1 -> 1.2
      src/usr.bin/calendar/calendars/fr_FR.ISO8859-1/calendar.fetes: rev 1.1 -> 1.2

PR: misc/79415
Submitted by: thierry
Approved by: re (bmah)

17 years agoMFC r1.9: Correct usage example.
ceri [Sat, 7 Oct 2006 15:06:56 +0000 (15:06 +0000)]
MFC r1.9:  Correct usage example.

Approved by: re (bmah)

17 years agoMFC: ipfw(4) tag/untag/tagged, ng_tag(4), IPv6 link-local addresses
bmah [Sat, 7 Oct 2006 14:59:05 +0000 (14:59 +0000)]
MFC:  ipfw(4) tag/untag/tagged, ng_tag(4), IPv6 link-local addresses
enabled by ipv6_enable, OpenSSH 4.4p1, OpenBSM 1.0alpha12.

Approved by:  re (implicitly)

17 years agoMFC: Fix the IPv4 multicast routing detach path. On interface detach whilst
bms [Sat, 7 Oct 2006 10:45:05 +0000 (10:45 +0000)]
MFC: Fix the IPv4 multicast routing detach path. On interface detach whilst
the MROUTER is running, the system would panic as described in the PR.

The fix in the PR is a good start, however, the other state associated
with the multicast forwarding cache has to be freed in order to avoid
leaking memory and other possible panics.

More care and attention is needed in this area.

PR: kern/82882
Approved by: re (rwatson)
Revs: 1.119 src/sys/netinet/ip_mroute.c

17 years agoMFC: The IPv4 code should clean up multicast group state when an interface
bms [Sat, 7 Oct 2006 10:43:40 +0000 (10:43 +0000)]
MFC: The IPv4 code should clean up multicast group state when an interface
goes away. Without this change, it leaks in_multi (and often ether_multi
state) if many clonable interfaces are created and destroyed in quick
succession.

The concept of this fix is borrowed from KAME. Detailed information about
this behaviour, as well as test cases, are available in the PR.

PR: kern/78227
Approved by: re (rwatson)
Revs: 1.94 src/sys/netinet/in.c
Revs: 1.59 src/sys/netinet/in_var.h

17 years agoMFC:
andre [Fri, 6 Oct 2006 20:26:06 +0000 (20:26 +0000)]
MFC:
 - Fix the socket option IP_ONESBCAST by giving it its own case in ip_output()
   and skip over the normal IP processing.
 - Add a supporting function ifa_ifwithbroadaddr() to verify and validate the
   supplied subnet broadcast address.
 - Check inp_flags instead of inp_vflag for INP_ONESBCAST flag.

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

17 years agoMFC:
andre [Fri, 6 Oct 2006 20:23:27 +0000 (20:23 +0000)]
MFC:
 - Add the missing send/receive timeouts and low watermarks.
 - Remove inheritance of the field so_timeo which is unused.

Approved by: re (kensmith)

17 years agoMFC revision 1.101 (cognet@):
delphij [Fri, 6 Oct 2006 14:58:16 +0000 (14:58 +0000)]
MFC revision 1.101 (cognet@):

A temporary fix that in case of pwd == NULL, do not call audit_logout()
which attempts to deference it.  This is not quite correct, as we should
audit the event even it is not attributable to a specific user.  For now,
just put the temporary fix in, so login(1) would not get signal 11 upon
the case that for instance, ^D at the Login: prompt without providing a
valid login before.i

Approved by: re (rwatson)
PR: bin/103873
Discussed with: rwatson, csjp

17 years agoMFC: OpenSSH 4.4p1.
des [Fri, 6 Oct 2006 14:07:23 +0000 (14:07 +0000)]
MFC: OpenSSH 4.4p1.

Approved by: re (kensmith)

17 years agoMFC rev. 1.198:
kib [Fri, 6 Oct 2006 05:06:58 +0000 (05:06 +0000)]
MFC rev. 1.198:
Fix the glitch introduced in rev. 1.93. In softdep_sync_metadata(),
switch by worklist type contains two for() loops, for D_INDIRDEP and
D_PAGEDEP. On error, these loops are exited by break, where the switch
actually shall be leaved. Use goto instead of break to reach the error
handling code.

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

17 years agoMFC: rev 1.58: ARM platform does setjmp/longjmp exceptions.
obrien [Thu, 5 Oct 2006 20:57:06 +0000 (20:57 +0000)]
MFC: rev 1.58: ARM platform does setjmp/longjmp exceptions.

Approved by: re(KEN)

17 years agoMFC: id.1, revision 1.18; id.c, revision 1.31
ceri [Thu, 5 Oct 2006 20:52:21 +0000 (20:52 +0000)]
MFC: id.1, revision 1.18; id.c, revision 1.31

   Add a -a option as a no-op for Solaris compatibility, as briefly
   discussed on src-committers.  This is intentionally not included in
   the usage() function as it would confuse the output too much.

Approved by: re (bmah)

17 years agoARM in its present state cannot handle the full LIB1ASMFUNCS and FP/DPBIT's
obrien [Thu, 5 Oct 2006 19:46:06 +0000 (19:46 +0000)]
ARM in its present state cannot handle the full LIB1ASMFUNCS and FP/DPBIT's
so build a limited set.

Approved by: re(KEN)

17 years agoMFC
gnn [Thu, 5 Oct 2006 14:59:52 +0000 (14:59 +0000)]
MFC
Only automatically assign link local addresses if ipv6_enable is set to YES
in rc.conf

Reviewed by: KAME core team, cperciva
Approved by: re

17 years agoAdd an entry regarding NMBCLUSTERS kernel option remove, as it can affect
marck [Wed, 4 Oct 2006 21:09:12 +0000 (21:09 +0000)]
Add an entry regarding NMBCLUSTERS kernel option remove, as it can affect
(though in rare curcumstances) existing kernel configurations.

Requested by: simon
Reworded by: brd
Approved by: security-officer (simon)
Approved by: re (I suppose so@ is representative enough for that,
provided re@ had been in CC: for discussion)

17 years agoMFC: Introduce intpm(4) to style(9).
jhb [Wed, 4 Oct 2006 19:09:43 +0000 (19:09 +0000)]
MFC: Introduce intpm(4) to style(9).

Approved by: re (mux)

17 years agoMFC: Fix sign bug in acpi_release_resource().
jhb [Wed, 4 Oct 2006 19:08:23 +0000 (19:08 +0000)]
MFC: Fix sign bug in acpi_release_resource().

Approved by: re (mux)

17 years agoBack out rev. 1.137.2.3. It open a possible security hole.
mbr [Wed, 4 Oct 2006 17:52:20 +0000 (17:52 +0000)]
Back out rev. 1.137.2.3. It open a possible security hole.

Submitted by: bde
Approved by: re (implicit)

17 years agoMFC kb920x_machdep.c rev1.13:
cognet [Wed, 4 Oct 2006 11:44:12 +0000 (11:44 +0000)]
MFC kb920x_machdep.c rev1.13:
Use virtual_avail instead of freemempos as the starting point of the available
physical memory, as the vm uses the memory between freemempos and
virtual_avail.

and kb920x_machdep.c rev 1.16 at91.c rev 1.8 at91rm92reg.h rev 1.4:
Relocate the vector page for AT91, to work around bugs with the LOW_VECTOR
code.

Approved by: re (mux)

17 years agoMFC: Fix our ioctl(2) implementation for ioctls with "int" arguments.
ru [Wed, 4 Oct 2006 06:09:11 +0000 (06:09 +0000)]
MFC: Fix our ioctl(2) implementation for ioctls with "int" arguments.

Approved by: re (hrs, kensmith)

17 years agoMFC 1.54:
delphij [Tue, 3 Oct 2006 15:48:31 +0000 (15:48 +0000)]
MFC 1.54:
usr/include/c++/3.4/ext/demangle.h was removed on 20060905
at RELENG_6, so list it here.

Approved by: re (bmah)

17 years agos/OLD_FILES/OLD_LIBS/ in my last commit.
ru [Tue, 3 Oct 2006 08:18:22 +0000 (08:18 +0000)]
s/OLD_FILES/OLD_LIBS/ in my last commit.

Approved by: re (bmah)

17 years agoMFC rev. 1.12 and rev. 1.13
matteo [Mon, 2 Oct 2006 18:43:57 +0000 (18:43 +0000)]
MFC rev. 1.12 and rev. 1.13

rev. 1.12 : use socklen_t where appropriate
rev. 1.13 : Set txrx_error to 1 when we reach abort. This makes the program correctly set the exit code.
The PR has further details on this. [2]

PR: bin/103206 [2]
Approved by: re@ (bmah@)

17 years agoMerge id.c:1.30 from HEAD to RELENG_6:
rwatson [Mon, 2 Oct 2006 17:23:14 +0000 (17:23 +0000)]
Merge id.c:1.30 from HEAD to RELENG_6:

  Fix both arguments to err().

Submitted by: ru
Approved by: re (bmah)

17 years agoMFC accumulated changes to sys/boot/. Notable changes include:
ru [Sun, 1 Oct 2006 12:07:08 +0000 (12:07 +0000)]
MFC accumulated changes to sys/boot/.  Notable changes include:

- Make 4G of memory directly accesible to the i386 loader(8).  This
  allows using memory above first megabyte for heap if necessary.
  (by sobomax@)

- If loader is compiled with LOADER_BZIP2_SUPPORT, allocate heap in
  the last 3MB of physical memory.  This provides enough room for
  decompression and is safe to use with PAE and amd64 kernels.  This
  makes bzip2 support practically useable.
  (by sobomax@)

- Drop the gateA20() function in the loader as it is unused.
  (by jhb@)

Approved by: re (kensmith)

The following files/revisions have been merged:

src/sys/boot/common/loader.8 1.88
src/sys/boot/i386/boot2/boot1.S 1.31
src/sys/boot/i386/libi386/Makefile 1.39 1.42
src/sys/boot/i386/libi386/biosacpi.c 1.11
src/sys/boot/i386/libi386/biosdisk.c 1.46
src/sys/boot/i386/libi386/biosmem.c 1.8
src/sys/boot/i386/libi386/biospnp.c 1.10
src/sys/boot/i386/libi386/biossmap.c 1.4
src/sys/boot/i386/libi386/i386_copy.c 1.11 1.12
src/sys/boot/i386/libi386/libi386.h 1.23 1.25
src/sys/boot/i386/loader/main.c 1.34 1.36 1.37
src/sys/boot/pc98/libpc98/Makefile 1.23 1.24
src/sys/boot/pc98/libpc98/biosdisk.c 1.33
src/sys/boot/pc98/libpc98/biosmem.c 1.8
src/sys/boot/pc98/loader/main.c 1.22 1.23

17 years agoThis commit was manufactured by cvs2svn to create branch 'RELENG_6'.
cvs2svn [Sun, 1 Oct 2006 11:13:01 +0000 (11:13 +0000)]
This commit was manufactured by cvs2svn to create branch 'RELENG_6'.

17 years agoMFC revs 1.263, 1.264: Limit the number of TIME_WAIT sockets we allocate
silby [Sun, 1 Oct 2006 05:33:50 +0000 (05:33 +0000)]
MFC revs 1.263, 1.264: Limit the number of TIME_WAIT sockets we allocate
so that the ephemeral port range can not be exhausted by sockets in
TIME_WAIT.

Approved by: re (kensmith)

17 years agoMFC change 1.138.
mohans [Sun, 1 Oct 2006 05:03:18 +0000 (05:03 +0000)]
MFC change 1.138.
Fix for a NFS/TCP client bug which would cause the NFS/TCP stream to get
out of sync under heavy loads, forcing frequent reconnets, causing EBADRPC
errors etc.

Approved by: re

17 years agoMFC: remove stub radar support
sam [Sat, 30 Sep 2006 21:25:11 +0000 (21:25 +0000)]
MFC: remove stub radar support

Approved by: re (kensmith)

17 years agoFix 'pty leak by number'. Make the leaked ptys usable again.
mbr [Sat, 30 Sep 2006 21:02:19 +0000 (21:02 +0000)]
Fix 'pty leak by number'. Make the leaked ptys usable again.

Approved by: re

17 years agoMFC rev. 1.260
mbr [Sat, 30 Sep 2006 20:58:48 +0000 (20:58 +0000)]
MFC rev. 1.260

Any call of tty_close() with a tty refcount of <= 1 is wrong and we will
free the tty in this case. This is a workaround until the underlaying
devfs/tty problems are fixed.

Approved by: re

17 years agoCorrect multiple vulnerabilities in OpenSSH.
simon [Sat, 30 Sep 2006 19:50:57 +0000 (19:50 +0000)]
Correct multiple vulnerabilities in OpenSSH.

Security: FreeBSD-SA-06:22.openssh
Approved by: re (kensmith)

17 years agoMFC:
sos [Sat, 30 Sep 2006 14:51:49 +0000 (14:51 +0000)]
MFC:

CF devices are ATA not ATAPI.
Add support for the ALI/ULI M5288 AHCI part
Busmaster DMA address fix in VIA 6421 case
Add support for a few more Serverworks and lookalikes chips
If current_heads or current_sectors in the disk cap page are zero, dont try to use the current_ geometry. This avoids a panic with BIOS'n that sets these to zero.
Format mask lacks one bit.

Approved by: re@

17 years agoMFC rev 1.15:
cognet [Sat, 30 Sep 2006 14:07:21 +0000 (14:07 +0000)]
MFC rev 1.15:
date: 2006/09/22 12:45:42;  author: cognet;  state: Exp;  lines: +2 -2
Use usbd_clear_endpoint_stall_async() when clearing endpoint stalls in
an interrupt context.

Obtained from:  NetBSD
Approved by: re

17 years agoMFC: (1.26) reject usernames that are longer than OPIE can handle.
des [Sat, 30 Sep 2006 11:07:10 +0000 (11:07 +0000)]
MFC: (1.26) reject usernames that are longer than OPIE can handle.

Approved by: re (kensmith)

17 years agoFix mis-merge
csjp [Sat, 30 Sep 2006 03:22:42 +0000 (03:22 +0000)]
Fix mis-merge

Noticed by: Pawel Worach
Approved by: re@ (kensmith)

17 years agoMerge Makefile:1.5 from HEAD to RELENG_6:
rwatson [Fri, 29 Sep 2006 22:47:50 +0000 (22:47 +0000)]
Merge Makefile:1.5 from HEAD to RELENG_6:

  Hook up additional OpenBSM man page aliases following OpenBSM 1.0 alpha 12
  import.  Most of these should have existed previously, but didn't.

  Obtained from:  TrustedBSD Project

Approved by: re (kensmith)

17 years agoMerge Makefile:1.2 from HEAD to RELENG_6:
rwatson [Fri, 29 Sep 2006 22:46:53 +0000 (22:46 +0000)]
Merge Makefile:1.2 from HEAD to RELENG_6:

  auditreduce now requires OpenBSM's config/config.h, so add that to the
  build include path.

  Obtained from:  TrustedBSD Project

Approved by: re (kensmith)

17 years agoUpdate kernel audit implementation for OpenBSM 1.0 alpha 12: use new
rwatson [Fri, 29 Sep 2006 22:45:49 +0000 (22:45 +0000)]
Update kernel audit implementation for OpenBSM 1.0 alpha 12: use new
trigger name for kernel-generated audit rotation events.

Approved by: re (kensmith)
Obtained from: TrustedBSD Project

17 years agoMerge OpenBSM 1.0 alpha 11 + 12 into src/sys/bsm; cleanup of trigger
rwatson [Fri, 29 Sep 2006 22:43:30 +0000 (22:43 +0000)]
Merge OpenBSM 1.0 alpha 11 + 12 into src/sys/bsm; cleanup of trigger
types, some defines, and some new record types.

Approved by: re (kensmith)
Obtained from: TrustedBSD Project

17 years agoMerge OpenBSM 1.0 alpha 12 from HEAD to RELENG_6, which includes a broad
rwatson [Fri, 29 Sep 2006 22:41:55 +0000 (22:41 +0000)]
Merge OpenBSM 1.0 alpha 12 from HEAD to RELENG_6, which includes a broad
range of bug fixes made as a result of reports on 6.x, as well as some
minor enhancements:

OpenBSM 1.0 alpha 12

- Correct bug in auditreduce which prevented the -c option from working
  correctly when the user specifies to process successful or failed events.
  The problem stemmed from not having access to the return token at the time
  the initial preselection occurred, but now a second preselection process
  occurs while processing the return token.
- getacfilesz(3) API added to read new audit_control(5) filesz setting,
  which auditd(8) now sets the kernel audit trail rotation size to.
- auditreduce(1) now uses stdin if no file names are specified on the command
  line; this was the documented behavior previously, but it was not
  implemented.  Be more specific in auditreduce(1)'s examples section about
  what might be done with the output of auditreduce.
- Add audit_warn(5) closefile event so that administrators can hook
  termination of an audit trail file.  For example, this might be used to
  compress the trail file after it is closed.
- auditreduce(1) now uses regular expressions for pathname matching. Users can
  now supply one or more (comma delimited) regular expressions for searching
  the pathnames. If one of the regular expressions is prefixed with a tilde
  (~), and a path matches, it will be excluded from the search results.

OpenBSM 1.0 alpha 11

- Reclassify certain read/write operations as having no class rather than the
  fr/fw class; our default classes audit intent (open) not operations (read,
  write).
- Introduce AUE_SYSCTL_WRITE event so that BSD/Darwin systems can audit reads
  and writes of sysctls as separate events.  Add additional kernel
  environment and jail events for FreeBSD.
- Break AUDIT_TRIGGER_OPEN_NEW into two events, AUDIT_TRIGGER_ROTATE_USER
  (issued by the user audit(8) tool) and AUDIT_TRIGGER_ROTATE_KERNEL (issued
  by the kernel audit implementation) so that they can be distinguished.
- Disable rate limiting of rotate requests; as the kernel doesn't retransmit
  a dropped request, the log file will otherwise grow indefinitely if the
  trigger is dropped.
- Improve auditd debugging output.
- Fix a number of threading related bugs in audit_control file reading
  routines.
- Add APIs au_poltostr() and au_strtopol() to convert between text
  representations of audit_control policy flags and the flags passed to
  auditon(A_SETPOLICY) and retrieved from auditon(A_GETPOLICY).
- Add API getacpol() to return the 'policy:' entry from audit_control, an
  extension to the Solaris file format to allow specification of policy
  persistent flags.
- Update audump to print the audit_control policy field.
- Update auditd to read the audit_control policy field and set the kernel
  policy to match it when configuring/reconfiguring.  Remove the -s and -h
  arguments as these policies are now set via the configuration file.  If a
  policy line is not found in the configuration file, continue with the
  current default of setting AUDIT_CNT.
- Fix bugs in the parsing of large execve(2) arguments and environmental
  variable tokens; increase maximum parsed argument and variable count.
- configure now detects strlcat(), used by policy-related functions.
- Reference token and record sample files added to test tree.

Approved by: re (kensmith)

17 years ago- remove reference to vnconfig(8) as this is linked to mdconfig(8),
danger [Fri, 29 Sep 2006 21:24:19 +0000 (21:24 +0000)]
- remove reference to vnconfig(8) as this is linked to mdconfig(8),
  which is referenced too
- markup fixes

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

17 years agoMFC: Update to the ipmi(4) driver to add more attachments as well as SSIF
jhb [Fri, 29 Sep 2006 21:21:53 +0000 (21:21 +0000)]
MFC: Update to the ipmi(4) driver to add more attachments as well as SSIF
support and make it MPSAFE.

Approved by: re (kensmith)

17 years agoShared pcap and pthread (libc_r on alpha and sparc64) libraries moved to /lib.
ru [Fri, 29 Sep 2006 19:34:37 +0000 (19:34 +0000)]
Shared pcap and pthread (libc_r on alpha and sparc64) libraries moved to /lib.

Approved by: re (kensmith)

17 years agoOn alpha and sparc64, install shared libc_r into /lib because
ru [Fri, 29 Sep 2006 19:31:21 +0000 (19:31 +0000)]
On alpha and sparc64, install shared libc_r into /lib because
it's aliased to libpthread and some /sbin tools need it.
This is pseudo-MFC because in HEAD libthr is aliased to
libpthread on sparc64 (and was on alpha).

Approved by: re (kensmith)

17 years agoMFC rev 1.57:
netchild [Fri, 29 Sep 2006 19:05:24 +0000 (19:05 +0000)]
MFC rev 1.57:
  style(9)

  Noticed by: ssouhlal

Approved by: re

17 years agoMFC rev 1.56:
netchild [Fri, 29 Sep 2006 19:00:44 +0000 (19:00 +0000)]
MFC rev 1.56:
  Bring the i386 linux mmap code more into line with how linux (2.4.x)
  behaves. This fixes a lot of test which failed before.

  Submitted by: Marcin Cieslak <saper@SYSTEM.PL> (minor fixups by myself)
  Tested with: LTP

Approved by: re

17 years agoMFC: v1.28 msgbuf.h
jmg [Fri, 29 Sep 2006 18:32:07 +0000 (18:32 +0000)]
MFC: v1.28 msgbuf.h
default to 64k msgbuf

Approved by: re (kensmith)

17 years agoMFC: v1.298 kern_descript.c
jmg [Fri, 29 Sep 2006 18:30:48 +0000 (18:30 +0000)]
MFC: v1.298 kern_descript.c
>   return EBADF instead of successfully attaching (and then panicing) when
>   an fd is dieing..

Approved by: re (kensmith)
CVn: ----------------------------------------------------------------------

17 years agoCorrect problem in the 2006-09-28 patch concerning the handling of
cperciva [Fri, 29 Sep 2006 13:44:03 +0000 (13:44 +0000)]
Correct problem in the 2006-09-28 patch concerning the handling of
excessively large DH moduli.

Reported by: Steve Kiernan (Juniper SIRT)
Security: FreeBSD-SA-06:23.openssl
Approved by: re (kensmith)

17 years agoMFC:
ru [Fri, 29 Sep 2006 08:07:19 +0000 (08:07 +0000)]
MFC:

- Use SBLOCK_UFS2 instead of SBLOCK_UFS1 to calculate likely start
  of the UFS2 partition from the beginning of disk.

- Initialize the "offset" variable and bump WARNS that made this
  visible.

Approved by: re (kensmith)

17 years agoMFC rev. 1.241, 1.242, 1.243
mbr [Fri, 29 Sep 2006 07:41:24 +0000 (07:41 +0000)]
MFC rev. 1.241, 1.242, 1.243

Add some Giant locks to protect against races between tty and sessrele(),
doenterpgrp(), leavepgrp(), pgdelete() and enterpgrp(). The tty code is
still under giant lock, but the session/pgrp release code just used
proctree_locks. P_CONTROLT isn't really fully locked too in enterpgrp().

Reviewed by: jhb
Approved by: re

17 years agoMFC rev. 1.58, 1.59
mbr [Fri, 29 Sep 2006 07:33:56 +0000 (07:33 +0000)]
MFC rev. 1.58, 1.59

If /dev/tty gets opened after your controlling terminal has been revoked
you can't call tty_clone afterwords. This can be done in ctty_clone by
returning with *dev = ctty.

Reviewed by: jhb
Approved by: re

17 years agoMFC rev. 1.58:
matteo [Fri, 29 Sep 2006 07:04:17 +0000 (07:04 +0000)]
MFC rev. 1.58:
Install shared libpthread library into /lib; needed by some
/sbin programs.

PR: bin/88404
Reviewed by: ru@
Approved by: re@ (kensmith@)

17 years agoMFC rev. 1.38
matteo [Fri, 29 Sep 2006 07:02:21 +0000 (07:02 +0000)]
MFC rev. 1.38
Place shared libpcap library under /lib, currently needed by
/sbin/ipf and /sbin/pflogd.

Reviewed by: ru@
Approved by: re@ (kensmith@)

17 years agoMFC 1.52: Remove 120.clean-kvmdb.
delphij [Fri, 29 Sep 2006 06:17:51 +0000 (06:17 +0000)]
MFC 1.52: Remove 120.clean-kvmdb.

Approved by: re (kensmith)

17 years agoMFC rev 1.28:
marck [Fri, 29 Sep 2006 06:13:20 +0000 (06:13 +0000)]
MFC rev 1.28:

   Fix bug introduced in rev 1.23:

   pw_equal does not check crypted password field, so one cannot change
   crypted password keeping other fields intact.

Approved by: re (kensmith)

17 years agoMFC 1.90-1.91: Don't treat failure to find the operator GID as a fatal
delphij [Fri, 29 Sep 2006 06:12:17 +0000 (06:12 +0000)]
MFC 1.90-1.91:  Don't treat failure to find the operator GID as a fatal
error; this made it impossible to use newfs (and mdmfs) when /etc/group
is missing and /etc is read-only.

Approved by: re (kensmith)

17 years agoMFC revisions 1.313 and 1.328:
alc [Fri, 29 Sep 2006 04:51:16 +0000 (04:51 +0000)]
MFC revisions 1.313 and 1.328:

When the VM needs to allocated physical memory pages (for non interrupt use)
and it has not plenty of free pages it tries to free pages in the cache queue.
Unfortunately freeing a cached page requires the locking of the object that
owns the page. However in the context of allocating pages we may not be able
to lock the object and thus can only TRY to lock the object. If the locking try
fails the cache page can not be freed and is activated to move it out of the way
so that we may try to free other cache pages.

If all pages in the cache belong to objects that are currently locked the
cache queue can be emptied without freeing a single page. This scenario caused
two problems:

    1)  vm_page_alloc always failed allocation when it tried freeing pages from
        the cache queue and failed to do so. However if there are more than
        cnt.v_interrupt_free_min pages on the free list it should return pages
        when requested with priority VM_ALLOC_SYSTEM. Failure to do so can cause
        resource exhaustion deadlocks.

    2)  Threads than need to allocate pages spend a lot of time cleaning up the
        page queue without really getting anything done while the pagedaemon
         needs to work overtime to refill the cache.

This change fixes the first problem. (1)

Approved by: re (kensmith)

17 years agoMFC revision 1.358:
alc [Fri, 29 Sep 2006 04:37:22 +0000 (04:37 +0000)]
MFC revision 1.358:
 Lock the vm_object while checking its type to see if it is a vnode-backed
 object that requires Giant in vm_object_deallocate().  This is somewhat
 hairy in that if we can't obtain Giant directly, we have to drop the
 object lock, then lock Giant, then relock the object lock and verify that
 we still need Giant.  If we don't (because the object changed to OBJT_DEAD
 for example), then we drop Giant before continuing.

Approved by: re

17 years agoMFC Rev 1.111
suz [Fri, 29 Sep 2006 04:24:50 +0000 (04:24 +0000)]
MFC Rev 1.111
 (fixed a bug that local IPv6 traffic (to an address configured on an
  interface other than lo0) does not show up properly on any bpf.)

Approved by: re (kensmith)

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)