]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/log
FreeBSD/stable/8.git
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

14 years agoMFC rev 199893, 199941, 200200 and 200207:
marcel [Sat, 12 Dec 2009 05:14:40 +0000 (05:14 +0000)]
MFC rev 199893, 199941, 200200 and 200207:
o   Eliminate MAXCPU.
o   Revamp the PCPU structure.

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

14 years agoMFC rev 200045:
marcel [Sat, 12 Dec 2009 04:34:22 +0000 (04:34 +0000)]
MFC rev 200045:
Include <sys/sysctl.h>, to get the declarations of ostype and
osrelease. Remove the duplicate declarations from this file.

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

14 years agoMFC r199888:
nwhitehorn [Sat, 12 Dec 2009 02:34:00 +0000 (02:34 +0000)]
MFC r199888:

Add support for interpreting taps on ADB touchpads as a button click.

Submitted by: Andreas Tobler <andreast-list at fgznet dot ch>

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

14 years agoMFC r200083:
nwhitehorn [Sat, 12 Dec 2009 02:31:16 +0000 (02:31 +0000)]
MFC r200083:

The first argument of dcbz interprets r0 as a literal zero, not the second.
This worked before by accident.

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

14 years agoMFC r200180:
mav [Fri, 11 Dec 2009 12:53:09 +0000 (12:53 +0000)]
MFC r200180:
If we panicked with SIM lock held, do not try to flush caches.
Extra lock recursing will not make debugging easier.

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

14 years agoMFC r200353:
mav [Fri, 11 Dec 2009 12:44:44 +0000 (12:44 +0000)]
MFC r200353:
Limit maximum I/O size, depending on command set supported by device.
It is required to suppot non-LBA48 devices with MAXPHYS above 128K.
Same is done in ada(4).

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

14 years agoMFC 196739:
fabient [Fri, 11 Dec 2009 12:36:02 +0000 (12:36 +0000)]
MFC 196739:
Add counters for the i7 architecture which were accidentally left
out of the original commit of i7 support.  These are all the counters
on pages A-32 and A-33 of the _Intel(R) 64 and IA32 Architectures
Software Developer's Manual Vol 3B_, June 2009.  Almost all
of these counters relate to operations on the L2 cache.

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

14 years agoRegen
kib [Fri, 11 Dec 2009 11:07:48 +0000 (11:07 +0000)]
Regen

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

14 years agoMFC r200111:
kib [Fri, 11 Dec 2009 11:07:05 +0000 (11:07 +0000)]
MFC r200111:
Add several syscall compat32 entries for acl manipulation.

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

14 years agoMFC rev 200240:
marcel [Fri, 11 Dec 2009 01:26:26 +0000 (01:26 +0000)]
MFC rev 200240:
In exception_save, write-back ar.rnat after switching the backing-store.

PR: ia64/120315

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

14 years agoMFC r199958:
dougb [Fri, 11 Dec 2009 01:23:58 +0000 (01:23 +0000)]
MFC r199958:

Update to BIND 9.6.1-P2. The vulnerability this is designed to fix is
related to DNSSEC validation on a resolving name server that allows
access to untrusted users. If your system does not fall into all 3 of
these categories you do not need to update immediately.

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

14 years agoMFC r199846:
mav [Fri, 11 Dec 2009 01:06:30 +0000 (01:06 +0000)]
MFC r199846:
Add two Cirrus Logic codec IDs.
Add GPIO setting quirk for Apple MacBookPro5,5.

Submitted by:   ed

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

14 years agoMFC r200282, r200290:
mav [Thu, 10 Dec 2009 23:51:24 +0000 (23:51 +0000)]
MFC r200282, r200290:
Change gmirror default balance algorithm from "split" to improved "load".
"split" is very ineffective for devices with rotating media as HDDs.
To be effective, it needs that transfer time reduction due to block
splitting was bigger then access time increase due to non-sequential
access. For modern HDDs I was able to reproduce it only with read sizes
of 2MB and above, which is almost not applicable in real life.
"load" algorithm same time is more universal and effective now.

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

14 years agoMFC r197044:
mav [Thu, 10 Dec 2009 23:46:37 +0000 (23:46 +0000)]
MFC r197044:
Actually component with the greatest priority is used by the prefer balance
algorithm.

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

14 years agoMFC r200124,r200126,
pjd [Thu, 10 Dec 2009 18:38:40 +0000 (18:38 +0000)]
MFC r200124,r200126,

