]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/log
FreeBSD/stable/8.git
14 years agoMFC r199458: Add pwait utility, which waits for any process to terminate.
jilles [Wed, 23 Dec 2009 22:59:03 +0000 (22:59 +0000)]
MFC r199458: Add pwait utility, which waits for any process to terminate.

This is similar to the Solaris utility of the same name.

Some use cases:
* rc.subr's wait_for_pids
* interactive use, e.g. to shut down the computer when some task is done
  even if the task is already running

git-svn-id: svn://svn.freebsd.org/base/stable/8@200927 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r200731:
bcr [Wed, 23 Dec 2009 16:30:39 +0000 (16:30 +0000)]
MFC r200731:
Reference the correct man page for firmware(9).

PR: docs/140986
Submitted by: Glen Barber (glen dot j dot barber at gmail dot com)
Reviewed by: sam
Approved by: sam, jkois (mentor)

git-svn-id: svn://svn.freebsd.org/base/stable/8@200903 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r198520, r198857: fdc(4) module unload fixes
jh [Wed, 23 Dec 2009 11:35:25 +0000 (11:35 +0000)]
MFC r198520, r198857: fdc(4) module unload fixes

PR: kern/104079
Approved by: trasz (mentor)

git-svn-id: svn://svn.freebsd.org/base/stable/8@200895 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r200572:
bms [Tue, 22 Dec 2009 20:33:27 +0000 (20:33 +0000)]
MFC r200572:
 Add missing #include <sys/ktr.h>.

Submitted by: Hideki Yamamoto

git-svn-id: svn://svn.freebsd.org/base/stable/8@200869 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r200375:
mav [Tue, 22 Dec 2009 20:17:03 +0000 (20:17 +0000)]
MFC r200375:
Add one more set of codec IDs.

git-svn-id: svn://svn.freebsd.org/base/stable/8@200866 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r200414:
mav [Tue, 22 Dec 2009 20:00:20 +0000 (20:00 +0000)]
MFC r200414:
CFA support doesn't exclude FLUSH support.

git-svn-id: svn://svn.freebsd.org/base/stable/8@200862 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r200218:
mav [Tue, 22 Dec 2009 19:56:35 +0000 (19:56 +0000)]
MFC r200218:
- Cleanup kernel messages, mostly PMP.
- Took references on devices, while PMP reinitializes them, to not let them
go and distort freeze reference counting.

git-svn-id: svn://svn.freebsd.org/base/stable/8@200860 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC 200514:
jhb [Tue, 22 Dec 2009 14:58:23 +0000 (14:58 +0000)]
MFC 200514:
Remove comment claiming that building acpi into the kernel is deprecated.

git-svn-id: svn://svn.freebsd.org/base/stable/8@200841 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r200589: cpuset(2): fix a typo and a markup error in the man page
jilles [Tue, 22 Dec 2009 13:45:29 +0000 (13:45 +0000)]
MFC r200589: cpuset(2): fix a typo and a markup error in the man page

git-svn-id: svn://svn.freebsd.org/base/stable/8@200836 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC: r200544
marius [Mon, 21 Dec 2009 20:17:34 +0000 (20:17 +0000)]
MFC: r200544

Set ATA_CHECKS_CABLE when appropriate.

Reviewed by: mav

git-svn-id: svn://svn.freebsd.org/base/stable/8@200807 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r199563,199608-199613
yongari [Mon, 21 Dec 2009 18:52:38 +0000 (18:52 +0000)]
MFC r199563,199608-199613
r199563:
  Fix copy & paste error and remove extra space before colon.
r199608:
  Remove unnecessary structure packing.
r199609:
  Add initial endianness support. It seems the controller supports
  both big-endian and little-endian format in descriptors for Rx path
  but I couldn't find equivalent feature in Tx path. So just stick to
  little-endian for now.
r199610:
  Because we know received bytes including CRC there is no reason to
  call m_adj(9). The controller also seems to have a capability to
  strip CRC bytes but I failed to activate this feature except for
  loopback traffic.
r199611:
  Add IPv4/TCP/UDP Tx checksum offloading support. It seems the
  controller also has support for IP/TCP checksum offloading for Rx
  path. But I failed to find to way to enable Rx MAC to compute the
  checksum of received frames.
r199612:
  Add __FBSDID.
r199613:
  Only Tx checksum offloading is supported now. Remove experimental
  code sneaked in r199611.

git-svn-id: svn://svn.freebsd.org/base/stable/8@200791 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r199558,199561
yongari [Mon, 21 Dec 2009 18:34:18 +0000 (18:34 +0000)]
MFC r199558,199561
r199558:
  Use bus_{read,write}_4 rather than bus_space_{read,write}_4.
