]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/log
FreeBSD/stable/8.git
13 years agoFix a typo.
hrs [Fri, 23 Jul 2010 22:18:05 +0000 (22:18 +0000)]
Fix a typo.

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

13 years agoSort entries. Cosmetic changes only.
hrs [Fri, 23 Jul 2010 22:00:19 +0000 (22:00 +0000)]
Sort entries.  Cosmetic changes only.

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

13 years ago- Spelling correction.
hrs [Fri, 23 Jul 2010 21:51:41 +0000 (21:51 +0000)]
- Spelling correction.
- Remove 64-bit quota entry; it was not merged[*].

Spotted by: kib[*]

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

13 years agoNew relnotes item:
hrs [Fri, 23 Jul 2010 21:38:26 +0000 (21:38 +0000)]
New relnotes item:
        SPARC64 V support [sparc64],
        usb(4) attach->notify event change,
        uep(4) added,
        cxgb(4) hardware filtering,
        fxp(4) hardware MAC stats via sysctl,
        ixgbe(4) version 2.2.0,
        msk(4) 88E8059 support, shutdown issue fixed,
        Xen netfront driver improved,
        iflladdr_event for L2 addr change has been added,
        ng_bridge(4) and ng_hub(4) "presistent" flag,
        CAM ATA transport driver supports more SATA feature,
        mvs(4) added,
        siis(4) now enables MSI on SiI3124,
        twa(4) driver updated,
        UFS QUOTA64,
        ZFS improvements,
        camcontrol(8) -d/-f added,
        liblzma and xz(1) added,
        ln(1) bugfixes,
        newfs_msdosfs(8) default volume label changed,
        pam_krb5(8) no_user_check option added,
        pathchk(1) -P for POSIX compatibility,
        stat(1) %Sf added,
        unzip(1) rename query, -Ccfpv options added,
        ISC BIND 9.6.2-P2,
        OpenSSL 0.9.8n, and
        tzdata2010j.

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

13 years agoMFC 209956:
jhb [Fri, 23 Jul 2010 15:32:22 +0000 (15:32 +0000)]
MFC 209956:
Remove a dead test.  We already exclude NMI traps from this code in an
earlier condition.

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

13 years agoMFC 209946:
jhb [Fri, 23 Jul 2010 15:26:19 +0000 (15:26 +0000)]
MFC 209946:
- Add missing locking around flushing of an NFS node's attribute cache
  in the NMODIFIED case of nfs_open().
- Cosmetic tweak to simplify an expression in nfs_lookup().

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

13 years agoMFC 210068:
jhb [Fri, 23 Jul 2010 15:16:27 +0000 (15:16 +0000)]
MFC 210068:
- Sort list of trace points.
- Note that 'y' (sysctl requests) is in the default set of trace points.

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

13 years agoMFC 210066:
jhb [Fri, 23 Jul 2010 14:30:14 +0000 (14:30 +0000)]
MFC 210066:
Rework the SMBIOS table walker to make it operate like other table walkers
and remove a buffer overflow.

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

13 years agoNew relnotes item:
hrs [Fri, 23 Jul 2010 09:01:12 +0000 (09:01 +0000)]
New relnotes item:
        ddb(4) show ifnets/ifnet/lltables/lltable/llentry,
        ddb(4) show vnet_sysinit/vnet_sysuninit,
        UltraSPARC IV/IV+ support [sparc64],
        if_bridge(4) MTU handling fix,
        bwn(4) added,
        em(4) 7.0.0,
        igb(4) 1.9.3,
        ixgbe(4) 2.1.7,
        msk(4) interrupt moderation,
        mxge(4) 1.4.50 firmware,
        re(4) performance fix,
        run(4) added,
        sge(4) added,
        flowtable IPv6 support,
        LINKSTATE capability flag added to ifnet,
        ipfw(4) improvements: ipfw0, IPv6 support of "me", IPv6 keep-alive fix,
                lookup match option, ip.fw.one_pass fix,
        memory alignment issue in ng_ppp and ng_ksocket fixed,
        tap(4) now supports link state report,
        more drivers to IFCAP_VLAN_HWTSO support list,
        cam(3) ATA transport PUIS support,
        glabel(8) per-FS enable/disable knobs,
        gmultipath(8) destroy, rotate, getactive commands,
        gsched(8) added,
        msdosfs(5) MPSAFE,
        UFS NFSv4 ACL support,
        chgrp(1) and chown(8) -x flag support,
        fnmatch(3) bug fix,
        indent(1) -ta flag support,
        libz optimization on i386/amd64,
        netstat(1) -f netgraph bug fix,
        /tmp/.snap now in $daily_clean_tmps_ignore used in periodic(8) script,
        sed(1) -r flag (equivalent to -E) added,
        db(3) style database of /etc/services added,
        rc.d/ip6fw deprecated and integrated into rc.d/ipfw,
        rc.c/tmp now uses a unique dirname for /tmp/.diskless,
        rc.d/ubthidhci added,
        ACPI-CA 20100304,
        ISC BIND 9.6.2-P1,
        netcat 4.7,
        OpenSSH 5.4p1, and
        tzdata2010i.

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

13 years agoMFC r209892:
weongyo [Thu, 22 Jul 2010 19:22:32 +0000 (19:22 +0000)]
MFC r209892:
  Fixes a page fault in bwi_pci_probe() because the array isn't
  terminated with NULL.

  PR:           kern/148473
  Submitted by: Grzegorz Dabrowski <grzegorz.dabrowski at gmail dot com>

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

13 years agoMFC: r210248
jkim [Thu, 22 Jul 2010 17:02:11 +0000 (17:02 +0000)]
MFC: r210248

