]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
16 years agoMFC rev. 1.181:
kib [Fri, 7 Dec 2007 14:30:26 +0000 (14:30 +0000)]
MFC rev. 1.181:
Check for the program headers alignment of the ELF images before
dereferencing. Unaligned access could cause panic on strict alignment
architectures.

Approved by: re (kensmith)

16 years agoMFC rev. 1.5, 1.6:
kib [Fri, 7 Dec 2007 14:16:53 +0000 (14:16 +0000)]
MFC rev. 1.5, 1.6:
Restore the branding of the ELF executables. The structure was optimized out.

Approved by: re (kensmith)

16 years agoMFC support for the Camellia block cipher
gnn [Fri, 7 Dec 2007 08:45:29 +0000 (08:45 +0000)]
MFC support for the Camellia block cipher

HEAD
Revision  Path
  1.16    src/lib/libipsec/pfkey_dump.c
  1.38    src/sbin/setkey/setkey.8
  1.12    src/sbin/setkey/token.l
  1.81    src/secure/lib/libcrypto/Makefile
  1.47    src/secure/lib/libcrypto/Makefile.inc
  1.8     src/secure/lib/libcrypto/opensslconf-amd64.h
  1.8     src/secure/lib/libcrypto/opensslconf-i386.h
  1.1205  src/sys/conf/files
  1.1     src/sys/crypto/camellia/camellia-api.c (new)
  1.1     src/sys/crypto/camellia/camellia.c (new)
  1.1     src/sys/crypto/camellia/camellia.h (new)
  1.6     src/sys/modules/crypto/Makefile
  1.15    src/sys/net/pfkeyv2.h
  1.1     src/sys/netinet6/esp_camellia.c (new)
  1.1     src/sys/netinet6/esp_camellia.h (new)
  1.25    src/sys/netinet6/esp_core.c
  1.19    src/sys/netipsec/xform_esp.c
  1.34    src/sys/opencrypto/cryptodev.c
  1.25    src/sys/opencrypto/cryptodev.h
  1.19    src/sys/opencrypto/cryptosoft.c
  1.9     src/sys/opencrypto/xform.c
  1.4     src/sys/opencrypto/xform.h

Approved by: re (kensmith)
Submitted by: Tomoyuki Okazaki <okazaki at kick dot gr dot jp>

16 years agoMFC r1.18:
kevlo [Fri, 7 Dec 2007 05:17:34 +0000 (05:17 +0000)]
MFC r1.18:

zic(8) should exit the loop when the end of the string is reached
due to the call to error(). The problem found by doing fuzz testing.

Approved by: re (kensmith)

16 years agoDUH, fix breakage of last checkin. Its kinda humorous,
jfv [Fri, 7 Dec 2007 04:01:16 +0000 (04:01 +0000)]
DUH, fix breakage of last checkin. Its kinda humorous,
the code is broken in 7 but that will never be a problem
because of defines, but it broke here, oh well :)

Approved by: r

16 years agoMFC r1.209
thompsa [Fri, 7 Dec 2007 03:46:23 +0000 (03:46 +0000)]
MFC r1.209

  Apply a workaround for the unkillable jail problem where some devices created
  within the jail are never freed.

Approved by: re (kensmith)

16 years agoMFC of a few important fixes done in RELENG_7 to 6
jfv [Fri, 7 Dec 2007 01:06:41 +0000 (01:06 +0000)]
MFC of a few important fixes done in RELENG_7 to 6
  - WITNESS lock problem due to naming of multi locks
  - Race in em_stop if you don't hold the TX lock
  - Bug in TSO code when you have fowarding and different
    MSS sizes (this more for completeness since TSO is not
    enabled in 6.3)

Essentially syncs the two drivers up to version 6.7.3

Approved by:re

16 years agoRegen.
jhb [Thu, 6 Dec 2007 22:00:32 +0000 (22:00 +0000)]
Regen.

16 years agoMFC: Add kern_msgsnd() and kern_msgrcv() and use them to fix msgsnd()
jhb [Thu, 6 Dec 2007 22:00:05 +0000 (22:00 +0000)]
MFC: Add kern_msgsnd() and kern_msgrcv() and use them to fix msgsnd()
and msgrcv() in 32-bit ABIs on 64-bit kernels.

16 years agoMFC: (1.21-1.23) cleanup, additional error checking
des [Thu, 6 Dec 2007 13:35:18 +0000 (13:35 +0000)]
MFC: (1.21-1.23) cleanup, additional error checking

Approved by: re (kensmith)

16 years agoMFC: Add a cross-reference to newgrp(1).
philip [Thu, 6 Dec 2007 10:51:40 +0000 (10:51 +0000)]
MFC: Add a cross-reference to newgrp(1).

Approved by: re (kensmith)

16 years agoFix a use-after-free.
philip [Thu, 6 Dec 2007 10:18:19 +0000 (10:18 +0000)]
Fix a use-after-free.

Submitted by: Ilja van Sprundel <ilja -at- netric.org>
Reviewed by: secteam
Approved by: re (kensmith)