r199561:
  Use capability pointer to access PCIe registers rather than
  directly access them at fixed address. Frequently the register
  offset could be changed if additional PCI capabilities are added to
  controller.
  One odd thing is ET_PCIR_L0S_L1_LATENCY register. I think it's PCIe
  link capabilities register but the location of the register does
  not match with PCIe capability pointer + offset. I'm not sure it's
  shadow register of PCIe link capabilities register.

git-svn-id: svn://svn.freebsd.org/base/stable/8@200789 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r199553,199556
yongari [Mon, 21 Dec 2009 18:28:37 +0000 (18:28 +0000)]
MFC r199553,199556
r199553:
  Remove extra spce at the EOL.
r199556:
  style(9)

git-svn-id: svn://svn.freebsd.org/base/stable/8@200787 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r199550-199552:
yongari [Mon, 21 Dec 2009 18:16:07 +0000 (18:16 +0000)]
MFC r199550-199552:
r199550:
  Remove support code for FreeBSD 6.x versions.
r199551:
  Destroy driver mutex in device detach.
r199552:
  Add MSI support.

git-svn-id: svn://svn.freebsd.org/base/stable/8@200785 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r199548:
yongari [Mon, 21 Dec 2009 18:07:15 +0000 (18:07 +0000)]
MFC r199548:
  Remove complex macros that were used to compute bits values.
  Although these macros may have its own strength, its complex
  definition make hard to read the code.

  Approved by:  delphij

git-svn-id: svn://svn.freebsd.org/base/stable/8@200783 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r200666: Fixed incorrect watchdog timeout setting.
ru [Mon, 21 Dec 2009 13:53:33 +0000 (13:53 +0000)]
MFC r200666: Fixed incorrect watchdog timeout setting.

PR: kern/130512

git-svn-id: svn://svn.freebsd.org/base/stable/8@200772 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r200667:
kib [Mon, 21 Dec 2009 11:06:41 +0000 (11:06 +0000)]
MFC r200667:
Return earlier from linux_do_tkill() when supplied signal number is 0.

git-svn-id: svn://svn.freebsd.org/base/stable/8@200768 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r199969: amdsbwd: new driver for AMD SB600/SB7xx watchdog timer
avg [Mon, 21 Dec 2009 05:58:55 +0000 (05:58 +0000)]
MFC r199969: amdsbwd: new driver for AMD SB600/SB7xx watchdog timer

git-svn-id: svn://svn.freebsd.org/base/stable/8@200765 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r198173: sh: show more info about syntax errors in command substitution:
jilles [Sun, 20 Dec 2009 20:51:20 +0000 (20:51 +0000)]
MFC r198173: sh: show more info about syntax errors in command substitution:
the line number where the command substitution started.
This applies to both the $() and `` forms but is most useful for ``
because the other line number is relative to the enclosed text there.
(For older versions, -v can be used as a workaround.)

git-svn-id: svn://svn.freebsd.org/base/stable/8@200760 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMerge from head to stable/8:
scf [Sun, 20 Dec 2009 18:57:43 +0000 (18:57 +0000)]
Merge from head to stable/8:

r200424:
Fix libusb_open_device_with_vid_pid() to return a NULL if no device is
found instead of the last device in its search list.

Reviewed by: thompsa

git-svn-id: svn://svn.freebsd.org/base/stable/8@200757 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r200623:
jamie [Sun, 20 Dec 2009 04:49:29 +0000 (04:49 +0000)]
MFC r200623:

  Add a null pointer check so "name" can be used as a key parameter in
  jailparam_get.

PR: bin/141692
Submitted by: delphij

git-svn-id: svn://svn.freebsd.org/base/stable/8@200750 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r200449:
jamie [Sun, 20 Dec 2009 04:45:32 +0000 (04:45 +0000)]
MFC r200449:

  Don't free jail parameter values after printing them - jail_param_get
  expects them to be there for the next jail in the list.

PR: bin/141359

git-svn-id: svn://svn.freebsd.org/base/stable/8@200749 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r198471.
kan [Sun, 20 Dec 2009 02:35:10 +0000 (02:35 +0000)]
MFC r198471.

Log:
  Compile libgcov without stack protection. It can be linked into
  both static and dynamic binaries compiled with or without stack
  protection and should not depend on libssp_nonshared.a symbols.

  Discussed with: kib
  PR: bin/139052

git-svn-id: svn://svn.freebsd.org/base/stable/8@200748 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC: r200482, r200485
marius [Sun, 20 Dec 2009 01:44:47 +0000 (01:44 +0000)]
MFC: r200482, r200485

o Properly support M5229 revision 0xc7 and 0xc8:
  - These revisions no longer have cable detection capability.
  - The UDMA support bit of register 0x4b has been dropped without an
    replacement.
  - According to Linux it's crucial for working ATAPI DMA support to
    also set the reserved bit 1 of regsiter 0x53 with these revisions.
o Only set ATA_CHECKS_CABLE for chip versions that actually support
  cable detection, i.e. neither for ALI_OLD nor for ALI_NEW revisions
  >= 0xc7.