Fix two long-standing line wrapping bugs in VGA renderer for pixel mode.
Font size may be smaller than 16 and logical scan line may be larger than
the displayed scan line.

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

13 years agoMFC 209599, 209960:
ken [Thu, 22 Jul 2010 15:38:36 +0000 (15:38 +0000)]
MFC 209599, 209960:

r209960 | marius

  - Make the maxsize parameter of the data buffer DMA tag match maxio, which
    was missed in r209599.
    Reported and tested by: Michael Moll
  - Declare mpt_dma_buf_alloc() static just like mpt_dma_buf_free(), both are
    used in mpt.c only.

  Reviewed by:    ken
  MFC after:      r209599

r209599 | ken

  Change the mpt driver to allow larger I/O sizes.

  The mpt driver previously didn't report a 'maxio' size to CAM, and so the
  da(4) driver limited I/O sizes to DFLTPHYS (64K) by default.  The number
  of scatter gather segments allowed, as reported to busdma, was
  (128K / PAGE_SIZE) + 1, or 33 on architectures with 4K pages.

  Change things around so that we wait until we've determined how many
  segments the adapter can support before creating the busdma tag used for
  buffers, so we can potentially support more S/G segments and therefore
  larger I/O sizes.

  Also, fix some things that were broken about the module unload path.  It
  still gets hung up inside CAM, though.

  mpt.c: Move some busdma initialization calls in here, and call
them just after we've gotten the IOCFacts, and know how
many S/G segments this adapter can support.

  mpt.h: Get rid of MPT_MAXPHYS, it is no longer used.

Add max_cam_seg_cnt, which is used to report our maximum
I/O size up to CAM.

  mpt_cam.c: Use max_cam_seg_cnt to report our maximum I/O size to CAM.

Fix the locking in mpt_cam_detach().

  mpt_pci.c: Pull some busdma initialization and teardown out and put
it in mpt.c.  We now delay it until we know many scatter
gather segments the adapter can support, and therefore
how to setup our busdma tags.

  mpt_raid.c: Make sure we wake up the right wait channel to get the
raid thread to wake up when we're trying to shut it down.

  Reviewed by: gibbs, mjacob
  MFC after: 2 weeks

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

13 years agoMFC r208684:
mm [Thu, 22 Jul 2010 14:52:51 +0000 (14:52 +0000)]
MFC r208684:

Allow to use 'jailed' property again.

Reported by: Eugene Mitrofanov <eugene@imedia.ru>
Approved by: delphij (mentor)

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

13 years agoNew relnotes item:
hrs [Thu, 22 Jul 2010 05:53:12 +0000 (05:53 +0000)]
New relnotes item:
        syscons(4) history handling improved,
        X86BIOS added on i386/amd64,
        loader(8) U-Boot storage support [powerpc],
        smu(4) thermal management and monitoring [powerpc],
        tnt4882(4) now supports TNT5004,
        acpi_video(4) LCD brightness control notify handler support,
        acpi_sony(4) now supports brightness, wired LAN power, bass gain,
        ath(4) supports AR9285,
        bge(4) ASF heartbeat sending fixed,
        vlan(4) IFCAP_VLAN_HWTSO,
        ciss(4) livelock fixed,
        find(1) -newerXB fixed,
        procstat(1) -i/-j added, and
        tzdata2010e.

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

13 years agoMFC r210089:
emaste [Thu, 22 Jul 2010 01:23:39 +0000 (01:23 +0000)]
MFC r210089:

  Add -p option to have pom(6) print just the percentage, without extra
  text.

PR:           bin/51070
Submitted by: Matt Koivisto mkoivisto sandvine com

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

13 years agoDocument two possible errata.
hrs [Thu, 22 Jul 2010 01:14:33 +0000 (01:14 +0000)]
Document two possible errata.

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

13 years agoNew release notes:
hrs [Thu, 22 Jul 2010 01:01:16 +0000 (01:01 +0000)]
New release notes:
        ddb(4) show vnetrcrs,
        sched_4bsd race fix,
        pfil(9) virtualization,
        ahci(4) Marvell 88SE912x support,
        ahci(4) FBS support in PM,
        ata(4) PUIS support,
        cam(3) kern.cam.boot_delay, error recovery improvement,
        gmultipath(8) destroy subcommand added,
        isp(4) improved,
        siis(4) Max Read Request Size increased,
        nfsiod(8) race fixed,
        ffs(7) inode number is now unsigned,
        cp(1) -x added,
        fsck_ffs(8) UFS1 last cylinder group issue fixed,
        ifconfig(8) description support added,
        netstat(1) -q option added,
        restore(8) -P shot read issue fixed,
        rtsold(8) -a improved,
        strsignal(3) thread-safe,
        sysctl(8) -i added,
        rc.d/rtsold added,
        firewall_coscripts in rc.conf added, and
        ISC BIND 9.6.1-P3.

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

13 years agoFix missing words.
hrs [Wed, 21 Jul 2010 20:38:45 +0000 (20:38 +0000)]
Fix missing words.

Spotted by: pluknet at gmail.com

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