16 years agoMFC if_iwi.c:1.59
philip [Thu, 6 Dec 2007 10:16:34 +0000 (10:16 +0000)]
MFC if_iwi.c:1.59
    if_ipw.c:1.34

  Plug two potential (root-only, local) information leaks.  buf is not
  initialized before use and returned integrally instead of up to size.

Submitted by: Ilja van Sprundel <ilja -at- netric.org>
Reviewed by: secteam
Approved by: re (kensmith)

16 years agoMFC: Always assume type #1 PCI config transactions for amd64 and relax the
jhb [Thu, 6 Dec 2007 08:26:18 +0000 (08:26 +0000)]
MFC: Always assume type #1 PCI config transactions for amd64 and relax the
probe for type #1 on i386.

16 years agoMFC: Change pci_cfgdisable() into a nop for type #1 similar to what other
jhb [Thu, 6 Dec 2007 08:21:23 +0000 (08:21 +0000)]
MFC: Change pci_cfgdisable() into a nop for type #1 similar to what other
OSs do.

16 years agoMFC: Don't delete files in the X11 socket directories under /tmp.
jhb [Thu, 6 Dec 2007 08:10:40 +0000 (08:10 +0000)]
MFC: Don't delete files in the X11 socket directories under /tmp.

16 years agoMFC: Properly sort 'sync' in the list of options passed to -o.
jhb [Thu, 6 Dec 2007 08:08:47 +0000 (08:08 +0000)]
MFC: Properly sort 'sync' in the list of options passed to -o.

16 years agoMFC if_re.c, rev 1.98 to RELENG_6
yongari [Thu, 6 Dec 2007 06:01:47 +0000 (06:01 +0000)]
MFC if_re.c, rev 1.98 to RELENG_6
Always honor promiscuous flag prior to programming Rx multicast
filter. This fixes a regression introduced in rev 1.89.

PR: 114632

16 years agoHeadphone / speakers automute fixup for Acer Aspire 4710 @ ALC268 laptop.
ariff [Thu, 6 Dec 2007 05:20:46 +0000 (05:20 +0000)]
Headphone / speakers automute fixup for Acer Aspire 4710 @ ALC268 laptop.

Tested by: Liyu, She

16 years agoVery belated MFC.
kmacy [Wed, 5 Dec 2007 22:05:49 +0000 (22:05 +0000)]
Very belated MFC.

  - fix qset to port binding as a proper fix for the problems encountered on the 4-port
  - fix the use after free seen when sending packets small enough to fit as an immediate
    and bpf peers are present
  - update to firmware rev 4.7 along with various small vendor fixes

MFC after: 3 days

16 years agoCall NET_LOCK_GIANT/NET_UNLOCK_GIANT around calls to protocol drain
rwatson [Wed, 5 Dec 2007 00:00:10 +0000 (00:00 +0000)]
Call NET_LOCK_GIANT/NET_UNLOCK_GIANT around calls to protocol drain
methods in mb_reclaim().  This is not an MFC, as debug.mpsafenet is
not present in 7.x or 8.x.  In practice, this likely resulted in
instability only on kernels with INVARIANTS, as the protocol drain
paths are generally MPSAFE.

PR: 116034
Reported by: Dan Lukes <dan@obluda.cz>
Discussed with: kmacy, alc
Approved by: re (kensmith)
Tested by: Eugene Grosbein <eugen at grosbein dot pp dot ru>

16 years agoMFC revision 1.3: Add /root/, /.cshrc, and /.profile to the default
cperciva [Tue, 4 Dec 2007 22:51:36 +0000 (22:51 +0000)]
MFC revision 1.3: Add /root/, /.cshrc, and /.profile to the default
UpdateIfUnmodified directive in order to avoid overwriting these when
users upgrade to future versions of FreeBSD.

Approved by:    re (kensmith)

16 years agoMFC: less v416.
delphij [Tue, 4 Dec 2007 22:41:44 +0000 (22:41 +0000)]
MFC: less v416.

Approved by: re (kensmith)

16 years agoMFC: libexec/rtld-elf/sparc64/reloc.c 1.16,
marius [Tue, 4 Dec 2007 20:00:48 +0000 (20:00 +0000)]
MFC: libexec/rtld-elf/sparc64/reloc.c 1.16,
     sys/sparc64/sparc64/elf_machdep.c 1.24

- Fix the handling of R_SPARC_OLO10, which is a bit of a special case
  in the way we implement handling of relocations.
  While at it replace some more ELF_R_TYPE which should have been
  ELF64_R_TYPE_ID but didn't cause problems so far.
- Sync a sanity check between kernel and rtld(1) and change it to be
  maintenance free regarding the type used for the lookup table.
- Sprinkle const on lookup tables.
- Use __FBSDID.

16 years agoMFC: turn on gdbserver for the arch that supports it.
obrien [Tue, 4 Dec 2007 18:00:17 +0000 (18:00 +0000)]
MFC: turn on gdbserver for the arch that supports it.