git-svn-id: svn://svn.freebsd.org/base/stable/8@200746 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC: r200481
marius [Sun, 20 Dec 2009 01:38:01 +0000 (01:38 +0000)]
MFC: r200481

Specify the capability and media bits of the capabilities page in
native, i.e. big-endian, format and convert as appropriate like we
also do with the multibyte fields of the other pages. This fixes
the output of acd_describe() to match reality on big-endian machines
without breaking it on little-endian ones. While at it, also convert
the remaining multibyte fields of the pages read although they are
currently unused for consistency and in order to prevent possible
similar bugs in the future.

git-svn-id: svn://svn.freebsd.org/base/stable/8@200744 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r198538:
kib [Sat, 19 Dec 2009 20:50:48 +0000 (20:50 +0000)]
MFC r198538:
Move pselect(3) man page to section 2.

git-svn-id: svn://svn.freebsd.org/base/stable/8@200741 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r199804:
attilio [Sat, 19 Dec 2009 19:35:53 +0000 (19:35 +0000)]
MFC r199804:
Avoid sshd, crond, inetd and syslogd to be killed in an high-pressure
swapping environment.

Sponsored by: Sandvine Incorporated

git-svn-id: svn://svn.freebsd.org/base/stable/8@200738 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r199805:
attilio [Sat, 19 Dec 2009 19:30:27 +0000 (19:30 +0000)]
MFC r199805:
Change gcore in order to get rid of the procfs support and use FreeBSD's
specific interfaces. Main changes:
- now gcore recognizes threads within the the process and handle dumps on
  a thread scope
- the process to be analyzed should be stopped while gcore runs
- gcore may not work with processes that are being debugged with gdb or
  truss
- ptrace may let interruptible calls to return EINTR, thus dirtying
  signals handling within the process

Sponsored by: Sandvine Incorporated

git-svn-id: svn://svn.freebsd.org/base/stable/8@200737 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r199803:
attilio [Sat, 19 Dec 2009 19:25:35 +0000 (19:25 +0000)]
MFC r199803:
Add the possibility to show informations about dropped packets on the
input path when showing interfaces informations.

Sponsored by: Sandvine Incorporated

git-svn-id: svn://svn.freebsd.org/base/stable/8@200736 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r199802:
attilio [Sat, 19 Dec 2009 19:23:25 +0000 (19:23 +0000)]
MFC r199802:
Fix handling of empty attributes.

Sponsored by: Sandvine Incorporated

git-svn-id: svn://svn.freebsd.org/base/stable/8@200735 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r199801:
attilio [Sat, 19 Dec 2009 19:22:09 +0000 (19:22 +0000)]
MFC r199801:
Fix a socket leak.

Sponsored by: Sandvine Incorporated

git-svn-id: svn://svn.freebsd.org/base/stable/8@200734 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r199355:
kib [Sat, 19 Dec 2009 12:06:12 +0000 (12:06 +0000)]
MFC r199355:
Add SI_KERNEL.

MFC r199418:
Fix pgsignal() call after signature change in r199355.

git-svn-id: svn://svn.freebsd.org/base/stable/8@200729 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoRegen
kib [Sat, 19 Dec 2009 11:50:04 +0000 (11:50 +0000)]
Regen

git-svn-id: svn://svn.freebsd.org/base/stable/8@200728 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r198508, r198509:
kib [Sat, 19 Dec 2009 11:47:00 +0000 (11:47 +0000)]
MFC r198508, r198509:
Reimplement pselect() in kernel, making change of sigmask and sleep atomic.

MFC r198538:
Move pselect(3) man page to section 2.

git-svn-id: svn://svn.freebsd.org/base/stable/8@200725 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r198507:
kib [Sat, 19 Dec 2009 11:31:28 +0000 (11:31 +0000)]
MFC r198507:
Use kern_sigprocmask() instead of direct manipulation of td_sigmask to
reschedule newly blocked signals.

MFC r198590:
Trapsignal() calls kern_sigprocmask() when delivering catched signal
with proc lock held.

MFC r198670:
For trapsignal() and postsig(), kern_sigprocmask() is called with
both process lock and curproc->p_sigacts->ps_mtx locked. Prevent lock
recursion on ps_mtx in reschedule_signals().

git-svn-id: svn://svn.freebsd.org/base/stable/8@200722 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r198506:
kib [Sat, 19 Dec 2009 11:13:59 +0000 (11:13 +0000)]
MFC r198506:
In kern_sigsuspend(), manipulate thread signal mask using
kern_sigprocmask(). Also, do cursig/postsig loop immediately after
waiting for signal, repeating the wait if wakeup was spurious due to
race with other thread fetching signal from the process queue before us.

MFC r199136:
Use cpu_set_syscall_retval(9) to set syscall result, and return
EJUSTRETURN from kern_sigsuspend() to prevent syscall return code from
modifying wrong frame.
Take care of possibility that pending SIGCONT might be cancelled by
SIGSTOP, causing postsig() not to deliver any catched signal.