13 years agoNew relnotes item:
hrs [Wed, 21 Jul 2010 20:32:22 +0000 (20:32 +0000)]
New relnotes item:
        DEADLKRES added,
        tty TIOCSTI fix,
        sched_4bsd timestamp fix,
        vimage source address selection knob added,
        EFI loader -dev currdev command-line option [ia64],
        epic(4) [sparc64],
        Fire JBus to PCIe bridge [sparc64],
        agp(4) improved,
        snd_hda(4) AD1981HD support,
        snd_hda(4) multichannel playback support,
        iwn(4) updated,
        u3g(4) improved,
        uhso(4) and uhsoctl(1) added,
        pf(4) "sloppy" merged,
        ada(4) BIO_DELETE support,
        gstripe(8) default blocksize increased to 64k,
        NFS negnametimeo option added,
        ZFS NFSv4 ACL support,
        camcontrol identify -v added,
        NFSv4 ACL support: cp(1), find(1), getfacl(1), mv(1), setfacl(1),
        fetch(1) HTTP digest authentication support,
        netstat(1) ARP statistics added,
        newsyslog(8) PID handling changed and -P flag added,
        scandir(3) and alphasort(3) improved for POSIX.1-2008,
        obsolete POSIX.1-2008 XSI functions sighold(), sigignore(),
                sigpause(), sigrelse(), sigset() added for easy porting,
        traceroute(8) now works in a VIMAGE jail,
        usbconfig(8) -d to specify a ugen(4) device to be used,
        usbconfig(8) add_quirk/remove_quirk subcommand added,
        whois(1) -d removed and IPv6 handling added,
        ACPI-CA updated to 20100121,
        netcat updated to OpenBSD 4.6,
        sendmail updated to 8.14.4, and
        tzdata2010b.

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

13 years agoNew relnotes items:
hrs [Wed, 21 Jul 2010 18:27:32 +0000 (18:27 +0000)]
New relnotes items:
        devfs(5) default rule change for ptys,
        pselect(3) -> pselect(2),
        INCLUDE_CONFIG_FILE enabled by default,
        boot2 reimplemented for pc98,
        amdsbwd(4) added,
        ipmi(4) timer setting bug fixed,
        uftdi(4) zero length packet bug fixed,
        bge(4) TSO on BCM5755 supported,
        bge(4)/bce(4) DMA handling bug fixed,
        et(4) MSI and TX checksum offloading of IPv4/TCP/UDP added,
        mxge(4) updated to 1.4.48b,
        ste(4) improved,
        vge(4) improved,
        ipfw(4) IPv6 support of keep-alive rule fixed,
        proxy arp over P2P link fixed,
        vlan(4) now in GENERIC,
        vlan(4) now handles parent IF renaming,
        fdc(4) kmod unload issue fixed,
        geom provider now reports optimal block size to the upper layer,
        graid3(8) panic fixed,
        vfs.vlru_allow_cache_src added,
        zfs(8) bugs fixed,
        diskinfo(8) stripe size and offset reporting,
        gcore(1) improved,
        pwait(1) added,
        MADV_PROTECT for sshd, cron, inetd, syslogd,
        zfs(8) receive -u added,
        service(8) added,
        rc.conf(5) now supports vlans_IF for vlan(4) configuration,
        awk 26 November 2009 release,
        tzdata2009u, and
        filename of release ISO image changed.

An entry for IPV6_V6ONLY sockopt in Liunx is removed because
this was not a visible change.

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

13 years agoMFC r210061:
bcr [Wed, 21 Jul 2010 17:16:12 +0000 (17:16 +0000)]
MFC r210061:

Update some release version numbers. The patch is based on the one
from the PR, but the version numbers reflect the newer ones from
http://security.freebsd.org/#sup

PR:             docs/145227
Submitted by:   Glen Barber (glen dot j dot barber at gmail dot com)
Reviewed by:    cperciva
Mentored by:    jkois

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

13 years agoMFC r209772:
bcr [Wed, 21 Jul 2010 17:11:26 +0000 (17:11 +0000)]
MFC r209772:

Fix an error in the EXAMPLES section of getopt(1), which is based on
the same fix present in NetBSD.

Note: the getopt man page contains more antique information like this.
An overhaul of the man page and/or sync with NetBSD would be the right
thing to do. But since this is out of the scope of the PR, I'll leave
it as it is for now.

PR:             docs/133118
Submitted by:   Oleg A. Mamontov (oleg at mamontov dot net)
Discussed with: jilles@

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

13 years agoFix missing words.
hrs [Wed, 21 Jul 2010 11:01:40 +0000 (11:01 +0000)]
Fix missing words.

Spotted by: mav

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

13 years agoIPV6_V6ONLY is unconditionally reset for Linux IPv6 sockets in Linux
hrs [Wed, 21 Jul 2010 10:57:55 +0000 (10:57 +0000)]
IPV6_V6ONLY is unconditionally reset for Linux IPv6 sockets in Linux
emulation environment.

Spotted by: ume

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

13 years agoAdd relnotes item for 8.1R (first round):
hrs [Wed, 21 Jul 2010 10:36:27 +0000 (10:36 +0000)]
Add relnotes item for 8.1R (first round):
        ddb(4) show mount improved,
        fcntl(2) F_READAHEAD and F_RDAHEAD added,
        lindev(4) added,
        more dtrace probes,
        SMP support in PowerPC G5,
        ULE %CPU fix,
        VIMAGE + SCTP build fix,
        vfs.root.mountfrom space-separated list support added,
        loader(8) memory range selection improved,
        zfsloader added,
        zfsboot and gptboot added,
        adb(4) supports taps on ADB touchpad,
        apt(4) added,
        uart(4) NetMos NM9865 support added,
        bge(4) 5761, 5784, 57780 support added,
        cxgb(4) updated to T3 firmware 7.8.0,
        msk(4) 88E804288E8057 and DGE-560SX support added,
        re(4) unnecessary reinitialization eliminated,
        tsec(4) now supports ALTQ,
        urtw(4) now supports RTL8187B,
        net.inet.ipcomp.ipcomp_enable=1 by default,
        IPV6_V6ONLY by default for IPv6 sockets in Linux emulation,
        gmirror(8) priority change support,
        gmirror(8) "load" balancing algorithm improved and now used as default,
        "option ATA_CAM" added,
        ata(4) fix for interrupt storms/command timeouts added,
        ata(4) umass support removed,
        ahd(4) error counter improved,
        cam(3) SATA/PATA support improved,
        bsnmpd(1) high CPU load issue fixed,
        bzip2(1) multi-session bzip2 file handling fixed,
        ee(1) crach fixed,
        factor(6) performance issue fixed,
        fetch(1) NO_PROXY handling fixed,
        ifconfig(8) now supports NDP flag handling,
        ntpd(8) no longer attempts to bind IPv6 anycast addresses,
        unifdef(1) updated to 1.188,
        ENOTCAPABLE new errno,
        rc.d/static_arp added, and
        ISC BIND 9.6.1-P2.

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

