]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
16 years agoNFC the ability to read a file of commands to ddb(8) modeled after the
brooks [Thu, 3 Apr 2008 21:33:15 +0000 (21:33 +0000)]
NFC the ability to read a file of commands to ddb(8) modeled after the
feature in ipfw(8).

16 years agoMFC: Make it possible to continue working after calling doadump() manually.
jhb [Thu, 3 Apr 2008 19:40:58 +0000 (19:40 +0000)]
MFC: Make it possible to continue working after calling doadump() manually.

16 years agoMFC: Fix a nit with the 'nofoo' options where 'foo' is mapped to 'nonofoo'
jhb [Thu, 3 Apr 2008 18:51:13 +0000 (18:51 +0000)]
MFC: Fix a nit with the 'nofoo' options where 'foo' is mapped to 'nonofoo'
so that filesystems will consider 'nonofoo' a valid option.

16 years agoMFC: Initialize list of kld's correctly when there are no kld's and catch
jhb [Thu, 3 Apr 2008 18:47:05 +0000 (18:47 +0000)]
MFC: Initialize list of kld's correctly when there are no kld's and catch
errors in kgdb_parse() so it returns 0 for invalid expressions.  This
fixes the kld loading for 6.x and 7.x.

16 years agoMFC: rev. 1.6
brueffer [Wed, 2 Apr 2008 16:53:04 +0000 (16:53 +0000)]
MFC: rev. 1.6

ARC-1680 is supported.

16 years agoMFC 1.113: Add IFF_NEEDSGIANT to IFF_CANTCHANGE to prevent userland
iedowse [Tue, 1 Apr 2008 23:40:33 +0000 (23:40 +0000)]
MFC 1.113: Add IFF_NEEDSGIANT to IFF_CANTCHANGE to prevent userland
code from clearing IFF_NEEDSGIANT.

16 years agoMFC rev 1.212 ata-chipset.c
remko [Tue, 1 Apr 2008 15:20:49 +0000 (15:20 +0000)]
MFC rev 1.212 ata-chipset.c
MFC rev 1.83 ata-pci.h

  Add proper support for the SATA/AHCI part of IXP[67]00

Approved by: imp (mentor, implicit), sos

16 years agoMFC r1.85
thompsa [Tue, 1 Apr 2008 15:05:10 +0000 (15:05 +0000)]
MFC r1.85

 Add IFT_BRIDGE to the Ethernet section so l2 addresses are formatted correctly

16 years agoMFC rev. 1.6-1.7
mav [Tue, 1 Apr 2008 13:58:10 +0000 (13:58 +0000)]
MFC rev. 1.6-1.7
- Switch from timeval to bintime, to use 1/(2^20) of seconds instead of
microseconds. It allows to use bit shifts instead of some heavy 64bit
mul/div math operations.
- Account all node stats at the shape mode.
- Do not check destination hook presence, it will be done by netgraph.
- Use u_int instead of int in some places to simplify type conversions.
- Use NG_SEND_DATA_ONLY() macro instead of selfmade equivalent.

16 years agoMerge ddb.4:1.48 from HEAD to RELENG_7:
rwatson [Tue, 1 Apr 2008 11:50:04 +0000 (11:50 +0000)]
Merge ddb.4:1.48 from HEAD to RELENG_7:

  Update ddb.4 to reflect addition of /S (symbol name) printing mode for
  examine.

  PR:             57976

16 years agoMerge db_examine.c:1.35 from HEAD to RELENG_7:
rwatson [Tue, 1 Apr 2008 11:48:25 +0000 (11:48 +0000)]
Merge db_examine.c:1.35 from HEAD to RELENG_7:

  Add a /S mode to DDB "ex" command, which interprets and prints the
  value at the requested address as a symbol.  For example, "ex /S
  aio_swake" prints the name of the function currently registered in
  via aio_swake hook.

  The change as committed differs slightly from the patch in the PR,
  as I force the size of the retrieved value (and the automatic
  address increment) to be sizeof(void *).  This seems to provide
  the most useful auto-increment behavior, and defaults using the
  default size (4), which is not sizeof(void *) on 64-bit platforms.

  PR:             57976
  Submitted by:   Dan Strick <strick at covad.net>

16 years agoMerge db_textdump.c:1.3 from HEAD to RELENG_7:
rwatson [Tue, 1 Apr 2008 11:39:04 +0000 (11:39 +0000)]
Merge db_textdump.c:1.3 from HEAD to RELENG_7:

  Use dump_write() instead of direct calls to di->dumper() in textdumps.
  Textdumps already do pretty much the same sanity checking, but
  abstractions and seatbelts are both useful.

16 years agoMerge db_capture.c:1.5 from HEAD to RELENG_7:
rwatson [Tue, 1 Apr 2008 11:31:18 +0000 (11:31 +0000)]
Merge db_capture.c:1.5 from HEAD to RELENG_7:

  Increase maximum DDB capture buffer size to 5MB.

  PR:             119993
  Suggested by:   Scot Hetzel <swhetzel at gmail dot com>

16 years agoMerge options:1.616, db_capture.c:1.4 from HEAD to RELNEG_7:
rwatson [Tue, 1 Apr 2008 11:23:32 +0000 (11:23 +0000)]
Merge options:1.616, db_capture.c:1.4 from HEAD to RELNEG_7:

  Allow DDB_CAPTURE_DEFAULTBUFSIZE and DDB_CAPTURE_MAXBUFSIZE to be
  overridden at compile-time using kernel options of the same names.

  Rather than doing a compile-time CTASSERT of buffer sizes being
  even multiples of block sizes, just adjust them at boottime, as
  the failure mode is more user-friendly.

  MFC after:      2 months
  PR:             119993
  Suggested by:   Scot Hetzel <swhetzel at gmail dot com>