git-svn-id: svn://svn.freebsd.org/base/stable/8@200721 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoFix inappropriate merge.
delphij [Sat, 19 Dec 2009 11:11:57 +0000 (11:11 +0000)]
Fix inappropriate merge.

Pointed out by: kib
Pointy hat to: delphij

git-svn-id: svn://svn.freebsd.org/base/stable/8@200720 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r200053,200091: ichsmb: drop default attachment to generic smbus hw
avg [Sat, 19 Dec 2009 11:05:42 +0000 (11:05 +0000)]
MFC r200053,200091: ichsmb: drop default attachment to generic smbus hw

Note that r200091 completely overrides r200053 and the merge of the
former is recorded for bookkeeping only.
r200091 won't be merged to 'more stable' branche(s) because of the POLA.

git-svn-id: svn://svn.freebsd.org/base/stable/8@200718 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r197963:
kib [Sat, 19 Dec 2009 10:54:29 +0000 (10:54 +0000)]
MFC r197963:
Put process-directed signals to the process queue unconditionally,
selecting the thread to deliver the signal only by the thread returning
to usermode.
Change cursig() and postsig() to look both into the thread and process
signal queues.

MFC r197976:
Fix typo.

MFC r200082:
Remove wrong assertion. Debugee is allowed to lose a signal

git-svn-id: svn://svn.freebsd.org/base/stable/8@200716 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r200602: ichsmb: add another pci id
avg [Sat, 19 Dec 2009 10:52:32 +0000 (10:52 +0000)]
MFC r200602: ichsmb: add another pci id

git-svn-id: svn://svn.freebsd.org/base/stable/8@200715 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r200064: mca: small enhancements related to cpu quirks
avg [Sat, 19 Dec 2009 10:44:26 +0000 (10:44 +0000)]
MFC r200064: mca: small enhancements related to cpu quirks

git-svn-id: svn://svn.freebsd.org/base/stable/8@200713 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r200033: mca: improve status checking, recording and reporting
avg [Sat, 19 Dec 2009 10:38:28 +0000 (10:38 +0000)]
MFC r200033: mca: improve status checking, recording and reporting

git-svn-id: svn://svn.freebsd.org/base/stable/8@200711 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r200444:
kib [Sat, 19 Dec 2009 10:28:24 +0000 (10:28 +0000)]
MFC r200444:
For ia32 syscall(), call cpu_set_syscall_retval().

git-svn-id: svn://svn.freebsd.org/base/stable/8@200710 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC: r200254
nyan [Sat, 19 Dec 2009 04:43:25 +0000 (04:43 +0000)]
MFC: r200254

  MFi386: Use real mode instead of v86 mode.

git-svn-id: svn://svn.freebsd.org/base/stable/8@200705 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC: r200253 and r200255
nyan [Sat, 19 Dec 2009 04:25:19 +0000 (04:25 +0000)]
MFC: r200253 and r200255

  Reduce diffs against i386.

git-svn-id: svn://svn.freebsd.org/base/stable/8@200702 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC 200357:
jhb [Fri, 18 Dec 2009 22:23:27 +0000 (22:23 +0000)]
MFC 200357:
Don't warn about an RSDP with a corrupt checksum.  The kernel does a better
job about warning about these things later and this message can be
confusing.

git-svn-id: svn://svn.freebsd.org/base/stable/8@200697 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC 200310:
jhb [Fri, 18 Dec 2009 21:21:14 +0000 (21:21 +0000)]
MFC 200310:
Fix a confusing typo in the EDD packet structure used in gptboot and
gptzfsboot.  I got the segment and offset fields reversed in the structure,
but I also succeeded in crossing the assignments so the actual EDD packet
ended up correct.

git-svn-id: svn://svn.freebsd.org/base/stable/8@200692 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC 200309:
jhb [Fri, 18 Dec 2009 21:01:56 +0000 (21:01 +0000)]
MFC 200309:
- Port bios_getmem() from libi386 to {gpt,}zfsboot() and use it to
  safely allocate a heap region above 1MB.  This enables {gpt,}zfsboot()
  to allocate much larger buffers than before.
- Use a larger buffer (1MB instead of 128K) for temporary ZFS buffers.  This
  allows more reliable reading of compressed files in a raidz/raidz2 pool.

git-svn-id: svn://svn.freebsd.org/base/stable/8@200689 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC 200216,200219:
jhb [Fri, 18 Dec 2009 20:28:04 +0000 (20:28 +0000)]
MFC 200216,200219:
- Various small whitespace and style fixes.
- Improve the algorithm the loader uses to choose a memory range for its
  heap when using a range above 1MB.

git-svn-id: svn://svn.freebsd.org/base/stable/8@200686 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMerge from head to stable/8:
scf [Fri, 18 Dec 2009 20:05:10 +0000 (20:05 +0000)]
Merge from head to stable/8:

r200423:
Remove a dead store.

git-svn-id: svn://svn.freebsd.org/base/stable/8@200683 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC 200084:
jhb [Fri, 18 Dec 2009 19:43:44 +0000 (19:43 +0000)]
MFC 200084:
Properly return an error reply if an NFS remove or link operation fails.
Previously the failing operation would allocate an mbuf and construct an
error reply, but because the function did not return 0, the NFS server
assumed it had failed to generate a reply and would leak the reply mbuf as
well as not sending the reply to the NFS client.

git-svn-id: svn://svn.freebsd.org/base/stable/8@200680 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r200415:
bcr [Fri, 18 Dec 2009 19:26:16 +0000 (19:26 +0000)]
MFC r200415:
Reference the correct man page for firmware(9).

PR:             docs/140985
Submitted by:   Glen Barber (glen dot j dot barber at gmail dot com)
Reviewed by:    rpaulo
Approved by:    rpaulo, jkois (mentor)
Merged with:    user/des/fmerge

git-svn-id: svn://svn.freebsd.org/base/stable/8@200679 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r199464:
delphij [Fri, 18 Dec 2009 19:16:44 +0000 (19:16 +0000)]
MFC r199464:

Add a missing .Ed tag.

git-svn-id: svn://svn.freebsd.org/base/stable/8@200678 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r199463:
delphij [Fri, 18 Dec 2009 18:55:15 +0000 (18:55 +0000)]
MFC r199463:

rc.early(8) was removed as of 20090530 so remove manual page reference
to it.

git-svn-id: svn://svn.freebsd.org/base/stable/8@200677 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC 200037:
jhb [Fri, 18 Dec 2009 18:30:49 +0000 (18:30 +0000)]
MFC 200037:
ndis_scan_results() can sleep if the scan results are not ready when
ndis_scan() is called.  However, ndis_scan() is invoked from softclock()
and cannot sleep.  Move ndis_scan_results() to the ndis driver's scan_end
hook instead.

git-svn-id: svn://svn.freebsd.org/base/stable/8@200675 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r200366
brooks [Fri, 18 Dec 2009 06:09:43 +0000 (06:09 +0000)]
MFC r200366

Add a missing else that negated the truncation of ki_ngroups to NGROUPS.

Submitted by:   Dmitry Pryanishnikov <lynx dot ripe at gmail dot com>

git-svn-id: svn://svn.freebsd.org/base/stable/8@200662 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC 199606, 199614:
jhb [Thu, 17 Dec 2009 20:41:27 +0000 (20:41 +0000)]
MFC 199606, 199614:
Add an internal _once() method.  This works identical to pthread_once(3)
with the additional property that it is safe for routines in libc to use
in both single-threaded and multi-threaded processes.  Multi-threaded
processes use the pthread_once() implementation from the threading library
while single-threaded processes use a simplified "stub" version internal
to libc.

git-svn-id: svn://svn.freebsd.org/base/stable/8@200648 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r199829:
kib [Thu, 17 Dec 2009 19:53:16 +0000 (19:53 +0000)]
MFC r199829:
Implement rtld part of the support for -z nodlopen (see ld(1)).

MFC r199877:
Allow to load not-openable dso when tracing. This fixes ldd on such dso or
dso linked to non-openable object.
Remove '\n' at the end of error message.
End comments with dot.

git-svn-id: svn://svn.freebsd.org/base/stable/8@200645 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r199826:
kib [Thu, 17 Dec 2009 18:56:52 +0000 (18:56 +0000)]
MFC r199826:
sigset() is the name of function specified by SUSv4.
Replace it to avoid conflict.

git-svn-id: svn://svn.freebsd.org/base/stable/8@200643 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r200450:
kib [Thu, 17 Dec 2009 18:43:34 +0000 (18:43 +0000)]
MFC r200450:
Document PBDRY and SLEEPQ_STOP_ON_BDRY.

git-svn-id: svn://svn.freebsd.org/base/stable/8@200642 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC rev 200498:
marcel [Thu, 17 Dec 2009 02:06:07 +0000 (02:06 +0000)]
MFC rev 200498:
Work-around a race condition on ia64 while unlocking a contested lock.

git-svn-id: svn://svn.freebsd.org/base/stable/8@200622 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r199764: Make ULE process usage (%CPU) accounting usable again
ivoras [Wed, 16 Dec 2009 21:48:27 +0000 (21:48 +0000)]
MFC r199764: Make ULE process usage (%CPU) accounting usable again

Approved by: gnn (mentor) (implicitly)

git-svn-id: svn://svn.freebsd.org/base/stable/8@200618 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC: r200459
marius [Wed, 16 Dec 2009 18:39:32 +0000 (18:39 +0000)]
MFC: r200459