13 years agoMFC r209388:
ae [Wed, 21 Jul 2010 08:48:45 +0000 (08:48 +0000)]
MFC r209388:
  Remove G_TYPE_ASCLBA type and replace it with G_TYPE_STRING in gpart.
  Move code that converts params from humanized numbers to sectors count
  to subr.c and adjust comment.
  Add post-processing for "size" and "start offset" params in gpart,
  now they are properly converted to sectors count with known sector size
  that can be greater that 512 bytes.
  Also replace "unsigned long long" type to "off_t" for unify code since
  it used for medium size in libgeom(3) and DIOCGMEDIASIZE ioctl.

  PR: bin/146277

MFC r209392:
  Check for overflow before it occurs. Also add check for
  negative numbers.

  Suggested by: ache

Approved by: mav (mentor)

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

13 years agoMFC: r209189
jkim [Tue, 20 Jul 2010 20:27:34 +0000 (20:27 +0000)]
MFC: r209189

Fix typos that broke duration calculations on protection frames.

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

13 years agoMFC: r209957, r210003, r210005
jkim [Tue, 20 Jul 2010 20:15:32 +0000 (20:15 +0000)]
MFC: r209957, r210003, r210005

- Move i386-inherited logic of building ACPI headers for acpi_wakeup.c into
better places and remove intermediate makefile and shell scripts.  This
makes parallel kernel build little bit safer for amd64.
- Make SMP code path in acpi.c conditional at run-time.
- Define SMP unconditionally for amd64 and remove opt_global.h from SRCS in
sys/modules/acpi/acpi/Makefile.  Note it is done just for correctness sake
because we do not build, ship, or support acpi.ko on amd64.

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

13 years agoMFC: r209965, r209966, r210129, r210137, r210155, r210157
jkim [Tue, 20 Jul 2010 19:38:38 +0000 (19:38 +0000)]
MFC: r209965, r209966, r210129, r210137, r210155, r210157

- According to ACPICA User Guide and Programmer Reference, the read data
must be zero extended to fill the 32-bit or 64-bit return value even if
the bit width of the port or location is less than 32 or 64.
- Use pmap_mapdev()/pmap_unmapdev() to map device memory instead of using
AcpiOsMapMemory()/AcpiOsUnmapMemory() (-> pmap_mapbios()/pmap_unmapbios())
for AcpiOsReadMemory() and AcpiOsWriteMemory().  Although they do not sound
too obvious, these functions are exclusively used to access memory mapped
IO in ACPICA.
- Remove 64-bit access from AcpiOsReadMemory() and AcpiOsWriteMemory().
These functions do not support 64-bit access.  Likewise, return error when
64-bit access is requested for PCI configuration space.
- Simplify AcpiOsReadPort() and AcpiOsWritePort() with iodev_read_*() and
iodev_write_*().  This removes unnecessary uses of temporary macros as well.
There is no functional change after this (verified with md5(1) on amd64).

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

13 years agoMFC: r209837, r209842, r209949
jkim [Tue, 20 Jul 2010 18:59:10 +0000 (18:59 +0000)]
MFC: r209837, r209842, r209949

Sync. printf() of libstand(3) with sys/kern/subr_prf.c.

CVS r1.94 jhb:
Cast the integer read as the first argument for %b to an unsigned integer
so it's value is not sign extended when assigned to the uintmax_t variable
used internally by printf.  For example, if bit 31 is set in the cpuid
feature word, then %b would print out the initial value as a 16 character
hexadecimal value.  Now it only prints out an 8 character value.

CVS r1.109 njl:
Add support for 'h' and 'hh' modifiers for printf(9).

CVS r1.117 phk:
If we ignore an unknown % sequence, we must stop interpreting the remaining
% arguments because the varargs are now out of sync and there is a risk that
we might for instance dereference an integer in a %s argument.

SVN r209836 jkim:
Implement optional 'precision' for numbers.  Previously, it was parsed but
ignored.  Some third-party modules (e.g., ACPICA) prefer this format over
zero padding flag '0'.

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

13 years agoMFC: r209836, r209949
jkim [Tue, 20 Jul 2010 18:55:13 +0000 (18:55 +0000)]
MFC: r209836, r209949

Implement optional 'precision' for numbers.  Previously, it was parsed but
ignored.  Some third-party modules (e.g., ACPICA) prefer this format over
zero padding flag '0'.

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

13 years agoMFC: r209737, r209740
jkim [Tue, 20 Jul 2010 18:43:15 +0000 (18:43 +0000)]
MFC: r209737, r209740

Fix a possible null pointer dereference and plug a possible memory leak.

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

13 years agoMFC: r208411, r208412, r208413, r208564, r208567, r210149
jkim [Tue, 20 Jul 2010 18:28:34 +0000 (18:28 +0000)]
MFC: r208411, r208412, r208413, r208564, r208567, r210149

- Suspend screen updates when the video controller is powered down.
- Let the first device suspend and the last device resume syscons(4).
- Do not attempt to switch to the same VTs between suspend and resume.
- When we are not switching VTs, just mark all buffer to be updated.
- Fix some style(9) nits.

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