16 years agoMFC:
rink [Tue, 1 Apr 2008 08:05:30 +0000 (08:05 +0000)]
MFC:
  Some PS/2 mice (at least the A4Tech X-7xx) need to be set to Intelli mode
  first before they can be set to Explorer mode.

  PR:             kern/118578
  Submitted by:   Andriy Gapon <avg@icyb.net.ua> (I added some comments)
  Reviewed by:    philip

16 years agoAdd cmx.4 file forgotten in previous cmx(4) MFC.
rink [Tue, 1 Apr 2008 07:59:39 +0000 (07:59 +0000)]
Add cmx.4 file forgotten in previous cmx(4) MFC.

Noticed by: brueffer

16 years agoMFC:
rink [Tue, 1 Apr 2008 07:57:48 +0000 (07:57 +0000)]
MFC:
  Import uslcom(4) from OpenBSD - this is a driver for Silicon Laboratories
  CP2101/CP2102 based USB serial adapters.

  Reviewed by:            imp, emaste
  Obtained from:          OpenBSD

16 years agoMFC:
rink [Tue, 1 Apr 2008 07:36:30 +0000 (07:36 +0000)]
MFC:
  Commit cmx(4), a driver for Omnikey CardMan 4040 PCMCIA smartcard readers.

  PR:             kern/114582
  Submitted by:   Daniel Roethlisberger <daniel@roe.ch>
  Reviewed by:    imp, myself
  Tested by:      johans, myself

16 years agoThis commit was manufactured by cvs2svn to create branch 'RELENG_7'.
cvs2svn [Tue, 1 Apr 2008 01:48:09 +0000 (01:48 +0000)]
This commit was manufactured by cvs2svn to create branch 'RELENG_7'.

16 years agoMerge db_capture.c:1.3 from HEAD to RELENG_7:
rwatson [Mon, 31 Mar 2008 22:09:00 +0000 (22:09 +0000)]
Merge db_capture.c:1.3 from HEAD to RELENG_7:

  Rename DB_ constants in db_capture.c to DDB_ so that when they are
  exposed as kernel compile options, they have more meaningful names.

  PR:             119993
  MFC after:      2 months
  Suggested by:   Scot Hetzel <swhetzel at gmail dot com>

16 years agoMerge db_textdump.c:1.2 from HEAD to RELENG_7:
rwatson [Mon, 31 Mar 2008 22:05:09 +0000 (22:05 +0000)]
Merge db_textdump.c:1.2 from HEAD to RELENG_7:

  Refine textdump comments slightly.

16 years agoMerge ddb.8:1.2 from HEAD to RELENG_7:
rwatson [Mon, 31 Mar 2008 22:04:27 +0000 (22:04 +0000)]
Merge ddb.8:1.2 from HEAD to RELENG_7:

  Minor formatting tweaks.

  Point at ddb(4) and textdump(4) man pages for more script examples.

16 years agoMerge savecore.8:1.26, savecore.c:1.79 from HEAD to RELENG_7:
rwatson [Mon, 31 Mar 2008 22:03:54 +0000 (22:03 +0000)]
Merge savecore.8:1.26, savecore.c:1.79 from HEAD to RELENG_7:

  Teach savecore(8) how to extract textdump(4) dumps.

  Update savecore(8) man page to reflect textdump additions.

Merge savecore.c:1.80 from HEAD to RELENG_7:

  Compare kernel dump header magic with textdump magic using strncmp()
  rather than the memcmp() which is used for regular dumps: the
  textdump string is one character shorter, so we need to stop
  comparing at the end of the string.

  Use independent version checking logic for architecture-specific
  version number vs. textdump version number, as the version sequences
  may (someday) differ.

  Run into by:    rrs

16 years agoMerge ddb.4:1.47, textdump.4:1.2 from HEAD to RELENG_7:
rwatson [Mon, 31 Mar 2008 22:02:28 +0000 (22:02 +0000)]
Merge ddb.4:1.47, textdump.4:1.2 from HEAD to RELENG_7:

  Minor formatting tweaks; recommend "call doadump; reset" over "panic"
  from a script as the DDB panic command is unreliable.

16 years agoMerge Makefile:1.401, ddb.4:1.46, textdump.4:1.1 from HEAD to RELENG_7:
rwatson [Mon, 31 Mar 2008 22:00:27 +0000 (22:00 +0000)]
Merge Makefile:1.401, ddb.4:1.46, textdump.4:1.1 from HEAD to RELENG_7:

  Add textdump(4) man page to describe the textdump facility and provide
  some stock formulas for use.

  Update ddb(4) to reference the textdump(4) page, list the textdump
  commands, and suggest using them with scripts and output capture.
  Update HISTORY section.

  Hook up textdump(4) to build.