Unbreak the ata_atapi() usage. Since r200171 (MFC'ed in r200432) the
mode setting functions get a ata_device type device passed instead of
a ata_channel one, thus ata_atapi() has to be adjusted accordingly.

Reviewed by: mav

git-svn-id: svn://svn.freebsd.org/base/stable/8@200611 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r200607:
mav [Wed, 16 Dec 2009 17:48:26 +0000 (17:48 +0000)]
MFC r200607:
Large I/Os on Promise controllers reported to cause UDMA ICRC errors and
subsequent timeouts. Restore previous limit for now, at least until
I will have hardware to experiment.

PR:             kern/141438

git-svn-id: svn://svn.freebsd.org/base/stable/8@200608 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoRe-apply the fix from r199029 (MFC from r198162) to allow
dougb [Tue, 15 Dec 2009 23:05:16 +0000 (23:05 +0000)]
Re-apply the fix from r199029 (MFC from r198162) to allow
$name_program to override $command.

PR: conf//141642
Submitted by: Petr Lampa <lampa@fit.vutbr.cz>

git-svn-id: svn://svn.freebsd.org/base/stable/8@200592 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoAdd SA-09:15.ssl, SA-09:16.rtld and SA-09:17.freebsd-update.
delphij [Tue, 15 Dec 2009 20:47:51 +0000 (20:47 +0000)]
Add SA-09:15.ssl, SA-09:16.rtld and SA-09:17.freebsd-update.

git-svn-id: svn://svn.freebsd.org/base/stable/8@200588 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC: r200272
marius [Tue, 15 Dec 2009 20:00:34 +0000 (20:00 +0000)]
MFC: r200272

Add additional checks of the kernel stack addresses in order to
ensure we don't overrun the beginning of the call chain.

git-svn-id: svn://svn.freebsd.org/base/stable/8@200585 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r199995:
ume [Tue, 15 Dec 2009 15:01:52 +0000 (15:01 +0000)]
MFC r199995:
Don't try to bind to an anycast address.  The KAME IPv6 stack doesn't
allow bind to an anycast address.  It does away with an annoying
message.

git-svn-id: svn://svn.freebsd.org/base/stable/8@200578 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r198318:
stas [Tue, 15 Dec 2009 10:16:57 +0000 (10:16 +0000)]
MFC r198318:
  - On entrance to the rx_eof sync RX rings maps with POSTWRITE flag
    instead of POSTREAD: the hardware do not touch this memory (CPU
    updates it).  It is already synchronized as PREWRITE after the
    processing is done.

git-svn-id: svn://svn.freebsd.org/base/stable/8@200569 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years ago- MFC r197832, r197834, r197837:
stas [Tue, 15 Dec 2009 10:00:00 +0000 (10:00 +0000)]
- MFC r197832, r197834, r197837:
  - Add support for new BGE chips (5761, 5784 and 57780).  These chips uses new
    BGE_PCI_PRODID_ASICREV register to store the chip identifier and its revision.
  - Add new grouping macro for 7575+ chips (BGE_IS_5755_PLUS).
  - Add IDs for Fujitsu-branded Broadcom adapters.

git-svn-id: svn://svn.freebsd.org/base/stable/8@200568 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC: expose only bio_cmd and bio_flags values to userland
luigi [Tue, 15 Dec 2009 07:32:08 +0000 (07:32 +0000)]
MFC: expose only bio_cmd and bio_flags values to userland

git-svn-id: svn://svn.freebsd.org/base/stable/8@200565 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r200287:
delphij [Tue, 15 Dec 2009 01:14:33 +0000 (01:14 +0000)]
MFC r200287:

Allow using IPv6 in nfsrvd_sentcache() callback.

PR: kern/141289
Submitted by: Petr Lampa <lampa fit vutbr cz>

git-svn-id: svn://svn.freebsd.org/base/stable/8@200562 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agosync with head
luigi [Tue, 15 Dec 2009 00:26:42 +0000 (00:26 +0000)]
sync with head

git-svn-id: svn://svn.freebsd.org/base/stable/8@200560 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r199123:
delphij [Mon, 14 Dec 2009 22:38:51 +0000 (22:38 +0000)]
MFC r199123:

Add a minimal change to prevent NULL deference in ee(1).

To repeat the problem, one can press "Ctrl+C" and then enter "0".

Submitted by:   Alexander Best <alexbestms wwu de>
PR: bin/137707

git-svn-id: svn://svn.freebsd.org/base/stable/8@200556 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoWrap some socket handling code in a !NULL bow
dougb [Mon, 14 Dec 2009 21:50:34 +0000 (21:50 +0000)]
Wrap some socket handling code in a !NULL bow

This patch or something similar will likely be included in a future
BIND release.

PR: bin/138061
Submitted by: Michael Baker <michael.baker@diversit.com.au>
Original patch submitted by: Volker <volker@vwsoft.com>
Patch reviewed and tweaked by: ISC

git-svn-id: svn://svn.freebsd.org/base/stable/8@200546 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC rev 200397:
marcel [Mon, 14 Dec 2009 17:42:40 +0000 (17:42 +0000)]
MFC rev 200397:
Fix interrupt handling.

PR: kern/140947

git-svn-id: svn://svn.freebsd.org/base/stable/8@200517 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMerge r199798 from head to stable/8:
rwatson [Mon, 14 Dec 2009 13:23:33 +0000 (13:23 +0000)]
Merge r199798 from head to stable/8:

  Fix comment typo.

  Submitted by: Marc Balmer <marc at msys.ch>

git-svn-id: svn://svn.freebsd.org/base/stable/8@200513 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMerge r199270 from head to stable/8:
rwatson [Mon, 14 Dec 2009 13:16:50 +0000 (13:16 +0000)]
Merge r199270 from head to stable/8:

  Fix white space in rtld runtime error printf.

git-svn-id: svn://svn.freebsd.org/base/stable/8@200512 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMerge r197841 from head to stable/8:
rwatson [Mon, 14 Dec 2009 13:13:43 +0000 (13:13 +0000)]
Merge r197841 from head to stable/8:

  Add a new errno, ENOTCAPABLE, to be returned when a process requests an
  operation on a file descriptor that is not authorized by the descriptor's
  capability flags.

  Sponsored by: Google

git-svn-id: svn://svn.freebsd.org/base/stable/8@200511 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMerge r197808 from head to stable/8:
rwatson [Mon, 14 Dec 2009 12:19:21 +0000 (12:19 +0000)]
Merge r197808 from head to stable/8:

  In rtld's map_object(), use pread(..., 0) rather than read() to read the
  ELF header from the front of the file.  As all other I/O on the binary
  is done using mmap(), this avoids the need for seek privileges on the
  file descriptor during run-time linking.

  Sponsored by: Google

git-svn-id: svn://svn.freebsd.org/base/stable/8@200509 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMerge r198438 from head to stable/8:
rwatson [Mon, 14 Dec 2009 11:53:02 +0000 (11:53 +0000)]
Merge r198438 from head to stable/8:

  Correct spelling typo in ip_input comment.

  Pointed out by:       N.J. Mann <njm at njm.me.uk>,
                John Nielsen <john at jnielsen.net>, julian (!), lstewart

git-svn-id: svn://svn.freebsd.org/base/stable/8@200508 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMerge r198417 from head to stable/8:
rwatson [Mon, 14 Dec 2009 11:45:53 +0000 (11:45 +0000)]
Merge r198417 from head to stable/8:

  Remove unneeded blank line from bpf_drvinit().

git-svn-id: svn://svn.freebsd.org/base/stable/8@200507 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMerge r198393 from head to stable/8:
rwatson [Mon, 14 Dec 2009 11:15:47 +0000 (11:15 +0000)]
Merge r198393 from head to stable/8:

  Improve grammar in ip_input comment while attempting to maintain what
  might be its meaning.

(Note, merge of the revision correcting a spelling error in this commit
will follow as well!)

git-svn-id: svn://svn.freebsd.org/base/stable/8@200506 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMerge r197720 from head to stable/8:
rwatson [Mon, 14 Dec 2009 10:48:19 +0000 (10:48 +0000)]
Merge r197720 from head to stable/8:

  Don't comment on stream socket handling in sosend_dgram, since that's
  not handled.

git-svn-id: svn://svn.freebsd.org/base/stable/8@200504 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC rev 200202:
marcel [Mon, 14 Dec 2009 01:10:05 +0000 (01:10 +0000)]
MFC rev 200202:
Fix Read-After-Write (RAW) dependency violation for ar.ccv in
isc_atomic_xadd() and isc_atomic_cmpxchg().

Approved by: dougb@

git-svn-id: svn://svn.freebsd.org/base/stable/8@200497 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r200392:
delphij [Mon, 14 Dec 2009 01:05:40 +0000 (01:05 +0000)]
MFC r200392:

Apply two vendor fixes for CVE-2009-3720.

Security: CVE-2009-3720

git-svn-id: svn://svn.freebsd.org/base/stable/8@200494 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoRegenerate sysent files after r200491.
rwatson [Mon, 14 Dec 2009 00:20:48 +0000 (00:20 +0000)]
Regenerate sysent files after r200491.

git-svn-id: svn://svn.freebsd.org/base/stable/8@200492 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMerge r197636 from head to stable/8:
rwatson [Mon, 14 Dec 2009 00:19:31 +0000 (00:19 +0000)]
Merge r197636 from head to stable/8:

  Reserve system call numbers for Capsicum security framework capabilities,
  capability mode, and process descriptors: cap_new, cap_getrights, cap_enter,
  cap_getmode, pdfork, pdkill, pdgetpid, and pdwait.

  Obtained from: TrustedBSD Project
  Sponsored by: Google

git-svn-id: svn://svn.freebsd.org/base/stable/8@200491 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMerge r197624 from head to stable/8:
rwatson [Mon, 14 Dec 2009 00:15:56 +0000 (00:15 +0000)]
Merge r197624 from head to stable/8:

  Add audit events for process descriptor system calls, which will appear in
  a future OpenBSM release.

  Sponsored by: Google
  Obtained from: TrustedBSD Project

git-svn-id: svn://svn.freebsd.org/base/stable/8@200490 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r200377:
dougb [Sun, 13 Dec 2009 23:56:46 +0000 (23:56 +0000)]
MFC r200377:

Update to the December 12, 2008 version of this file. The one
substantive change is to add the IPv6 address of L. The other
changes are all CAPS LOCK related.

git-svn-id: svn://svn.freebsd.org/base/stable/8@200487 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r198694,r198697
rnoland [Sun, 13 Dec 2009 15:03:54 +0000 (15:03 +0000)]
MFC r198694,r198697

    Some general cleanup of scatter/gather memory allocation

     - We don't need to check malloc return values with M_WAITOK
     - remove variables that we don't really need
     - cleanup the error paths by just calling drm_sg_cleanup()
     - fix drm_sg_cleanup() to be safe to call at any time

git-svn-id: svn://svn.freebsd.org/base/stable/8@200475 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC 198332
rnoland [Sun, 13 Dec 2009 14:55:50 +0000 (14:55 +0000)]
MFC 198332

Check pointer for NULL before dereferencing it, not after.

Originally committed by: brueffer

git-svn-id: svn://svn.freebsd.org/base/stable/8@200474 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r200122
syrinx [Sat, 12 Dec 2009 20:26:11 +0000 (20:26 +0000)]
MFC r200122

Make sure enough memory is allocated for a struct pft_entry when
refreshing the list of pf tables.

git-svn-id: svn://svn.freebsd.org/base/stable/8@200446 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC: r200215
marius [Sat, 12 Dec 2009 20:24:12 +0000 (20:24 +0000)]
MFC: r200215

Add <machine/pcb.h> missed in r199135 (MFC'ed in r200443).

git-svn-id: svn://svn.freebsd.org/base/stable/8@200445 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r199135:
kib [Sat, 12 Dec 2009 20:06:25 +0000 (20:06 +0000)]
MFC r199135:
Extract the code that records syscall results in the frame into MD
function cpu_set_syscall_retval().

git-svn-id: svn://svn.freebsd.org/base/stable/8@200443 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r200162:
kib [Sat, 12 Dec 2009 14:44:04 +0000 (14:44 +0000)]
MFC r200162:
Change VOP_FSYNC for zfs vnode from VOP_PANIC to zfs_freebsd_fsync().

git-svn-id: svn://svn.freebsd.org/base/stable/8@200438 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r199193 to stable/8:
antoine [Sat, 12 Dec 2009 12:36:41 +0000 (12:36 +0000)]
MFC r199193 to stable/8:
  - Remove trailing ";" after if statement
  - Remove #if 0 section that was never needed/used
  Reviewed by: raj@

git-svn-id: svn://svn.freebsd.org/base/stable/8@200435 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r199187 to stable/8:
antoine [Sat, 12 Dec 2009 12:34:20 +0000 (12:34 +0000)]
MFC r199187 to stable/8:
  Remove trailing ";" in struct ieee80211_beacon_offsets declaration
  Found by: phk's FlexeLint in September
  Reviewed by: rpaulo@

git-svn-id: svn://svn.freebsd.org/base/stable/8@200434 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r199186 to stable/8:
antoine [Sat, 12 Dec 2009 12:31:11 +0000 (12:31 +0000)]
MFC r199186 to stable/8:
  Fix off by one in ieee80211_send_action_register
  Found by: phk's FlexeLint in September
  Reviewed by: rpaulo@

git-svn-id: svn://svn.freebsd.org/base/stable/8@200433 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r200171, r200182, r200275, r200295, r200359:
mav [Sat, 12 Dec 2009 10:37:31 +0000 (10:37 +0000)]
MFC r200171, r200182, r200275, r200295, r200359:
Introduce ATA_CAM kernel option, turning ata(4) controller drivers into
cam(4) interface modules. When enabled, this option deprecates all ata(4)
peripheral drivers (ad, acd, ...) and interfaces and allows cam(4) drivers
(ada, cd, ...) and interfaces to be natively used instead.

As side effect of this, ata(4) mode setting code was completely rewritten
to make controller API more strict and permit above change. While doing
this, SATA revision was separated from PATA mode. It allows DMA-incapable
SATA devices to operate and makes hw.ata.(ata|atapi)_dma tunable work again.

Also allow ata(4) controller drivers (except some specific or broken ones)
to handle larger data transfers. Previous constraint of 64K was artificial
and is not really required by PCI ATA BM specification or hardware.

Submitted by:   nwitehorn (powerpc part)

git-svn-id: svn://svn.freebsd.org/base/stable/8@200432 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f