13 years agoMFC r210012:
gnn [Tue, 20 Jul 2010 17:57:10 +0000 (17:57 +0000)]
MFC r210012:

Fix a panic brought about by writing an MSR without a proper mask.
All of the necessary wrmsr calls are now preceded by a rdmsr
and we leave the reserved bits alone.
Document the bits in the relevant registers for future reference.

Tested by: mdf

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

13 years agoMFC r209738:
bcr [Tue, 20 Jul 2010 15:34:27 +0000 (15:34 +0000)]
MFC r209738:

Mention the radiolist option in the man page. It is being listed when
dialog(1) is run without arguments and works as expected. Therefore,
it should be part of the manual as well.

Note: dialog(1) has not been updated for many years and is not actively
maintained at the moment.

PR:             docs/139682
Submitted by:   manolis@
Discussed with: jkim@

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

13 years agoMFC r203691:
bschmidt [Tue, 20 Jul 2010 11:08:56 +0000 (11:08 +0000)]
MFC r203691:
- Update documentation for the iwn and iwnfw drivers: they support the
  1000, 5150, 6000 and 6050 devices too, with firmware modules for the
- 4965, 1000, 5000, 5150 and 6000.
- Add documentation for mwl and all the wireless firmware drivers.

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

13 years agoMFC r210168:
mav [Tue, 20 Jul 2010 05:16:10 +0000 (05:16 +0000)]
MFC r210168:
Make legacy ATA emulation detection more strict. This should fix false
positive legacy detection and attach failure/panic for Marvell 88SX6141
controller and potentially some others.

PR:             kern/145064

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

13 years agoMFC r210165:
mav [Tue, 20 Jul 2010 05:14:30 +0000 (05:14 +0000)]
MFC r210165:
Improve interrupt setup errors handling.

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

13 years agoMFC r209978,209981,209987,210184:
lstewart [Tue, 20 Jul 2010 00:46:18 +0000 (00:46 +0000)]
MFC r209978,209981,209987,210184:

- Rename DPCPU_SUM to DPCPU_VARSUM to better reflect the fact it operates on
  member variables of a DPCPU struct (r209978).

- Add DPCPU_SUM which sums a DPCPU variable (r209978,209987,210184).

- Macro to simplify zeroing DPCPU variables (r209981,209987).

Sponsored by: FreeBSD Foundation

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

13 years agoMFC r209954:
bcr [Mon, 19 Jul 2010 19:54:37 +0000 (19:54 +0000)]
MFC r209954:

Fix spelling of "weirdo" in /etc/gettytab comment.

PR:             docs/148500
Submitted by:   Warren Block (wblock at wonkity dot com)
Approved by:    ed@

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

13 years agoMFC r210134:
jamie [Mon, 19 Jul 2010 19:52:02 +0000 (19:52 +0000)]
MFC r210134:

  Don't copy and return a potentially unset buffer when jail_get fails.

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

13 years agoMFC r210133:
jamie [Mon, 19 Jul 2010 19:51:17 +0000 (19:51 +0000)]
MFC r210133:

  Don't import parameter values in jail_getv, except for the search key.
  Remove the internal jailparam_vlist, in favor of using variants of its
   logic separately in jail_setv and jail_getv.
  Free the temporary parameter list and exported values in jail_setv
   and jail_getv.

Noted by: Stanislav Uzunchev

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

13 years ago- Clean up old contents and bump version numbers.
hrs [Mon, 19 Jul 2010 15:26:42 +0000 (15:26 +0000)]
- Clean up old contents and bump version numbers.
- Add items for security advisories.

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

13 years agoMFC r209197:
kib [Mon, 19 Jul 2010 12:52:19 +0000 (12:52 +0000)]
MFC r209197:
Add assert to check that the (current) thread is in critical section.

MFC r209204:
Rename CRITSECT_ASSERT to CRITICAL_ASSERT

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

13 years agoMFC r209932:
kib [Mon, 19 Jul 2010 12:41:05 +0000 (12:41 +0000)]
MFC r209932:
For xsi_sigpause(3), remove the supplied signal from the process mask
during sigpause(2) call. It was backward.
Check that the signal number is valid.

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

13 years agoMFC r209933:
kib [Mon, 19 Jul 2010 12:37:28 +0000 (12:37 +0000)]
MFC r209933:
Use _SIG_VALID instead of expanded form of the macro.

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

13 years agoMFC r209934:
kib [Mon, 19 Jul 2010 12:32:24 +0000 (12:32 +0000)]
MFC r209934:
Use _SIG_VALID().

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

13 years agoMFC r209955:
kib [Mon, 19 Jul 2010 12:16:41 +0000 (12:16 +0000)]
MFC r209955:
When switching the thread from the processor, store %dr7 content
into the pcb before disabling watchpoints. Otherwise, when the
thread is restored on a processor, watchpoints are still disabled.

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

13 years agoMFC r210046: Fixed cache size decoding read from a label.
ru [Mon, 19 Jul 2010 10:55:44 +0000 (10:55 +0000)]
MFC r210046: Fixed cache size decoding read from a label.

PR:   kern/144732

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

13 years agoFix botched mergeinfo in stable/8, caused by my mismerge of r209703.
bcr [Sun, 18 Jul 2010 18:52:00 +0000 (18:52 +0000)]
Fix botched mergeinfo in stable/8, caused by my mismerge of r209703.

With help from and approved by:     kib@

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

13 years agoMFC r209703:
bcr [Sun, 18 Jul 2010 10:56:20 +0000 (10:56 +0000)]
MFC r209703:

Let boot(8) refer to the uart(4) serial driver, which is the replacement
for the obsolete sio(4) driver.