16 years agoMerge files:1.1260, db_capture.c:1.2, db_command.c:1.76,
rwatson [Mon, 31 Mar 2008 21:57:24 +0000 (21:57 +0000)]
Merge files:1.1260, db_capture.c:1.2, db_command.c:1.76,
db_textdump.c:1.1, ddb.h:1.46, kern_shutdown.c:1.187 from HEAD to
RELENG_7:

  Add textdump(4) facility, which provides an alternative form of kernel
  dump using mechanically generated/extracted debugging output rather than
  a simple memory dump.  Current sources of debugging output are:

  - DDB output capture buffer, if there is captured output to save
  - Kernel message buffer
  - Kernel configuration, if included in kernel
  - Kernel version string
  - Panic message

  Textdumps are stored in swap/dump partitions as with regular dumps, but
  are laid out as ustar files in order to allow multiple parts to be stored
  as a stream of sequentially written blocks.  Blocks are written out in
  reverse order, as the size of a textdump isn't known a priori.  As with
  regular dumps, they will be extracted using savecore(8).

  One new DDB(4) command is added, "textdump", which accepts "set",
  "unset", and "status" arguments.  By default, normal kernel dumps are
  generated unless "textdump set" is run in order to schedule a textdump.
  It can be canceled using "textdump unset" to restore generation of a
  normal kernel dump.

  Several sysctls exist to configure aspects of textdumps;
  debug.ddb.textdump.pending can be set to check whether a textdump is
  pending, or set/unset in order to control whether the next kernel dump
  will be a textdump from userspace.

  While textdumps don't have to be generated as a result of a DDB script
  run automatically as part of a kernel panic, this is a particular useful
  way to use them, as instead of generating a complete memory dump, a
  simple transcript of an automated DDB session can be captured using the
  DDB output capture and textdump facilities.  This can be used to
  generate quite brief kernel bug reports rich in debugging information
  but not dependent on kernel symbol tables or precisely synchronized
  source code.  Most textdumps I generate are less than 100k including
  the full message buffer.  Using textdumps with an interactive debugging
  session is also useful, with capture being enabled/disabled in order to
  record some but not all of the DDB session.

16 years agoMFC >2TB support
emaste [Mon, 31 Mar 2008 19:21:49 +0000 (19:21 +0000)]
MFC >2TB support

 aac.c 1.134, aac_disk.c 1.45, aacreg.h 1.25, aacvar.h 1.51:
  Add 64-bit array support for RAIDs > 2TB.  This corresponds to ~ Adaptec
  driver build 15317.

  Tested on:
  Adaptec 2230S, Firmware 4.2-0 (8205)
  ICP ICP5085BL, Firmware 5.2-0 (12814)

 aac.c 1.136, aac_ioctl.h 1.13:
  Implement FSACTL_LNX_GET_FEATURES and FSACTL_GET_FEATURES ioctls.  RAID
  tools (e.g. arcconf) need this to be able to create arrays larger than 2TB.

  Submitted by: Adaptec, via driver build 15317

The RELENG_7 and HEAD drivers are in sync as of this commit.

16 years agoMFC - diff reduction w/ HEAD
emaste [Mon, 31 Mar 2008 14:32:06 +0000 (14:32 +0000)]
MFC - diff reduction w/ HEAD

 aac.c 1.131:
  Diff reduction to Adaptec driver build 15317 (refactoring and code shuffling):

  - Resource allocation in aac_alloc (moved from from aac_init)
  - Interrupt setup in aac_setup_intr (from aac_attach)
  - Container probing in aac_get_container_info (from aac_startup and
    aac_handle_aif)
  - Firmware status check moved to aac_check_firmware from aac_init

 aac.c 1.132, aac_cam.c 1.31, aad_debug.c 1.24, aac_disk.c 1.44,
 aac_pci.c 1.67, aacvar.h 1.50:
  Diff reduction to Adaptec's driver (around build 15317): catch up with a
  change in debugging routines.

  The fwprintf macro in the AAC_DEBUG case (mapping to printf) isn't from the
  Adaptec driver.

 aac.c 1.135:
  Add \n to the end of a printf string and remove it from panic strings.

16 years agoMFC: 1.44: Fix splitting into words of the .for expression to
ru [Mon, 31 Mar 2008 10:06:12 +0000 (10:06 +0000)]
MFC: 1.44: Fix splitting into words of the .for expression to
allow for spaces in values.

16 years agoMFC rev. 1.10 of cryptotest.c and rev. 1.3 of cryptostats.c
matteo [Mon, 31 Mar 2008 06:49:03 +0000 (06:49 +0000)]
MFC rev. 1.10 of cryptotest.c and rev. 1.3 of cryptostats.c

Add missing includes and correct argument to sysctlbyname

PR: misc/120274

16 years agoMFC: ddb(4) output capture, ddb(4) scripting, BTX real mode, gptboot,
bmah [Mon, 31 Mar 2008 05:12:35 +0000 (05:12 +0000)]
MFC:  ddb(4) output capture, ddb(4) scripting, BTX real mode, gptboot,
wpi(4) fixes, hptrr(4) 1.2 update, chflags(1) -v, realpath(1) -q,
tzdata2008b, GNOME 2.22.

16 years agoMFC rev. 1.6
matteo [Sun, 30 Mar 2008 19:57:23 +0000 (19:57 +0000)]
MFC rev. 1.6
Fix incorrect handling of malloc failures

PR: bin/83369

16 years agoMFC rev. 1.97-1.98
matteo [Sun, 30 Mar 2008 19:42:34 +0000 (19:42 +0000)]
MFC rev. 1.97-1.98

Fix printing of unionfs mounts when using the -p option
Fix mount -p and mount -u -ocurrent on gjournaled FS

PR: bin/75585, bin/120162

16 years agoAdd -P <port> option to allow binding to a specific port.
matteo [Sun, 30 Mar 2008 19:39:29 +0000 (19:39 +0000)]
Add -P <port> option to allow binding to a specific port.

PR: bin/109494
Submitted by: mtm

16 years agoMerge bpf_filter.c:1.30 from HEAD to RELENG_7:
rwatson [Sun, 30 Mar 2008 17:55:18 +0000 (17:55 +0000)]
Merge bpf_filter.c:1.30 from HEAD to RELENG_7:

  Improve convergence of bpf_filter.c toward style(9).

  Submitted by:   csjp