r200124:

Avoid using additional variable for storing an error if we are not going
to do anything with it.

r200126:

Fix deadlock when ZVOLs are present and we are replacing dead component or
calling scrub when pool is in a degraded state. It will try to taste ZVOLs,
which will lead to deadlock, as ZVOL will try to acquire the same locks as
replace/scrub is holding already.

We can't simply skip provider based on their GEOM class, because ZVOL can have
providers build on top of it and we need to skip those as well.

We do it by asking for ZFS::iszvol attribute. Any ZVOL-based provider will give
us positive answer and we have to skip those providers.

This way we remove possibility to create ZFS pools on top of ZVOLs, but it is
not very useful anyway.

I believe deadlock is still possible in some very complex situations like when
we have MD provider on top of UFS file on top of ZVOL. When we try to replace
dead component in the pool mentioned ZVOL is based on, there might be a
deadlock when ZFS will try to taste MD provider. There is no easy way to detect
that, but it isn't very common.

r200125,r200158:

Fix order of looking for providers.

Before r200125 the order of looking for providers was wrong. It was:
1. Find provider by name.
2. Find provider by guid.
3. Find provider by name and guid.

Where it should have been:
1. Find provider by name and guid.
2. Find provider by guid.
3. Find provider by name.

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

14 years agoMFC r200063
syrinx [Thu, 10 Dec 2009 11:52:16 +0000 (11:52 +0000)]
MFC r200063

Fix a problem with high CPU consumption (up to 30%) by bsnmpd on a loaded system.
Instead of constantly calling the mibII_idle function when the server is not busy
call the function only once every 10 seconds to avoid bsnmpd constantly doing
gettimeofday syscalls. Make the idle polling interval confugurable via
begemotIfDataPoll.

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

14 years agoMFC rev 200230:
marcel [Thu, 10 Dec 2009 05:45:40 +0000 (05:45 +0000)]
MFC rev 200230:
Add support for the NetMos NM9865 family of Serial/Parallel ports.

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

14 years agoMFC r198833
thompsa [Wed, 9 Dec 2009 23:14:53 +0000 (23:14 +0000)]
MFC r198833

 Add more verbose output when dumping the configuration descriptor.

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

14 years agoMFC r199677
thompsa [Wed, 9 Dec 2009 23:12:52 +0000 (23:12 +0000)]
MFC r199677

 add support for MIDI devices without audio control stream.

Submitted by: Hans Petter Selasky

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

14 years agoMFC r199576
thompsa [Wed, 9 Dec 2009 23:12:14 +0000 (23:12 +0000)]
MFC r199576

 remove volume alignment (was previously not correctly implemented)

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

14 years agoMFC r199060
thompsa [Wed, 9 Dec 2009 23:11:27 +0000 (23:11 +0000)]
MFC r199060

 Improve support for High-speed USB audio devices.
 - fix issues regarding the mixer, where the interface number was not set in
   time.
 - fix wrong use of resolution parameter.

Submitted by: Hans Petter Selasky

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

14 years agoMFC r196487
thompsa [Wed, 9 Dec 2009 23:10:32 +0000 (23:10 +0000)]
MFC r196487

 Remove redundant Giant reference. Giant will be dropped
 automatically when the mutex argument is NULL.

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

14 years agoMFC r199816
thompsa [Wed, 9 Dec 2009 22:42:40 +0000 (22:42 +0000)]
MFC r199816

 Remove overuse of exclamation marks in kernel printfs, there mere fact a
 message has been printed is enough to get someones attention. Also remove the
 line number for DPRINTF/DPRINTFN, it already prints the funtion name and a
 unique message.

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

14 years agoMFC r199814
thompsa [Wed, 9 Dec 2009 22:41:50 +0000 (22:41 +0000)]
MFC r199814

 Disable interrupts after doing early takeover of the usb controller in case usb
 isnt actually compiled in (or kldloaded) as the controller could cause spurious
 interrupts.

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

14 years agoMFC r199718
thompsa [Wed, 9 Dec 2009 22:41:11 +0000 (22:41 +0000)]
MFC r199718

 Actually disable interrupts in ehci_detach().

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

14 years agoMFC r199676
thompsa [Wed, 9 Dec 2009 22:40:27 +0000 (22:40 +0000)]
MFC r199676

 Correct register access for USB device side operation on the musb controller.

Submitted by: Hans Petter Selasky

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