PR:             docs/144498
Submitted by:   Bruce Cran (bruce at cran dot org dot uk)
Approved by:    marcel

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

13 years agoMFC r209275:
mm [Sun, 18 Jul 2010 07:59:55 +0000 (07:59 +0000)]
MFC r209275:

Import latest ARC change from OpenSolaris:
- large ghost eviction causes high write latency
- arc_adjust might adjust MRU unnecessarily
- arc_adapt can lead to wild arc_p adjustment

OpenSolaris onnv-revision: 12636:13b5d698941e

Submitted by: avg
Approved by: pjd, delphij (mentor)
Obtained from: OpenSolaris (Bug ID 695021969534036951024)

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

13 years agoMFC r209664:
mav [Sun, 18 Jul 2010 07:42:54 +0000 (07:42 +0000)]
MFC r209664:
Add ata(4) ability to limit initial ATA mode for devices via device hints.
After boot this mode can be changed with atacontrol/camcontrol as usual.
It works for both legacy and ATA_CAM wrapper mode.

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

13 years agoMFC r209744:
mav [Sun, 18 Jul 2010 07:34:20 +0000 (07:34 +0000)]
MFC r209744:
ATA device reset starts probe sequence from the beginning. If reset caused
by timeout/error of one of probe commands, process may continue infinitely.
Make CAM ATA more robust to faulty devices and false positive detections,
abort probe after two restarts on timeouts or ten on other errors.

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

13 years agoMFC r208823:
mav [Sun, 18 Jul 2010 07:31:25 +0000 (07:31 +0000)]
MFC r208823:
Add allocation error handling.

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

13 years agoMFC r208819:
mav [Sun, 18 Jul 2010 07:29:37 +0000 (07:29 +0000)]
MFC r208819:
Fix double free on error.

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

13 years agoMFC r209883, r209944:
mav [Sun, 18 Jul 2010 07:23:00 +0000 (07:23 +0000)]
MFC r209883, r209944:
Make interrupt handler check that CAM bus initialization completed before
touching it. It fixes possible panic during controller attach in ATA_CAM
mode.

While there, slightly improve attach errors handling.

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

13 years agoMFC r210107,r210108:
bschmidt [Sun, 18 Jul 2010 07:19:23 +0000 (07:19 +0000)]
MFC r210107,r210108:
- Remove duplicate vendor:device entry.
- Fix some small whitespace nits.

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

13 years agoMFC r209977:
mav [Sun, 18 Jul 2010 07:15:37 +0000 (07:15 +0000)]
MFC r209977:
Disable multi-sector PIO transfers if ATA_SET_MULTI command failed.

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

13 years agoMFC r209884:
mav [Sun, 18 Jul 2010 07:13:55 +0000 (07:13 +0000)]
MFC r209884:
If ata_sata_phy_reset() failed and ata_generic_reset() is not called, mark
channel as having no devices connected. This improves hot-unplug operation
on legacy-emulating SATA controllers.

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

13 years agoMFC r209872:
mav [Sun, 18 Jul 2010 07:11:03 +0000 (07:11 +0000)]
MFC r209872:
Make hw.ata.ata_dma_check_80pin tunable affect not only device side, but
also controller side cable checks. Make respective sysctl writable.

PR:             kern/143462

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

13 years agoMFC: r209961
marius [Sat, 17 Jul 2010 15:47:23 +0000 (15:47 +0000)]
MFC: r209961

Correct inverted parent DMA tag parameters.

Reviewed by: ken

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

13 years agoMFC r209871 from /head
keramida [Sat, 17 Jul 2010 07:56:01 +0000 (07:56 +0000)]
MFC r209871 from /head

  Fix reading of empty fifolog files.  When we don't have anything
  to inflate, skip the rest of the fifolog reader code to avoid
  hitting the assert about Z_OK a bit further down.

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

13 years agoPredict the date we'll be ready to announce 8.1-RELEASE. While here
kensmith [Sat, 17 Jul 2010 04:35:02 +0000 (04:35 +0000)]
Predict the date we'll be ready to announce 8.1-RELEASE.  While here
add the entry for 8.0-RELEASE which was added to releng/8.0/UPDATING
during the 8.0-RELEASE cycle but not to stable/8/UPDATING at that time.

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

13 years agoMFC r208982,r208983,r210117 : cosmetic changes to kern.sched.topology_spec XML
ivoras [Fri, 16 Jul 2010 14:31:24 +0000 (14:31 +0000)]
MFC r208982,r208983,r210117 : cosmetic changes to kern.sched.topology_spec XML

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

13 years agoMFC r209664:
mav [Fri, 16 Jul 2010 09:12:47 +0000 (09:12 +0000)]
MFC r209664:
Add ata(4) ability to limit initial ATA mode for devices via device hints.
After boot this mode can be changed with atacontrol/camcontrol as usual.
It works for both legacy and ATA_CAM wrapper mode.

PR:             kern/123980

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

13 years agoMFC r208822:
mav [Fri, 16 Jul 2010 09:10:11 +0000 (09:10 +0000)]
MFC r208822:
Fix possible use after free.

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

13 years agoMFC r208820:
mav [Fri, 16 Jul 2010 09:08:16 +0000 (09:08 +0000)]
MFC r208820:
Fix use after free on error.

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

13 years agoMFC r201227: record the fact
imp [Thu, 15 Jul 2010 22:52:36 +0000 (22:52 +0000)]
MFC r201227: record the fact

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

13 years agoMFC: r209969
imp [Thu, 15 Jul 2010 22:35:50 +0000 (22:35 +0000)]
MFC: r209969

r209969 | nwhitehorn | 2010-07-12 22:08:08 -0600 (Mon, 12 Jul 2010) | 13 lines