16 years agoMFC: product of patch(1)
obrien [Tue, 4 Dec 2007 16:28:10 +0000 (16:28 +0000)]
MFC: product of patch(1)

16 years agoGC this patch.
obrien [Mon, 3 Dec 2007 22:08:49 +0000 (22:08 +0000)]
GC this patch.

16 years agoRegen.
jhb [Mon, 3 Dec 2007 21:54:17 +0000 (21:54 +0000)]
Regen.

16 years agoMFC: Sync up SYSV IPC with HEAD some:
jhb [Mon, 3 Dec 2007 21:53:23 +0000 (21:53 +0000)]
MFC: Sync up SYSV IPC with HEAD some:
- Add kern_semctl() and use it for Linux, IBCS2, and SVR4 ABIs.
- Don't pass a bufsz pointer to kern_shmctl() for operations that don't
  need it.
- Add module dependencies for SYSV IPC modules to IBCS2 and SVR4.
- Use kern_shmctl() in SVR4.
- Use kern_msgctl(), kern_semctl(), and kern_shmctl() in IBCS2.
- Mark linux_ipc(), svr4_sys_shmsys(), and svr4_sys_semsys() MPSAFE.

16 years agoMFC 1.109: Remove call to ipcperm() in shmget_existing().
jhb [Mon, 3 Dec 2007 21:47:33 +0000 (21:47 +0000)]
MFC 1.109: Remove call to ipcperm() in shmget_existing().

16 years agoMFC: Unexpand PTRIN() in a few places.
jhb [Mon, 3 Dec 2007 21:42:29 +0000 (21:42 +0000)]
MFC: Unexpand PTRIN() in a few places.

16 years agoMFC: sys/amd64/include/elf.h 1.19; sys/arm/include/elf.h 1.8;
marius [Mon, 3 Dec 2007 21:30:36 +0000 (21:30 +0000)]
MFC: sys/amd64/include/elf.h 1.19; sys/arm/include/elf.h 1.8;
     sys/i386/include/elf.h 1.17; sys/ia64/include/elf.h 1.15;
     sys/powerpc/include/elf.h 1.8; sys/sparc64/include/elf.h 1.13, 1.14, 1.15;
     sys/sys/elf32.h 1.11, 1.12, 1.13; sys/sys/elf64.h 1.14, 1.16, 1.17;
     sys/sys/elf_common.h 1.17, 1.18 (partial), 1.19, 1.20, 1.21, 1.22;
     sys/sys/elf_generic.h 1.8

- Add GNU symbol versioning constants.
- Correct URL to ELF header documantation.
- Add Sparc TLS relocation definitions.
- Move the relocation definitions to the common elf header so that DTrace
  can use them on one architecture targeted to a different one.
  Add the additional ELF types defines in Sun's "Linker and Libraries"
  manual.