16 years agoMerge kerneldump.h:1.10 from HEAD to RELENG_7:
rwatson [Sun, 30 Mar 2008 17:20:40 +0000 (17:20 +0000)]
Merge kerneldump.h:1.10 from HEAD to RELENG_7:

  Define a new kernel dump "architecture", TEXTDUMPMAGIC, which is used
  to identify textdumps in the swap/dump partition.  While textdumps
  aren't really an architecture, they are architecture-neutral and so
  don't really correspond to any existing architecture.

  Define a version number for textdumps, KERNELDUMP_TEXT_VERSION, of 1.

16 years agoMerge kerneldump.h:1.9 from HEAD to RELENG_7:
rwatson [Sun, 30 Mar 2008 17:20:04 +0000 (17:20 +0000)]
Merge kerneldump.h:1.9 from HEAD to RELENG_7:

  Minor style consistency improvements.

16 years agoMerge ddb.4:1.45 from HEAD to RELENG_7:
rwatson [Sun, 30 Mar 2008 17:10:35 +0000 (17:10 +0000)]
Merge ddb.4:1.45 from HEAD to RELENG_7:

  Add SCRIPTING section to describe new DDB scripting facilities.

  Update copyright.

16 years agoMerge ddb.4:1.44 from HEAD to RELENG_7:
rwatson [Sun, 30 Mar 2008 17:09:34 +0000 (17:09 +0000)]
Merge ddb.4:1.44 from HEAD to RELENG_7:

  Add description of 'debug.ddb.capture.data' sysctl to DBD output
  capture section, missed in previous commit.

16 years agoMerge Makefile:1.169, ddb/Makefile:1.1, ddb.8:1.1, ddb.c:1.1,
rwatson [Sun, 30 Mar 2008 17:07:10 +0000 (17:07 +0000)]
Merge Makefile:1.169, ddb/Makefile:1.1, ddb.8:1.1, ddb.c:1.1,
ddb.h:1.1, ddb_script.c:1.1 from HEAD to RELENG_7:

  Add command-line tool ddb(8), which allows DDB(4) scripts to be
  managed from userspace.  It is largely a wrapper for sysctl()
  calls, but because the sysctls for adding and removing scripts
  are awkward to use directly, this provides an easier-to-use
  interface.

16 years agoMerge files:1.1259, db_command.c:1.75, db_command.h:1.14, db_lex.c:1.23,
rwatson [Sun, 30 Mar 2008 17:03:58 +0000 (17:03 +0000)]
Merge files:1.1259, db_command.c:1.75, db_command.h:1.14, db_lex.c:1.23,
db_lex.h:1.15, db_main.c:1.7, db_script.c:1.1-1.2, ddb.h:1.45 from HEAD
to RELENG_7:

  Add a simple scripting facility to DDB(4), allowing the user to
  define a set of named scripts.  Each script consists of a list of DDB
  commands separated by ";"s that will be executed verbatim.  No higher
  level language constructs, such as branching, are provided for:
  scripts are executed by sequentially injecting commands into the DDB
  input buffer.

  Four new commands are present in DDB: "run" to run a specific script,
  "script" to define or print a script, "scripts" to list currently
  defined scripts, and "unscript" to delete a script, modeled on shell
  alias commands.  Scripts may also be manipulated using sysctls in the
  debug.ddb.scripting MIB space, although users will prefer to use the
  soon-to-be-added ddb(8) tool for usability reasons.

  Scripts with certain names are automatically executed on various DDB
  events, such as entering the debugger via a panic, a witness error,
  watchdog, breakpoint, sysctl, serial break, etc, allowing customized
  handling.

  Remove duplicate $FreeBSD$ that snuck in.

16 years agoMFC: nfs_srvsock.c rev. 1.106, 1.107
dfr [Sun, 30 Mar 2008 14:06:43 +0000 (14:06 +0000)]
MFC: nfs_srvsock.c rev. 1.106, 1.107
Don't call nfs_realign while holding locks.

16 years agoMFC to RELENG_7:
antoine [Sun, 30 Mar 2008 13:56:13 +0000 (13:56 +0000)]
MFC to RELENG_7:
  Add files to remove when MK_GCOV, MK_IPX or MK_NCP are defined.

  PR:             120492
  PR:             121118
  PR:             121121
  Submitted by:   KAMIYA Satosi, Richard Tector
  Approved by:    rwatson (mentor)
  MFC after:      1 month

16 years agoBump __FreeBSD_version in RELENG_7 to 700102 to reflect the
rwatson [Sun, 30 Mar 2008 09:20:13 +0000 (09:20 +0000)]
Bump __FreeBSD_version in RELENG_7 to 700102 to reflect the
addition of kdb_enter_why().