Enhance config to handle MACHINEs with multiple architectures:

- Passing -m to config will now print the MACHINE and MACHINE_ARCH
  given in the passed kernel configuration file and then exit.
- If an option is defined in options.MACHINE with the same name as the
  architecture of the kernel being configured, that option will be
  considered set. This allows conditional compilation based on CPU
  architecture.

Config version is now 600010.

Reviewed by:    imp

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

13 years agoMFC: r209135
imp [Thu, 15 Jul 2010 22:34:30 +0000 (22:34 +0000)]
MFC: r209135
r209135 | imp | 2010-06-13 10:54:11 -0600 (Sun, 13 Jun 2010) | 9 lines

style(9) fixes:

o make cmd scoped to the whole do_rules function, since it really is
  scoped to the whole fucnion.  Making it static was the wrong way to
  fix referencing it outside of the block in which it was declared
  (and conforms to the style of the rest of the file).
o remove a couple of meaningless blank lines
o properly wrap one line.

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

13 years agoMFC part of 209483:
jhb [Thu, 15 Jul 2010 12:17:17 +0000 (12:17 +0000)]
MFC part of 209483:
Clear DF bit in cmcint interrupt handler.

Submitted by: kib

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

13 years agoMFC r209924; Add -l to the synopsis
brian [Thu, 15 Jul 2010 07:14:57 +0000 (07:14 +0000)]
MFC r209924; Add -l to the synopsis

Submitted by: jhell at dataix dot net

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

13 years agoMFC 209595:
jhb [Wed, 14 Jul 2010 21:52:02 +0000 (21:52 +0000)]
MFC 209595:
Send SIGPIPE to the thread that issued the offending system call
rather than to the entire process.

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

13 years agoPartially MFC 209592:
jhb [Wed, 14 Jul 2010 21:48:16 +0000 (21:48 +0000)]
Partially MFC 209592:
Add a tdksignal() routine that mirrors pksignal() except that it accepts a
thread instead of a process.  As an extension, if a NULL ksiginfo_t is
passed in, setup a ksiginfo_t on the stack similar to psignal().  This
provides semantics matching the new tdsignal() function in 9 while
preserving the existing ABI.

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

13 years agoMFC 208507,208556,208621:
jhb [Wed, 14 Jul 2010 21:10:14 +0000 (21:10 +0000)]
MFC 208507,208556,208621:
Add support for corrected machine check interrupts.  CMCI is a new local
APIC interrupt that fires when a threshold of corrected machine check
events is reached.  CMCI also includes a count of events when reporting
corrected errors in the bank's status register.  Note that individual
banks may or may not support CMCI.  If they do, each bank includes its own
threshold register that determines when the interrupt fires.  Currently
the code uses a very simple strategy where it doubles the threshold on
each interrupt until it succeeds in throttling the interrupt to occur
only once a minute (this interval can be tuned via sysctl).  The threshold
is also adjusted on each hourly poll which will lower the threshold once
events stop occurring.

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

13 years agoMFC 208787:
jhb [Wed, 14 Jul 2010 19:00:44 +0000 (19:00 +0000)]
MFC 208787:
Assert that the thread lock is held in sched_pctcpu() instead of
recursively acquiring it.  All of the current callers already hold the
lock.

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

13 years agoMFC 209588:
jhb [Wed, 14 Jul 2010 18:55:34 +0000 (18:55 +0000)]
MFC 209588:
- The ETIMEDOUT error applies to pthread_timedjoin_np(), not pthread_join().
- Tweak wording in history section for pthread_timedjoin_np().

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

13 years agoMFC r209718:
ed [Tue, 13 Jul 2010 11:04:46 +0000 (11:04 +0000)]
MFC r209718:

  Fix a race condition, where a TTY could be destroyed twice.

  There are special cases where tty_rel_free() can be called twice in a
  row, namely when closing and revoking the TTY at the same moment. Only
  call destroy_dev_sched_cb() once.

Reported by:  Jeremie Le Hen

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

13 years agoMFC r209743:
kib [Tue, 13 Jul 2010 08:45:50 +0000 (08:45 +0000)]
MFC r209743:
Calculate nshift only once.

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

13 years agoMFC r209742:
kib [Tue, 13 Jul 2010 08:43:28 +0000 (08:43 +0000)]
MFC r209742:
In revoke(), verify that VCHR vnode indeed belongs to devfs.

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

13 years agoMFC r209715: addr2ascii(3) was removed ages ago. Fix the comment.
maxim [Tue, 13 Jul 2010 05:12:14 +0000 (05:12 +0000)]
MFC r209715: addr2ascii(3) was removed ages ago.  Fix the comment.

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

13 years agoCorrectly copy the M_RDONLY flag when duplicating a reference
cperciva [Tue, 13 Jul 2010 02:45:17 +0000 (02:45 +0000)]
Correctly copy the M_RDONLY flag when duplicating a reference
to an mbuf external buffer.

Approved by: so (cperciva)
Approved by: re (kensmith)
Security: FreeBSD-SA-10:07.mbuf

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

13 years agoMFC r202917
remko [Mon, 12 Jul 2010 17:46:19 +0000 (17:46 +0000)]
MFC r202917

 Add support for the NM10 chipset.

 PR: kern/143118
 Submitted by: Koshin sumitani <ksumitani at mui dot biglobe dot ne dot jp>
 Approved by: imp (mentor, implicit)
 MFC after: 3 days

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

13 years agoMFC r209853:
nwhitehorn [Mon, 12 Jul 2010 14:24:20 +0000 (14:24 +0000)]
MFC r209853:

The number after 2 is 3, not 4.

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