- Add `PN_XNUM', for supporting ELF objects with a large number of program
  header table entries.

Discussed with: jb (who in turn discussed the MFC with jkoshy)

16 years agoMFC:
obrien [Mon, 3 Dec 2007 17:32:02 +0000 (17:32 +0000)]
MFC:
+ Turn on gdbserver for the arch that supports it.
+ Fix static/extern mismatch.
+ Remove extern int verbose declaration.

16 years agoMFC r1.6:
jkoshy [Mon, 3 Dec 2007 11:00:39 +0000 (11:00 +0000)]
MFC r1.6:
"Revert revision 1.4.
 Intel CPUs with family 0x6, model 0xE and later (i.e., Intel Core(TM))
 have a PMC architecture that differs somewhat from previous CPUs in
 family 0x6.  Even though the basic programming model is similar, the
 documented set of legal values that may be loaded into their PMC MSRs
 differs from that of the previous PMCs in family 0x6 and reusing bit
 values legal for the older PMCs could result in undefined behaviour in
 the general case."

16 years agoForced commit to correct file handle reversal in previous commit. The
marcus [Sun, 2 Dec 2007 23:46:27 +0000 (23:46 +0000)]
Forced commit to correct file handle reversal in previous commit.  The
message should have read:

This is a partial MFC of rev 1.126 from HEAD's libkse.  This only merges the
fix which causes stderr_debug to write output to STDOUT_FILENO instead
of STDERR_FILENO.  This is known to fix (or workaround) some mono-related
build problems.

Approved by: re (kensmith)

16 years agoMFC: rev 1.126
marcus [Sun, 2 Dec 2007 23:42:38 +0000 (23:42 +0000)]
MFC: rev 1.126

This is a partial MFC of rev 1.126 from HEAD's libkse.  This only merges the
fix which causes stderr_debug to write output to STDERR_FILENO instead
of STDOUT_FILENO.  This is known to fix (or workaround) some mono-related
build problems.

Approved by: re (kensmith)

16 years agoMFC:
cognet [Sun, 2 Dec 2007 14:38:21 +0000 (14:38 +0000)]
MFC:
gnu/usr.bin/gdb/arch/arm/nm-fbsd.h rev 1.2
gnu/usr.bin/gdb/arch/arm/Makefile rev 1.2
gnu/usr.bin/gdb/arch/arm/armfbsd-nat.c 1.2
gnu/usr.bin/gdb/arch/arm/armfbsd-tdep.c rev 1.2
gnu/usr.bin/gdb/arch/arm/init.c rev 1.2
Allow gdb to attach live process.
Thread support for arm.

Approved by: re (kensmith)

16 years agoMFC:
cognet [Sun, 2 Dec 2007 14:21:27 +0000 (14:21 +0000)]
MFC:
arm/at91/kb920x_machdep.c rev 1.24, 1.25 and 1.26
arm/at91/std.at91 rev 1.4
arm/at91/std.kb920x rev 1.5
arm/at91/at91rm92reg.h rev 1.6
conf/options.arm 1.18
Small tweaks to be able to load the kernel at a different address than
0x20000000 + add an option to override the default value of the master clock
frequency.
arm/at91/if_ate.c rev 1.21:
In ate_get_mac(), try to get the mac address in the right order, at least
in the same order as it's set in ate_set_mac.

arm/conf/HL200: config file for the Hot-e HL200

Approved by: re (kensmith)

16 years agoThis commit was manufactured by cvs2svn to create branch 'RELENG_6'.
cvs2svn [Sun, 2 Dec 2007 13:10:43 +0000 (13:10 +0000)]
This commit was manufactured by cvs2svn to create branch 'RELENG_6'.

16 years agoMFC rev 1.29 atacontrol.8
remko [Sun, 2 Dec 2007 09:01:18 +0000 (09:01 +0000)]
MFC rev 1.29 atacontrol.8

  Expand the EXAMPLES section for atacontrol.8

  PR:             docs/117310
  Submitted by:   Ted Mittelstaedt <tedm at ipinc dot net>
                  with minor modifications by me.

Approved by:    re (hrs)

16 years agoMFC rev 1.64 sysctl.8
remko [Sun, 2 Dec 2007 09:00:36 +0000 (09:00 +0000)]
MFC rev 1.64 sysctl.8

  Remove mentionings of kern.dumpdev which is no longer available.

  PR:             docs/113570
  Submitted by:   lawrance
  MFC After:      3 days (where applicable)

Approved by:    re (hrs)

16 years agoMFC rev 1.41, 1.42 mdconfig.8
remko [Sun, 2 Dec 2007 08:58:46 +0000 (08:58 +0000)]
MFC rev 1.41, 1.42 mdconfig.8

  Sync with md(4)'s information regarding the swap backend.

  PR:             docs/115721
  Submitted by:   Stefan Lambrev <stefan.lambrev@moneybookers.com>
  MFC After:      3 days

  Every newline should start on it's own line. I didn't do that in the
  previous commit, so make it happen now.

  Prodded by:     brueffer

Approved by:    re (hrs)

16 years agoMFC rev 1.7 newsyslog.conf.5
remko [Sun, 2 Dec 2007 08:57:47 +0000 (08:57 +0000)]
MFC rev 1.7 newsyslog.conf.5

  s/effect/affect/

  PR:             docs/118266
  Submitted by:   "Kim Scarborough" <sluggo at unknown dot nu>
  MFC After:      3 days

Approved by:    re (hrs)

16 years agoMFC rev 1.8 ichsmb.4
remko [Sun, 2 Dec 2007 08:56:37 +0000 (08:56 +0000)]
MFC rev 1.8 ichsmb.4

  Add information about the ICH6 and ICH7 being supported since recently.

MFC rev 1.20 ichsmb_pci.c

  Add the Intel 82801FB (ICH6) SMBus controller and the
  Intel 82801GB (ICH7) SMBus controller.

  PR:             85106 [1]
  PR:             99663 [2]
  Approved by:    imp (mentor), jhb
  Submitted by:   Oliver Fromme <olli at lurza.secnetix dot de>, [1]
                  Arthur Hartwig <arthur dot hartwig at nokia dot com>, [1]
                  Lowell Gilbert <lgfbsd at be-well dot ilk dot org> [2]@
  MFC After:      3 days

Approved by:    re (hrs), imp (mentor, implicit)

16 years agoMFC rev 1.45 rl.4
remko [Sun, 2 Dec 2007 08:54:59 +0000 (08:54 +0000)]
MFC rev 1.45 rl.4

  Add the Planex FNW-3603TX card to the list.

MFC rev 1.172 if_rl.c
MFC rev 1.68  if_rlreg.h

  Add the FNW3603TX Planex NIC.

  PR:             76081
  Approved by:    imp (mentor)
  Submitted by:   umi at pocke dot org
  MFC After:      3 days

Approved by:    re (hrs), imp (mentor, implicit)

16 years agoMFC:
darrenr [Sat, 1 Dec 2007 00:52:48 +0000 (00:52 +0000)]
MFC:
Fix 3 issues relating to the use of "auth" rules in IPFilter, from sourceforge:
1837014 Kernel panics after authentication of an outgoing packet
1836992 Potential bugs in packet auth code (w/patches)
1836967 Kernel panic when using auth rule with keep state
and another reported only to FreeBSD by Andiry (see PR)

PR: kern/118251
Submitted by: Andriy Syrovenko <andriys@gmail.com>
Reviewed by: darrenr
Approved by: re

16 years agoMFC: (revision 1.47, 1.48)
ariff [Fri, 30 Nov 2007 15:11:42 +0000 (15:11 +0000)]
MFC: (revision 1.47, 1.48)

- Add missing MCP65 id which was accidentally removed in previous commit.
- Add Analog Devices AD1984 codec id.
- Enable pcbeep control for Acer + ALC268 (nid 29). Give enough (fake)
  hints so the parser will grab it and allocate "speaker" control.
- Fix regression while preparing DAC and ADC for multichannel
  format. Since playback policy is to output to every possible path,
  ensure that each DAC is started.

Reported / Tested by: Guy Brand

16 years agoNew errata: SA-07:09.random.
bmah [Fri, 30 Nov 2007 05:55:05 +0000 (05:55 +0000)]
New errata:  SA-07:09.random.

16 years agoUse "6.3-stable" and "7.2" manpage entities for base system and X.org
bmah [Fri, 30 Nov 2007 05:25:21 +0000 (05:25 +0000)]
Use "6.3-stable" and "7.2" manpage entities for base system and X.org
respectively.

16 years agoMFC r1.22
thompsa [Thu, 29 Nov 2007 19:05:22 +0000 (19:05 +0000)]
MFC r1.22

 Have the lagg interface generate link up/down events, this fixes using
 carp+lagg together.

Approved by: re (kensmith)

16 years agoMFC rev. 1.204: fix a typo in ipfw table usage example.
maxim [Thu, 29 Nov 2007 18:37:01 +0000 (18:37 +0000)]
MFC rev. 1.204: fix a typo in ipfw table usage example.

Approved by: re (kensmith)

16 years agoCorrect a random value disclosure in random(4).
simon [Thu, 29 Nov 2007 16:06:12 +0000 (16:06 +0000)]
Correct a random value disclosure in random(4).

Security: FreeBSD-SA-07:09.random

16 years agoMFC(1.14): Fixing a double free bug which will cause tail to dump core when
avatar [Thu, 29 Nov 2007 03:54:56 +0000 (03:54 +0000)]
MFC(1.14): Fixing a double free bug which will cause tail to dump core when
there's no tailing newline(\n) character.

PR: bin/118267
Reviewed by: kib
Approved by: re (kensmith)

16 years agoRevert the "machine" directive part of the previous commit in
marius [Wed, 28 Nov 2007 19:47:36 +0000 (19:47 +0000)]
Revert the "machine" directive part of the previous commit in
order to unbreak existing configs and LINT.

16 years agoMFC: fix situation where GDB gives incorrect backtraces when a signal
obrien [Wed, 28 Nov 2007 16:55:39 +0000 (16:55 +0000)]
MFC: fix situation where GDB gives incorrect backtraces when a signal
     handler is in the call chain.

Approved by: re(kensmith)

16 years agoSync with HEAD.
obrien [Wed, 28 Nov 2007 16:41:47 +0000 (16:41 +0000)]
Sync with HEAD.
Approved by: re(gnn)

16 years ago* Fix support for followings:
ariff [Tue, 27 Nov 2007 23:37:48 +0000 (23:37 +0000)]
* Fix support for followings:
  o Acer Aspire 4520 laptop
    - jack sensing / automute
  o Toshiba Satellite A135-S4527 laptop
    - jack sensing / automute
      Tested by: lioux
  o Apple Macbook 3 (is it?)
    - require gpio0 (for speakers) and ovref50 (for headphone)
      to make it works
    - jack sensing / automute
      Tested by: Ed Schouten
* Add Nvidia MCP67 controller ids.
* Be sensible about simmilar controller with multiple pci ids.
* Connect unused DAC/ADC to stream#0 rather than forcing each of them
  managing their own stream.

Approved by: re (kensmith)

16 years agoSync with the other archs and move the "machine" directive as
marius [Tue, 27 Nov 2007 21:17:09 +0000 (21:17 +0000)]
Sync with the other archs and move the "machine" directive as
well as mem(4) from GENERIC to DEFAULTS.

16 years agoMFC: Bump up the number of ttys supported by pty(4) to 512.
jhb [Tue, 27 Nov 2007 18:43:09 +0000 (18:43 +0000)]
MFC: Bump up the number of ttys supported by pty(4) to 512.

Approved by: re (kensmith)

16 years agoMFC: Expand critical section coverage for ithread scheduling.
jhb [Tue, 27 Nov 2007 17:46:18 +0000 (17:46 +0000)]
MFC: Expand critical section coverage for ithread scheduling.

Approved by: re (kensmith)

16 years agoCleanup the alpha bus dma code a bit and sync it up with i386. Changes
jhb [Tue, 27 Nov 2007 17:43:49 +0000 (17:43 +0000)]
Cleanup the alpha bus dma code a bit and sync it up with i386.  Changes
include:
- Honor alignment and boundary restrictions on DMA tags by using bounce
  pages for misaligned buffers and not coalescing pages if the resulting
  segment would cross a boundary.
- Teach the _bus_dmamap_load_buffer() helper function to use bounce pages
  when needed and change bus_dmamap_load() to use the helper function
  instead of largely duplicating it.  As a side effect, this enables bounce
  page support for the other load routines (load_mbuf(), load_mbuf_sg(),
  and load_uio()).

Honoring the boundary restrictions partially helps with the Alpha ATA DMA
problem.  More work is needed for that however (and forthcoming).

PR: alpha/75317
Tested by: wilko
Approved by: re (kensmith)

16 years agoMFC revision 1.31:
marck [Tue, 27 Nov 2007 17:00:35 +0000 (17:00 +0000)]
MFC revision 1.31:

devinfo(8) manual page refers to pciconfr(8).  Add back reference for
completeness.

Approved by: re (kensmith)

16 years agoMFC(if_an.c:1.85, if_anreg.h:1.24): Trying to eliminate a racing as well as
avatar [Tue, 27 Nov 2007 08:11:13 +0000 (08:11 +0000)]
MFC(if_an.c:1.85, if_anreg.h:1.24): Trying to eliminate a racing as well as
reducing the chance of device removal(PCCARD) panic by replacing the
timeout(9) with callout(9) APIs.

Tested by: dhw
Approved by: re (gnn)

16 years agoThis commit was manufactured by cvs2svn to create branch 'RELENG_6'.
cvs2svn [Mon, 26 Nov 2007 21:30:00 +0000 (21:30 +0000)]
This commit was manufactured by cvs2svn to create branch 'RELENG_6'.

16 years agoMFC: UPDATING 1.512, sys/sparc64/conf/DEFAULTS 1.11
marius [Mon, 26 Nov 2007 21:04:59 +0000 (21:04 +0000)]
MFC: UPDATING 1.512, sys/sparc64/conf/DEFAULTS 1.11

Let sunkbd(4) emulate an AT keyboard by default.
This has the following benefits:
- allows to use the AT keyboard maps in share/syscons/keymaps with
  sunkbd(4),
- allows to use kbdmux(4) with sunkbd(4),
- allows Sun RS232 keyboards to be configured and used the same
  way as Sun USB keyboards driven by ukbd(4) (which also does AT
  keyboard emulation) with X.Org, putting an end to the problem
  of native support for the former in X.Org being broken over and
  over again.

Approved by: re (kensmith)

16 years agoMFC: Expand critical section coverage so that shared fast and ithread handlers
scottl [Mon, 26 Nov 2007 15:08:35 +0000 (15:08 +0000)]
MFC: Expand critical section coverage so that shared fast and ithread handlers
don't stall.  Unlike 8-CURRENT and 7-STABLE, sparc64 and powerpc in 6-STABLE
do not appear to have this problem.

Approved by: re

16 years ago- Put __mb_sb_limit symbol back to libc to ease users' pain when upgrading
rafan [Mon, 26 Nov 2007 03:29:17 +0000 (03:29 +0000)]
- Put __mb_sb_limit symbol back to libc to ease users' pain when upgrading
  their 6-STABLE system. This is necessary because we have this symbol
  exported between 20071025 and 20071030. Binaries built during that perios
  will be broken after 602115.

Requested by: many
Approved by: re (kensmith)

16 years agoMFC revision 1.27:
davidxu [Mon, 26 Nov 2007 02:44:05 +0000 (02:44 +0000)]
MFC revision 1.27:
In _pthread_key_create() ensure that libkse is initialized.

Approved by: re (kensmith)

16 years agoMuch belatedly MFC the ipfwpcap utility.
phk [Sun, 25 Nov 2007 20:10:13 +0000 (20:10 +0000)]
Much belatedly MFC the ipfwpcap utility.

Approved by: re (ken)

16 years agoThe fix for blocked select/poll/kqueue (rev 1.184.2.3) wasn't applied
dumbbell [Sun, 25 Nov 2007 17:31:42 +0000 (17:31 +0000)]
The fix for blocked select/poll/kqueue (rev 1.184.2.3) wasn't applied
correctly: one line was missing.

Approved by: re (kensmith)

16 years agoMFC 1.193:
dumbbell [Sun, 25 Nov 2007 11:54:27 +0000 (11:54 +0000)]
MFC 1.193:
  The kernel uses two ways to write data on a pipe:
      o  buffered write, for chunks smaller than PIPE_MINDIRECT bytes
      o  direct write, for everything else

  A call to writev(2) may receive struct iov of various size and the
  kernel may have to switch from one solution to the other. Before doing
  this, it must wake reader processes and any select/poll/kqueue up.

  This commit fixes a bug where select/poll/kqueue are not triggered
  when switching from buffered write to direct write. It adds calls to
  pipeselwakeup().

  I give more details on freebsd-arch@:
  http://lists.freebsd.org/pipermail/freebsd-arch/2007-September/006790.html

  This should fix issues with Erlang (lang/erlang) and kqueue.

Reported by: Rickard Green (Erlang)
Approved by: re (kensmith)

16 years agoGet ready for packages-6.3-release to exist.
kensmith [Sun, 25 Nov 2007 06:20:35 +0000 (06:20 +0000)]
Get ready for packages-6.3-release to exist.

Approved by: re (implicit)

16 years agoAdjust __FreeBSD_version now that RELENG_6_3 has been created.
kensmith [Sun, 25 Nov 2007 06:17:51 +0000 (06:17 +0000)]
Adjust __FreeBSD_version now that RELENG_6_3 has been created.

Approved by: re (implicit)

16 years agoMerge kern_proc.c:1.255 from HEAD to RELENG_6:
rwatson [Sat, 24 Nov 2007 19:45:57 +0000 (19:45 +0000)]
Merge kern_proc.c:1.255 from HEAD to RELENG_6:

  Test that p_textvp is non-NULL be dereferencing, as no executable vnode is
  set for kernel processes.

  Reported by:    Skip Ford <skip at menantico dot com>

Approved by:    re (kensmith)

16 years agoForced commit to .mc files to force creation of new .cf files for mergemaster.
gshapiro [Thu, 22 Nov 2007 16:20:31 +0000 (16:20 +0000)]
Forced commit to .mc files to force creation of new .cf files for mergemaster.

Approved by:    re (kensmith)

16 years agoUpdate with the latest fixes from -current.
sos [Thu, 22 Nov 2007 07:50:37 +0000 (07:50 +0000)]
Update with the latest fixes from -current.

Approved by: re@

16 years agoFix bug in handling SDP continuation state.
emax [Wed, 21 Nov 2007 17:36:14 +0000 (17:36 +0000)]
Fix bug in handling SDP continuation state.

Approved by: re (kensmith)
Reported by: Eric Millbrandt emillbrandt at coldhaus dot com

16 years agoAllow search for any UUID entered by user.
emax [Wed, 21 Nov 2007 17:30:50 +0000 (17:30 +0000)]
Allow search for any UUID entered by user.

Approved by: re (kensmith)

16 years agoMFC: Teach kgdb how to handle double fault frames on i386.
jhb [Wed, 21 Nov 2007 16:47:15 +0000 (16:47 +0000)]
MFC: Teach kgdb how to handle double fault frames on i386.

Approved by: re (kensmith)

16 years agoMFC: Add support for debugging double fault frames.
jhb [Wed, 21 Nov 2007 16:41:51 +0000 (16:41 +0000)]
MFC: Add support for debugging double fault frames.

Approved by: re (kensmith)

16 years agoMFC: Add a trailing \0 to the read error string.
jhb [Wed, 21 Nov 2007 16:22:34 +0000 (16:22 +0000)]
MFC: Add a trailing \0 to the read error string.

Approved by: re (kensmith)

16 years agoMFC revisions 1.11,1.12: Unbreak "freebsd-update rollback" applied to
cperciva [Wed, 21 Nov 2007 14:37:03 +0000 (14:37 +0000)]
MFC revisions 1.11,1.12: Unbreak "freebsd-update rollback" applied to
minor version upgrades, by being more careful about the order in which
files are rolled back to their old versions.

Approved by: re (kensmith)

16 years agoforced commit (no change) to fix PR number
dhartmei [Wed, 21 Nov 2007 13:52:04 +0000 (13:52 +0000)]
forced commit (no change) to fix PR number

PR: kern/118154
Approved by: re (obrien)

16 years agoMFC:
glebius [Wed, 21 Nov 2007 12:14:00 +0000 (12:14 +0000)]
MFC:
  - Merge all the ng_send_fn2* functions into one - ng_send_fn2(),
    removing some copy&pasted code.
  - Reduce copy and paste in ng_apply_item().
  - Resurrect ng_send_fn() as a valid symbol, not a define.

  Reviewed by: mav, julian

Approved by: re (kensmith)

16 years agorestrict the tcp.finwait timeout (45s) to state combinations where we have seen...
dhartmei [Wed, 21 Nov 2007 06:25:59 +0000 (06:25 +0000)]
restrict the tcp.finwait timeout (45s) to state combinations where we have      seen a FIN from both sides (whether ACKed or not) and use tcp.closing (900s)    for half closed connections.  otherwise half closed connections will time out   within 45s.

PR: kern/11854
Submitted by: Jan Srzednicki
Approved by: re@ (kensmith@)
Obtained from: OpenBSD (r1.494)

16 years ago- Back out previous ctype(3) fix for UTF-8 locale due to forward ABI
rafan [Wed, 21 Nov 2007 01:31:49 +0000 (01:31 +0000)]
- Back out previous ctype(3) fix for UTF-8 locale due to forward ABI
  compatibility is still broken as we add new symbols to libc. Those
  symboles are __sbmaskrune, __sbistype, __sbtoupper and __sbtolower.
  The latter three are directly referred by binaries use ctype(3) family
  functions (see include/ctype.h for details). This means if a binary
  built on 6.3, it uses these symbols that are not available on older
  system.
- As this has been in 6 for a month, I intentionally leave these symbols
  in libc but map them to original version. So binary built after 602113
  will not be broken after this commit.
- Bump __FreeBSD_version for this back-out

PR: 116363
Discussed with: kris, kensmith
Approved by: re (kensmith)

16 years agoUpdates to build infrastructure for the MFC of IPFilter into RELENG_6
darrenr [Mon, 19 Nov 2007 00:48:39 +0000 (00:48 +0000)]
Updates to build infrastructure for the MFC of IPFilter into RELENG_6

16 years agoThis commit was manufactured by cvs2svn to create branch 'RELENG_6'.
cvs2svn [Sun, 18 Nov 2007 18:11:17 +0000 (18:11 +0000)]
This commit was manufactured by cvs2svn to create branch 'RELENG_6'.

16 years agoMFC IPFilter update from 4.1.13 to 4.1.28, including additional fixes applied
darrenr [Sun, 18 Nov 2007 11:03:29 +0000 (11:03 +0000)]
MFC IPFilter update from 4.1.13 to 4.1.28, including additional fixes applied
post 4.1.28 for FreeBSD.  See src/contrib/ipfilter/HISTORY for more details
of the bugs fixed, etc.

16 years agoMFC Add pathname to the linker_file structure.
jb [Sun, 18 Nov 2007 00:15:32 +0000 (00:15 +0000)]
MFC Add pathname to the linker_file structure.

16 years agoRe-add $FreeBSD$ lost during vendor merge of OpenBSM 1.0 to RELENG_6.
rwatson [Sat, 17 Nov 2007 22:14:29 +0000 (22:14 +0000)]
Re-add $FreeBSD$ lost during vendor merge of OpenBSM 1.0 to RELENG_6.
No $FreeBSD$ tags in the vendor code, but we need them in FreeBSD to
support mergemaster and related tools.

Spotted by: Pawel Worach

16 years agoMFC arm/xscale/ixp425/files.ixp425 up to rev 1.4, add IxNpeMicrocode.dat.uu
cognet [Sat, 17 Nov 2007 18:24:46 +0000 (18:24 +0000)]
MFC arm/xscale/ixp425/files.ixp425 up to rev 1.4, add IxNpeMicrocode.dat.uu
Now that Intel changed the license for the NPE firmware, import it directly
hexed into our tree, instead of requiring the user to download it.

16 years agoMFC:
cognet [Sat, 17 Nov 2007 18:22:57 +0000 (18:22 +0000)]
MFC:
sys/arm/xscale/ixp425/ixp425_npe.c rev 1.6
sys/arm/xscale/ixp425/if_npe.c rev 1.6
sys/arm/xscale/ixp425/ixp425_npevar.h rev 1.2

date: 2007/05/24 16:31:22;  author: sam;  state: Exp;  lines: +3 -3
Search for a proper ucode image to use by incrementing the minor
release number up to the max.  This should eliminate the need to
tweak the default imageid define for later releases that are found
on the Intel web site.

Approved by: re (kensmith)

16 years agoMFC: Add the bump of the doc date missed in previous MFC.
jhb [Sat, 17 Nov 2007 16:51:58 +0000 (16:51 +0000)]
MFC: Add the bump of the doc date missed in previous MFC.

16 years agoMFC: Some minor whitespace and style fixes.
jhb [Sat, 17 Nov 2007 16:50:20 +0000 (16:50 +0000)]
MFC: Some minor whitespace and style fixes.

16 years agoMFC: Document -w flag.
jhb [Sat, 17 Nov 2007 16:49:45 +0000 (16:49 +0000)]
MFC: Document -w flag.

16 years agoMFC: Rename the private lookup() routine in kthr.c to kgdb_lookup() and
jhb [Sat, 17 Nov 2007 16:45:38 +0000 (16:45 +0000)]
MFC: Rename the private lookup() routine in kthr.c to kgdb_lookup() and
make it public so other parts of kgdb can use it.

16 years agoMFC: nfs_socket.c 1.148
ups [Fri, 16 Nov 2007 21:24:54 +0000 (21:24 +0000)]
MFC: nfs_socket.c 1.148
Log:  NetApp filers return corrupt post op attrs in the wcc on NFS error responses.
This is easy to reproduce for EROFS. I am not sure if the attrs can be corrupt
for other NFS error responses. For now, disabling wcc pre-op attr checks and
post-op attr loads on NFS errors (sysctl'ed).

16 years agoMFC:
fjoe [Fri, 16 Nov 2007 04:29:01 +0000 (04:29 +0000)]
MFC:

Import two binutils header files from FSF 2.15 branch.
These fix binutils compilation on i386/amd64 with GCC 4.1 and
have no other effect.

This fixes RELENG_6 build on RELENG_7/HEAD.

Approved by: re (kensmith)

16 years agoMFC: Make it easier to add more ptys to the pty(4) driver.
jhb [Thu, 15 Nov 2007 20:20:54 +0000 (20:20 +0000)]
MFC: Make it easier to add more ptys to the pty(4) driver.

Approved by: re (kensmith)