16 years agoMerge amd64/machdep.c:1.680, amd64/mp_watchdog.c:1.6,
rwatson [Sun, 30 Mar 2008 09:19:09 +0000 (09:19 +0000)]
Merge amd64/machdep.c:1.680, amd64/mp_watchdog.c:1.6,
uart_dev_at91usart.c:1.13, scsi_low.h:1.9, subr_ntoskrnl.c:1.94,
OsdDebug.c:1.14, dcons_os.c:1.20, ofw_consle.c:1.37,
dev/sio.c:1.473, syscons.c:1.454, uart_core.c:1.23,
union_subr.c:1.96, i386/machdep.c:1.664, i386/mp_watchdog.c:1.6,
ia64/machdep.c:1.228, kern_clock.c:1.206, kern_shutdown.c:1.186,
subr_kdb.c:1.25, subr_witness.c:1.239, vfs_subr.c:1.711,
ng_base.c:1.140, cbus/sio.c:1.247, pc98/machdep.c:1.399,
aim/machdep.c:1.107, pswitch.c:1.7, mac_test.c:19.3,
psycho.c:1.73, sparc64/machdep.c:1.140, sparc64/trap.c:1.89,
hvcons.c:1.7, sun4v/machdep.c:1.17, sun4v/trap.c:1.17, kdb.h:1.6
from HEAD to RELENG_7:

  Add a new 'why' argument to kdb_enter(), and a set of constants to use
  for that argument.  This will allow DDB to detect the broad category of
  reason why the debugger has been entered, which it can use for the
  purposes of deciding which DDB script to run.

  Assign approximate why values to all current consumers of the
  kdb_enter() interface.

For ABI/KPI reasons, the MFC creates a new function, kdb_enter_why(),
with the new argument, updating existing consumers to use that,
preserving kdb_enter() with the current argument, and wrapping it around
kdb_enter_why().

16 years agoMFC ng_pptpgre.c rev. 1.41-1.42
mav [Sun, 30 Mar 2008 08:01:48 +0000 (08:01 +0000)]
MFC ng_pptpgre.c rev. 1.41-1.42
Rewrite node to support multiple hooks, alike to ng_l2tp, to use one pair
of pptpgre and ksocket nodes for all calls between two peers. This patch
modifies node's API by adding new "session_%04x" hook names support, while
keeping backward compatibility.

16 years agoMFC
kib [Sun, 30 Mar 2008 05:39:24 +0000 (05:39 +0000)]
MFC
rev. 1.607 of sys/amd64/amd64/pmap.c
rev. 1.609 of sys/i386/i386/pmap.c

Prevent the overflow in the calculation of the next page directory.

16 years agoUn-break the build by adding a thread argument. This was removed in
csjp [Sun, 30 Mar 2008 02:19:27 +0000 (02:19 +0000)]
Un-break the build by adding a thread argument.  This was removed in
-CURRENT but this change has not been MFCed yet.

Submitted by: attilo

16 years agoMFC rev. 1.45:
attilio [Sat, 29 Mar 2008 23:15:04 +0000 (23:15 +0000)]
MFC rev. 1.45:
Fix a lock leak in the NTFS locking scheme.

16 years agoMFC rev. 1.21:
attilio [Sat, 29 Mar 2008 23:00:29 +0000 (23:00 +0000)]
MFC rev. 1.21:
Drop Giant lock before to destroy the kthread.

16 years agoMFC
jb [Sat, 29 Mar 2008 22:53:54 +0000 (22:53 +0000)]
MFC

stdio.h: 1.61
Allow an application to define FOPEN_MAX (like we allow for OPEN_MAX
in sys/syslimits.h).

awk/Makefile: 1.17
Allow awk to handle 64 files instead of just 20.

16 years agoMFC: rev. 1.32 key.c
bz [Sat, 29 Mar 2008 20:51:09 +0000 (20:51 +0000)]
MFC: rev. 1.32 key.c

  Fix a bug that when getting/dumping the soft lifetime we reported
  the hard lifetime instead.

16 years agoMFC: rev. 1.31 key.c
bz [Sat, 29 Mar 2008 20:48:47 +0000 (20:48 +0000)]
MFC: rev. 1.31 key.c

  Import change from KAME, rev. 1.362 kame/kame/sys/netkey/key.c

  In case of "new SA", we must check the hard lifetime of the old SA
  to find out if it is not permanent and we can delete it.

16 years agoMFC rev 1.134 ObsoleteFiles.inc
remko [Sat, 29 Mar 2008 13:53:07 +0000 (13:53 +0000)]
MFC rev 1.134 ObsoleteFiles.inc

  Document the removal data for usbdevs.h and usbdevs_data.h,
  sort the entry into it's correct place (behind 200407XX before
  200406XX because we have an explicit date here).

  PR:             misc/122098
  Submitted by:   "John Hein" <jhein@timing.com>
  MFC after:      3 days

Approved by: imp (mentor, implicit)

16 years agoMFC rev 1.84 route.c
remko [Sat, 29 Mar 2008 13:44:36 +0000 (13:44 +0000)]
MFC rev 1.84 route.c

  In route.c in newroute() there's a call to exit(0) if the command was
  'get'. Since rtmsg() always gets called and returns 0 on success and -1
  on failure, it's possible to exit with a suitable exit code by calling
  exit(ret != 0) instead, as is done at the end of newroute().

  PR: bin/112303
  Submitted by: bruce@cran.org.uk
  MFC after: 1 week

Approved by: imp (mentor, implicit)

16 years agoMFC rev 1.2 410.logincheck
remko [Fri, 28 Mar 2008 20:59:45 +0000 (20:59 +0000)]
MFC rev 1.2 410.logincheck

  Add a missing ;.

  PR:             misc/122069
  Submitted by:   taku@tekipaki.jp
  MFC after:      3 days
  Approved by:    imp (mentor, implicit trivial change).

Approved by: imp (mentor, implicit)

16 years agoMFC aac.c r1.133:
emaste [Fri, 28 Mar 2008 18:13:38 +0000 (18:13 +0000)]
MFC aac.c r1.133:
  Correct data direction flags in aac_bio_command() in the
  !AAC_FLAGS_RAW_IO && AAC_FLAGS_SG_64BIT case.

  Submitted by:   Adaptec