13 years agoMFC r209577, r209761:
attilio [Mon, 12 Jul 2010 10:11:10 +0000 (10:11 +0000)]
MFC r209577, r209761:
- Fix a lock leak in case the ticks wrapped up
- Simplify the logic for handling ticks wrap-ups
- Fix a bug where a thread may be in sleepign state but not on a
  sleepqueue chain still.

Sponsored by: Sandvine Incorporated

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

13 years agoMFC r209364: Fix some (not all) style(9) and casting errors.
brian [Sun, 11 Jul 2010 22:00:40 +0000 (22:00 +0000)]
MFC r209364: Fix some (not all) style(9) and casting errors.

PR: 209364
Submitted by: giffunip at tutopia dot com
Obtained from: NetBSD

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

13 years agoMFC r209363: Recognise the -l switch in pkill.
brian [Sun, 11 Jul 2010 21:50:05 +0000 (21:50 +0000)]
MFC r209363: Recognise the -l switch in pkill.

PR: 143558
Submitted by: eitanadlerlist at gmail dot com

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

13 years agoMFC r209362: Add a -t switch for masking output based on size.
brian [Sun, 11 Jul 2010 21:47:38 +0000 (21:47 +0000)]
MFC r209362: Add a -t switch for masking output based on size.

PR: 144192
Submitted by: gk

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

13 years agoMFC r209820:
jamie [Sun, 11 Jul 2010 15:32:20 +0000 (15:32 +0000)]
MFC r209820:

  Properly recognize a number followed by non-digits as a jail name.
  Call "0" a name because zero is used to indicate no specified jid.

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

13 years agoMFC r209214:
mav [Sun, 11 Jul 2010 12:06:42 +0000 (12:06 +0000)]
MFC r209214:
When Emulate3Button is active, do not set select() timeout in states when
it is not needed. No need to kick CPU every 20ms without a purpose.

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

13 years agoMFC r209328,r209330:
mav [Sun, 11 Jul 2010 11:58:46 +0000 (11:58 +0000)]
MFC r209328,r209330:
While we indeed can't precisely measure time spent in C1, we can consider
measured interval as upper bound. It should be more precise then just
assuming 1/(2*hz). For idle CPU it should be quite precise, for busy - not
worse then before.

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

13 years agoMFC r209685:
kib [Sun, 11 Jul 2010 09:37:34 +0000 (09:37 +0000)]
MFC r209685:
Introduce a helper function vm_page_find_least(). Use it in several places,
which inline the function.

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

13 years agoMFC r209793:
kib [Sun, 11 Jul 2010 08:43:30 +0000 (08:43 +0000)]
MFC r209793:
Do not mention VM_ALLOC_RETRY in comment, and normalize the terminology
(blocking -> sleeping).

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

13 years agoMFC r209687:
kib [Sun, 11 Jul 2010 08:41:30 +0000 (08:41 +0000)]
MFC r209687:
Constify source argument for siginfo_to_siginfo32().

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

13 years agoMFC r209757:
mm [Sat, 10 Jul 2010 09:29:48 +0000 (09:29 +0000)]
MFC r209757:

- Add support for the "sec" option to "zfs set sharenfs"

Submitted by: Dmitry Morozovsky <marck@FreeBSD.org>
Approved by: delphij (mentor)

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

13 years agoMFC r209860:
delphij [Fri, 9 Jul 2010 20:44:14 +0000 (20:44 +0000)]
MFC r209860:

Don't use pack() for structures that is used purely for software state.
Otherwise the resulting, unaligned mutex structure would trigger panic.

Submitted by: Tom Cough <tom.couch lsi.com>
Reported/Tested by: jhb

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

13 years agoMFC r208946:
ae [Fri, 9 Jul 2010 08:48:51 +0000 (08:48 +0000)]
MFC r208946:
  New netgraph node ng_patch(4). It performs data modification of packets
  passing through. Modifications are restricted to a subset of C language
  operations on unsigned integers of 8, 16, 32 or 64 bit size.
  These are: set to new value (=), addition (+=), subtraction (-=),
  multiplication (*=), division (/=), negation (= -), bitwise AND (&=),
  bitwise OR (|=), bitwise eXclusive OR (^=), shift left (<<=),
  shift right (>>=). Several operations are all applied to a packet
  sequentially in order they were specified by user.

  Submitted by: Maxim Ignatenko <gelraen.ua at gmail.com>
   Vadim Goncharov <vadimnuclight at tpu.ru>
  Discussed with: net@

MFC r208947:
  Fix typo.

MFC r208989:
  Style(9) fixes:
  * Sort includes
  * Replace #define<SPACE> to #define<TAB>
  * Split declarations and initializations
  * Split long lines

  Requested by: kib

MFC r209194:
  * Include sys/systm.h for KASSERT()
  * Remove unneeded includes and comment
  * Replace home made OFFSETOF() macro with standard offsetof()

  Pointed out by: bde

Approved by: kib (mentor)

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

13 years agoMFC r208587:
attilio [Thu, 8 Jul 2010 23:25:33 +0000 (23:25 +0000)]
MFC r208587:
Add the support for reporting the NOCOREDUMP flag from
sysctl_kern_proc_vmmap().

Sponsored by: Sandvine Incorporated

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

13 years agoMFC 208742:
jhb [Thu, 8 Jul 2010 21:56:05 +0000 (21:56 +0000)]
MFC 208742:
MFamd64: Add a new macro PCPU_XEN_FIELDS to hold XEN-specific per-CPU
fields that is always included in PCPU_MD_FIELDS.  The macro is empty for
non-XEN kernels.  This avoids duplicating non-XEN per-CPU fields in two
places.  While here, remove several unused fields from the XEN-specific
structure.

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