16 years agoMFC rev. 1.12 of sys/compat/linux/linux_futex.c
rdivacky [Fri, 28 Mar 2008 10:13:20 +0000 (10:13 +0000)]
MFC rev. 1.12 of sys/compat/linux/linux_futex.c
MFC rev. 1.3 of sys/compat/linux/linux_futex.h:

o Add stub support for some new futex operations,
so the annoying message is not printed.

o Don't warn about FUTEX_FD not being implemented
and return ENOSYS instead of 0 (eg. success).

o Clear FUTEX_PRIVATE_FLAG as we actually implement
only private futexes so there is no reason to
return ENOSYS when app asks for a private futex.
We don't reject shared futexes because they worked
just fine with our implementation so far.

Approved by: kib (mentor)
Tested by: bsam

16 years agoMFC
emaste [Thu, 27 Mar 2008 17:11:38 +0000 (17:11 +0000)]
MFC
 aac.c r1.129 aac_ioctl.h r1.12:

  Add ioctls FSACTL_SEND_LARGE_FIB, FSACTL_SEND_RAW_SRB,
  FSACTL_LNX_SEND_LARGE_FIB, and FSACTL_LNX_SEND_RAW_SRB, and correct size
  checks on FIBs passed in from userspace.  Both changes were obtained from
  Adaptec's driver build 15317.  Adaptec's commandline RAID tool arcconf uses
  these ioctls when creating a RAID-10 array (and probably other operations
  too).

 aac.c r1.130:

  Restore creation of passthrough devices with newer controller firmware by
  putting the correct size in the fib header.  Presumably the older firmware
  silently ignored a bad size field.

  (This change tested with a 3805 controller.  Passthrough devices were
  created when running firmware build 12814, but not 15323 or later.  With
  this change they're created for both old and new firmware versions.)

  Submitted by:   Adaptec

16 years agoMFC:
cokane [Thu, 27 Mar 2008 15:54:45 +0000 (15:54 +0000)]
MFC:

MFC of rev 1.40 to properly add the module dependency on mem, so that it will
be loaded on-demand with this module.

Approved by: imp

16 years agoMFC
kib [Thu, 27 Mar 2008 13:46:27 +0000 (13:46 +0000)]
MFC
rev. 1.682 of sys/amd64/amd64/machdep.c
rev. 1.16  of sys/amd64/ia32/ia32_signal.c
rev. 1.33  of sys/amd64/linux32/linux32_sysvec.c
rev. 1.666 of sys/i386/i386/machdep.c
rev. 1.152 of sys/i386/linux/linux_sysvec.c
rev. 1.39  of sys/i386/svr4/svr4_machdep.c
rev. 1.402 of sys/pc98/pc98/machdep.c

Modify the signal handler frame setup code to clear the DF {e,r}flags
bit on the amd64/i386 for the signal handlers.

16 years agoMFC aac.c r1.127
emaste [Wed, 26 Mar 2008 16:53:27 +0000 (16:53 +0000)]
MFC aac.c r1.127

  Avoid holding the aac_io_lock over copyout.

  Submitted by: Achim Leubner @ Adaptec.

16 years agoMFC Revision 1.27
lulf [Wed, 26 Mar 2008 16:28:50 +0000 (16:28 +0000)]
MFC Revision 1.27
- Fix a memory leak when re-discovering a gvinum configuration.

Approved by: pjd (mentor)

16 years agoMFC aac.c r1.126:
emaste [Wed, 26 Mar 2008 15:09:15 +0000 (15:09 +0000)]
MFC aac.c r1.126:

  Do not recursively acquire aac_io_lock in aac_ioctl_event.

16 years agoMFC aac.c r1.128:
emaste [Wed, 26 Mar 2008 14:22:22 +0000 (14:22 +0000)]
MFC aac.c r1.128:
  Change spelling and eliminate a typo in comments to reduce diffs with
  Adaptec's vendor driver.

16 years agoMFC 1.31: Change .8s port name restriction to .15s.
ume [Tue, 25 Mar 2008 13:14:29 +0000 (13:14 +0000)]
MFC 1.31: Change .8s port name restriction to .15s.
This change corresponds to inet.c 1.13.

16 years agoMFC of tzdata2008b
edwin [Tue, 25 Mar 2008 03:43:19 +0000 (03:43 +0000)]
MFC of tzdata2008b

Approved by: grog@ (mentor)

16 years agoMerge ddb.4:1.43 from HEAD to RELENG_7:
rwatson [Mon, 24 Mar 2008 21:25:08 +0000 (21:25 +0000)]
Merge ddb.4:1.43 from HEAD to RELENG_7:

  Document DDB capture facility.

16 years agoMerge files:1.1258, db_capture.c:1.1, db_command.c:1.74, db_input.c:1.37,
rwatson [Mon, 24 Mar 2008 21:24:10 +0000 (21:24 +0000)]
Merge files:1.1258, db_capture.c:1.1, db_command.c:1.74, db_input.c:1.37,
db_main.c:1.6, db_output.c:1.38, ddb.h:1.44 from HEAD to RELENG_7:

  Add a new DDB(4) facility, output capture.  Input and output from DDB
  may be captured to a memory buffer for later inspection using sysctl(8),
  or in the future, to a textdump.

  A new DDB command, "capture", is added, which accepts arguments "on",
  "off", "reset", and "status".

  A new DDB sysctl tree, debug.ddb.capture, is added, which can be used to
  resize the capture buffer and extract buffer contents.

16 years agoMerge kernel.h:1.138 from HEAD to RELENG_7:
rwatson [Mon, 24 Mar 2008 21:15:24 +0000 (21:15 +0000)]
Merge kernel.h:1.138 from HEAD to RELENG_7:

  Add a new kernel startup event for DDB services, which will include DDB
  output capture, scripting, and textdumps.

16 years agoMFC: 1.26
jkim [Mon, 24 Mar 2008 17:50:24 +0000 (17:50 +0000)]
MFC: 1.26

Update list of possible mixer devices.

16 years agoMFC: 1.24-1.26
jkim [Mon, 24 Mar 2008 17:49:34 +0000 (17:49 +0000)]
MFC: 1.24-1.26

- Check device masks and bypass printing headers if capable device does
not exist.  /etc/rc.d/mixer tried to restore non-existent recording
source because /var/var/db/mixer*-state contains '=rec' for example.
- Remove hardcoded mixer2 and mixer3 and do the right thing.
- Replace getopt(3) with hand-rolled option parser.  It was not able
to handle 'mixer -rec mic' although it is a valid command.
- Make '-s' and '-S' mutualy exclusive as mixer(8) says.
- Do not re-read recording source unless it has been modified.
- Clean up code and fix style(9) nits.

16 years agoMFC: 1.80-1.83
jkim [Mon, 24 Mar 2008 17:16:25 +0000 (17:16 +0000)]
MFC: 1.80-1.83

Prefer clock_gettime(2) over gettimeofday(2) and use CLOCK_MONOTONIC_FAST.
It is only used to track elapsed time and it does not have to be precise.
Fix compiler warnings and style(9) bugs.

16 years agoMFC:
emax [Mon, 24 Mar 2008 16:25:26 +0000 (16:25 +0000)]
MFC:

Separate SDP parameters data structures for the BNEP based profiles.

Generalize Service Availability SDP parameter creation.

Add mandatory "security description" SDP parameter to the PANU profile

Pointed-out by: Iain Hibbert < plunky at rya-online dot net >

16 years agoMFC to RELENG_7:
antoine [Mon, 24 Mar 2008 14:28:33 +0000 (14:28 +0000)]
MFC to RELENG_7:
  Make sysctl_kern_arnd return a random buffer instead of a random long,
  as it is expected by userland (stack protector guard setup for example).

  PR:             119129
  Approved by:    rwatson (mentor)
  MFC after:      1 month

16 years agoMFC
kib [Mon, 24 Mar 2008 13:12:43 +0000 (13:12 +0000)]
MFC
rev. 1.24 of sys/fs/devfs/devfs_rule.c
rev 1.218 of sys/vm/vm_mmap.c

Do not dereference cdev->si_cdevsw, use the dev_refthread() to properly
obtain the reference.

16 years agoMFC
kib [Mon, 24 Mar 2008 13:09:55 +0000 (13:09 +0000)]
MFC
rev. 1.210 of sys/kern/kern_conf.c
rev. 1.236 of sys/sys/conf.h

Fix two races in the handling of the d_gianttrick for the D_NEEDGIANT
drivers.

Do not free the memory allocated for the gianttrick cdevsw while holding
the dev_mtx.

16 years agoMFC rev 1.73 newfs.8
remko [Mon, 24 Mar 2008 10:46:00 +0000 (10:46 +0000)]
MFC rev 1.73 newfs.8

  Replace reference from vinum.8 to gvinum.8, it was advised in the PR to
  replace this with vinum.4, but that's the kernel interface manual, which
  is not appropriate in my understanding.  I think that gvinum is a suitable
  replacement for this.

  PR:             docs/121938
  Submitted by:   "Federico" <federicogalvezdurand at yahoo dot com>
  MFC after:      3 days

16 years agoMFC rev 1.9 drm_pciids.h
remko [Mon, 24 Mar 2008 10:43:41 +0000 (10:43 +0000)]
MFC rev 1.9 drm_pciids.h
MFC rev 1.7 i915_dma.c

  Add the i915 GME device to DRM.

  PR:             kern/121808
  Submitted by:   Volker Werth <volker at vwsoft dot com>
  Approved by:    imp (mentor, implicit for trivial changes)
  MFC after:      3 days

Approved by: imp (mentor, implicit)

16 years agoMFC rev 1.9 tinybsd
remko [Mon, 24 Mar 2008 10:39:34 +0000 (10:39 +0000)]
MFC rev 1.9 tinybsd

  Alert properly when we have stale mounts left after interupting
  a tinybsd build.  If we do not do this, we can accidentally remove
  critical files from directories like /lib (if mounted).

  PR:             misc/121763
  Submitted by:   Richard Arends < richard at unixguru dot nl >
  MFC after:      3 days

Approved by: imp (mentor, implicit)

16 years agoMFC rev. 1.292:
kib [Sun, 23 Mar 2008 06:52:01 +0000 (06:52 +0000)]
MFC rev. 1.292:
Fix the leak of the vmspace on the fork when the process limits
are exceeded.

16 years agoMFC:
davidxu [Sun, 23 Mar 2008 02:17:13 +0000 (02:17 +0000)]
MFC:
Add manual for sem_timedwait().

16 years agoMFC Revision 1.6:
davidxu [Sun, 23 Mar 2008 02:10:44 +0000 (02:10 +0000)]
MFC Revision 1.6:
> Use macro THR_CLEANUP_PUSH/POP.

16 years agoMFC: Repair handling of X11BASE and LOCALBASE
kris [Sat, 22 Mar 2008 15:13:26 +0000 (15:13 +0000)]
MFC: Repair handling of X11BASE and LOCALBASE

16 years agoMFC:
dfr [Sat, 22 Mar 2008 12:05:35 +0000 (12:05 +0000)]
MFC:
lockd.c 1.21, 1.22
rpc.lockd.8 1.18

Add the "-h <bindip>" option.

16 years agoMerge in_pcb.c:1.200 from HEAD to RELENG_7:
rwatson [Sat, 22 Mar 2008 08:55:23 +0000 (08:55 +0000)]
Merge in_pcb.c:1.200 from HEAD to RELENG_7:

  Fix indentation for a closing brace in in_pcballoc().

16 years agoMFC: rev. 1.9 ip_ipsec.c, 1.117 ip6_output.c, 1.18 ipsec_output.c
bz [Fri, 21 Mar 2008 23:22:07 +0000 (23:22 +0000)]
MFC: rev. 1.9 ip_ipsec.c, 1.117 ip6_output.c, 1.18 ipsec_output.c

  Correct IPsec behaviour with a 'use' level in SP but no SA available.
  In that case return an continue processing the packet without IPsec.

  PR:             121384
  Reported by:    Cyrus Rahman (crahman gmail.com)
  Tested by:      Cyrus Rahman (crahman gmail.com) [slightly older version]

16 years agoMFC: rev. 1.30 key.c
bz [Fri, 21 Mar 2008 23:15:01 +0000 (23:15 +0000)]
MFC: rev. 1.30 key.c

  Remove the "Fast " from the
  "Fast IPsec: Initialized Security Association Processing." printf.
  People kept asking questions about this after the IPsec shuffle.

  This still is the Fast IPsec implementation so no worries that it would
  be any slower now. There are no functional changes.

16 years agoMFC: rev. 1.9 ip6_ipsec.c, 1.116 ip6_output.c
bz [Fri, 21 Mar 2008 23:08:36 +0000 (23:08 +0000)]
MFC: rev. 1.9 ip6_ipsec.c, 1.116 ip6_output.c

  Correct reference counting on the SP for outgoing IPv6 IPsec connections.

  PR:             121374
  Reported by:    Cyrus Rahman (crahman gmail.com)
  Tested by:      Cyrus Rahman (crahman gmail.com)

16 years agoMFC: rev. 1.8 ip6_ipsec.c, 1.4 ip6_ipsec.h
bz [Fri, 21 Mar 2008 23:03:32 +0000 (23:03 +0000)]
MFC: rev. 1.8 ip6_ipsec.c, 1.4 ip6_ipsec.h

  #if 0 out a currently unsued (and incomplete) function: ip6_ipsec_mtu().
  No need to compile 'dead' code.
  I am leaving it in because we will have to review the concept and
  should use the common function in various places.

16 years agoMFC: rev. 1.115 ip6_output.c
bz [Fri, 21 Mar 2008 23:00:13 +0000 (23:00 +0000)]
MFC: rev. 1.115 ip6_output.c

  Replace the function name in two identical printfs
  by __func__, __LINE__ so we can distinguish them
  when people report a problem.

16 years agoMFC: Use the SMAP data from the loader if it is provided.
jhb [Fri, 21 Mar 2008 15:40:33 +0000 (15:40 +0000)]
MFC: Use the SMAP data from the loader if it is provided.

16 years agoMFC: Add constants for the different memory types in the SMAP table and
jhb [Fri, 21 Mar 2008 15:34:39 +0000 (15:34 +0000)]
MFC: Add constants for the different memory types in the SMAP table and
use the SMAP types and constants from <machine/pc/bios.h> in the boot code.

16 years agoMFC: Fix bug that prevented all CPUs that were marked as interrupt
jhb [Fri, 21 Mar 2008 15:23:24 +0000 (15:23 +0000)]
MFC: Fix bug that prevented all CPUs that were marked as interrupt
receivers from being used in certain cases.

16 years agoMFC:
syrinx [Fri, 21 Mar 2008 13:21:08 +0000 (13:21 +0000)]
MFC:
src/contrib/bsnmp/snmpd/main.c: Revision 1.1.1.14

Vendor patch: Prevent bsnmpd from dumping core when a module's init hook
returns an error.

Approved by: bz (mentor)

16 years agoMFC rev 1.45 agp_i810.c
remko [Thu, 20 Mar 2008 21:13:14 +0000 (21:13 +0000)]
MFC rev 1.45 agp_i810.c

  Add resume support to the agp_i810 family.

  Submitted by:   "Robert Noland" <rnoland at 2hip dot net>
  Reviewed by:    anholt
  Approved by:    anholt, imp (mentor)
  MFC after:      1 week

Approved by: imp (mentor)

16 years agoMFC: Restore the original hid_is_collection() test and fallback to testing
jhb [Thu, 20 Mar 2008 13:07:25 +0000 (13:07 +0000)]
MFC: Restore the original hid_is_collection() test and fallback to testing
the interface class, subclass, and protocol if that fails.

16 years agoMFC of 1.48
edwin [Thu, 20 Mar 2008 11:27:15 +0000 (11:27 +0000)]
MFC of 1.48

Add projects-all collection to cvs-supfile

PR: misc/121680
Submitted by: "Philip M. Gollucci" <pgollucci@p6m7g8.com>

16 years agoMFC:
mtm [Thu, 20 Mar 2008 10:53:18 +0000 (10:53 +0000)]
MFC:
The check for errors from the mount command did not work as
intended because another command (echo) is executed between
the mount command and the check.

Reported by: Sergey Baturov <sergey@toor.org.ru>

16 years agoMFC:
brueffer [Thu, 20 Mar 2008 08:59:04 +0000 (08:59 +0000)]
MFC:

Use a standard section 4 SYNOPSIS.