]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/log
FreeBSD/stable/9.git
11 years agoMFC r243340:
kib [Mon, 24 Dec 2012 13:17:22 +0000 (13:17 +0000)]
MFC r243340:
Remove the check and panic for an impossible condition.

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

11 years agoMFC r240285:
kib [Mon, 24 Dec 2012 13:14:38 +0000 (13:14 +0000)]
MFC r240285:
Allow shared lookups for nullfs mounts, if lower filesystem supports
it.

MFC r241548:
Replace the XXX comment with the proper description.

MFC r241554:
Grammar fixes.

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

11 years agoMFC r242560:
kib [Mon, 24 Dec 2012 13:05:27 +0000 (13:05 +0000)]
MFC r242560:
Add decoding of the missed MNTK_ flags to ddb "show mount" command.

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

11 years agoMFC r240284:
kib [Mon, 24 Dec 2012 13:01:07 +0000 (13:01 +0000)]
MFC r240284:
Add a facility for vgone() to inform the set of subscribed mounts
about vnode reclamation. Typical use is for the bypass mounts like
nullfs to get a notification about lower vnode going away.

MFC r241225 (by avg):
mount.h: MNTK_VGONE_UPPER and MNTK_VGONE_WAITER were supposed to be different

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

11 years agoMFC r240283:
kib [Mon, 24 Dec 2012 12:54:12 +0000 (12:54 +0000)]
MFC r240283:
Add MNTK_LOOKUP_EXCL_DOTDOT struct mount flag, which specifies to the
lookup code that dotdot lookups shall override any shared lock
requests with the exclusive one. The flag is useful for filesystems
which sometimes need to upgrade shared lock to exclusive inside the
VOP_LOOKUP or later, which cannot be done safely for dotdot, due to
dvp also locked and causing LOR.

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

11 years agoMFC r244096:
delphij [Mon, 24 Dec 2012 00:45:54 +0000 (00:45 +0000)]
MFC r244096:

Sync pf.os with OpenBSD.

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

11 years agoMFC: r232679:
hrs [Mon, 24 Dec 2012 00:40:21 +0000 (00:40 +0000)]
MFC: r232679:

- Clean up extra ${.OBJDIR}.
- Add ${IMAGE} for the supported image files.  This fixes the install target
  on FreeBSD/pc98.
- Use "mkdir -p" instead of "-mkdir" consistently.

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

11 years agoFix typos.
hrs [Mon, 24 Dec 2012 00:08:58 +0000 (00:08 +0000)]
Fix typos.

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

11 years agoAdd items for 9.1R relnotes:
hrs [Sun, 23 Dec 2012 22:13:53 +0000 (22:13 +0000)]
Add items for 9.1R relnotes:
jail devfs/nullfs/zfs support and new params,
kern.eventtimer.activetick,
posix_fadvise(2) added,
filemon(4) added,
kern.stop_scheduler_on_panic=1 by default,
linux_fadvice64() added,
hw.memtest.tests=0 by default on VM,
kern.msgbuf_show_timestamp added,
null(4) and zero(4) non-blocking mode,
ULE CPU selection for SMT improved,
PREEMPTION on sparc64,
security.bsd.unprivileged_idprio added,
splash(4) TheDraw support,
boot0cfg PXE support,
/boot/config support,
backup GPT handling change in gptboot,
zfsboot/zfsloader device name/root storage pool format change,
zfsboot on sparc64,
abtn(4) on powerpc,
AMD 10h/12h family errata,
atibl(4) on powerpc,
acpi_wmi(4) multiple instances,
adm1030(4) on powerpc,
cesa(4) on arm,
PMC support for PowerPC G4, Sandy Bridge, software events,
pcf8563(4) RTC,
PWM fan control on PowerMac SMU,
Atmel SAM9XE support on arm,
kern.proc.* added,
USB suspend/resume improved,
xhci(4) USB 3.0 hub bugfix,
viawd(4) watch dog timer driver,
wbwd(4) watch dog timer driver,
drm2(4) new Intel GPU driver,
snd_hda(4) improved,
snd_hdspe(4) added,
snd_emu10kx(4), snd_maestro3(4), and snd_csa(4) GPL-free,
ae(4) bugfix,
axe(4) checksum offloading support,
bce(4) improved,
bge(4) improved,
cxgb(4) and cxgbe(4) updated,
dc(4) M5261/M5263 support added,
et(4) bugfixes,
igb(4) updated to 2.3.4,
iwn(4) new device support,
miibus(4) improved,
msk(4) 64-bit DMA support,
mxge(4) updated to 1.4.55,
nsphyter(4) National DP83849 support,
oce(4) for Emulex OneConnect 10Gbit Ethernet added,
ral(4) Ralink RT2800 and RT3000 support,
re(4) RTL8411 support,
runfw(4) updated to 0.236,
sfxge(4) for Solarflare SFC9000 added,
smcphy(4) Seeq Technology 80220 PHY support,
ti(4) ALTQ and PAE support,
vge(4) link-state detection support,
vr(4) flow control support,
xnb(4) netback improved,
if_bridge(4) link-state detection support,
ipfw(4) table extended,
ip6(4) performance improvement, multiple FIB, default route handling,
IPV6_MULTICASE_HOPS fixed,
NET_RT_IFLISTL added,
netmap(4) added,
sctp(4) improved,
SO_PROTOCOL added,
TCP_KEEP* options added,
arcmsr(4) updated to 1.20.00.25,
ahci(4) hw.ahci.force tunable added,
hw.ata.ata_dma backward compatibility improved,
cam(4) SEMB device support,
cam(4) kern.cam.pmp.hide_special added,
ctl(4) CAM Target Layer added,
cd(4) now uses READ CD for Audio CD,
da(4) BIO_DELETE support,
GEOM_MIRROR BIO_DELETE support,
GEOM_MULTIPATH improved,
GEOM_PART_MBR supports Linux swap partition,
GEOM_PART_LDM added,
GEOM_RAID added to GENERIC, DDF format support,
GEOM_UNCOMPRESS added,
hpt27xx(4) for HighPoint RocketRAID 27xx added,
isci(4) for Intel C600 (Patsburg) chipset added,
isp(4) target mode bugfix,
ixgbe(4) Intel X540 support,
mfi(4) bugfix, MSI support, Drake Skinny and Thunderbolt support,
mps(4) updated to 14.00.00.01-fbsd,
mpt(4) bugfix,
usb(4) storage device power saving mode support,
NFS bugfix, positive name cache, vfs.nfsd.disable_checkutf8,
tmpfs(5) vfs.tmpfs.memory_reserved,
ZFS improvements,
auth.conf(5) removed,
camcontorl(8) fwdownload,
dhclient(8) domain-search option support,
dump(8) devicename length in /etc/dumpdates changed,
fetch(1) %-encoding in user and password part,
fdlopen(3) added,
fopen(3) "x" mode,
gcc(1) -ffast-math bugfix,
hastd(8) pidfile,
ifconfig(8) vlanhwcsum,
ifconfig(8) IPv6 fix in an IPv4-only jail,
ifconfig(8) carp state parameter,
jail(8) configuration file support,
kdump(1) -p pid,
kenv(1) -v and -N,
kldload(8) -n,
libedit updated to 2009/12/28 snapshot,
libmap.conf(5) include and includedir directive,
libthr mutex performance improved,
libcxxrt and libc++ import,
limits(1) -P pid,
pciconf(8) -le,
procstat(1) superpage flag, -e, -x, -l,
remquo(3) bugfix,
rtld(1) GCC RELRO, GNU hash section,
setbuf(1) and libstdbuf,
top(1) per-thread I/O stat,
unzip(1) -Z,
xlocale(3) API import,
periodic: daily_status_zfs_zpool_list_enable in 404.status-zfs,
periodic: daily_scrub_zfs_default_threshold is now 35 days,
rc.d/nfsd: vfs.nfsd.server_max_nfsvers handling change,
backward compatibility: ipv6_enable=YES && ipv6_gateway_enable=YES,
ISC BIND 9.8.3-P4,
compiler-rt 147467,
file 5.11,
GNU gperf 3.0.3,
libarchive 2.8.5,
libpcap 1.2.1,
libstdc++ 135556 on gcc-4_2-branch,
LLVM 3.1,
netcat 5.1,
OpenSSL 0.9.8x,
tcpdump 4.2.1,
tcsh 6.18.01,
tzdata2012a,
zlib 1.2.7, and
x11/kde4 4.8.4.

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

11 years agoMFC r244635: zfs: solaris doesn't have KM_ZERO, kmem_zalloc should be used instead
avg [Sun, 23 Dec 2012 20:03:10 +0000 (20:03 +0000)]
MFC r244635: zfs: solaris doesn't have KM_ZERO, kmem_zalloc should be used instead

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

11 years agoMFC r243520,243521: zfs: overhaul zfs-vfs glue for vnode life-cycle management
avg [Sun, 23 Dec 2012 12:46:28 +0000 (12:46 +0000)]
MFC r243520,243521: zfs: overhaul zfs-vfs glue for vnode life-cycle management

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

11 years agoMFC r242567: zfs_mount: drop vfs.zfs.rootpool.prefer_cached_config tunable
avg [Sun, 23 Dec 2012 12:19:07 +0000 (12:19 +0000)]
MFC r242567: zfs_mount: drop vfs.zfs.rootpool.prefer_cached_config tunable

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

11 years agoMFC r243502: zfs roopool: add support for multi-vdev configurations
avg [Sun, 23 Dec 2012 12:16:13 +0000 (12:16 +0000)]
MFC r243502: zfs roopool: add support for multi-vdev configurations

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

11 years agoMFC r243762: gfs_file_inactive: replace bad code with ugly code
avg [Sun, 23 Dec 2012 12:12:47 +0000 (12:12 +0000)]
MFC r243762: gfs_file_inactive: replace bad code with ugly code

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

11 years agoMFC r243404: acpi_cpu: use fixed resource ids for cx state i/o resources
avg [Sun, 23 Dec 2012 12:09:41 +0000 (12:09 +0000)]
MFC r243404: acpi_cpu: use fixed resource ids for cx state i/o resources

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

11 years agoMFC r243761: acpi_cpu_notify: disable acpi_cpu_idle while updating
avg [Sun, 23 Dec 2012 12:07:42 +0000 (12:07 +0000)]
MFC r243761: acpi_cpu_notify: disable acpi_cpu_idle while updating
C-state data

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

11 years agoMFC r243760: acpi_cpu: change cpu_disable_idle to be a per-cpu flag
avg [Sun, 23 Dec 2012 12:06:00 +0000 (12:06 +0000)]
MFC r243760: acpi_cpu: change cpu_disable_idle to be a per-cpu flag

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

11 years agoMFC r243519: zfs_fhtovp: there is no reason to amend lock flags with
avg [Sun, 23 Dec 2012 11:58:08 +0000 (11:58 +0000)]
MFC r243519: zfs_fhtovp: there is no reason to amend lock flags with
LK_RETRY here

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

11 years agoMFC r243497: zfs: create devices/geoms from zvols after receiveing them
avg [Sun, 23 Dec 2012 11:56:08 +0000 (11:56 +0000)]
MFC r243497: zfs: create devices/geoms from zvols after receiveing them

PR: kern/167066

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

11 years agoMFC r243272,243499: assert_vop_locked should treat LK_EXCLOTHER as the
avg [Sun, 23 Dec 2012 11:52:33 +0000 (11:52 +0000)]
MFC r243272,243499: assert_vop_locked should treat LK_EXCLOTHER as the
not locked case

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

11 years agoMFC r244246:
mm [Sat, 22 Dec 2012 22:27:44 +0000 (22:27 +0000)]
MFC r244246:

illumos-gate 13894:f4af77f6bbd2
3397 zdb <pool> <objnum> output is too verbose
3398 zdb can't dump feature flags zap objects

References:
https://www.illumos.org/issues/3397
https://www.illumos.org/issues/3398

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

11 years agoFix typo. (fixing them as I find them)
dteske [Sat, 22 Dec 2012 00:23:57 +0000 (00:23 +0000)]
Fix typo. (fixing them as I find them)

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

11 years agoMerge r238978(approved by luigi), r242631, r242834, r243707
melifaro [Fri, 21 Dec 2012 23:47:22 +0000 (23:47 +0000)]
Merge r238978(approved by luigi), r242631, r242834, r243707

replace inet_ntoa_r with the more standard inet_ntop().
As discussed on -current, inet_ntoa_r() is non standard, has different arguments
in userspace and kernel, and almost unused (no clients in userspace, only
net/flowtable.c, net/if_llatbl.c, netinet/in_pcb.c, netinet/tcp_subr.c
in the kernel)

Use unified print_dyn_rule_flags() function for debugging messages
instead of hand-made printfs in every place.

Simplify sending keepalives.
Prepare ipfw_tick() to be used by other consumers.

Make ipfw dynamic states operations SMP-ready.

* Global IPFW_DYN_LOCK() is changed to per-bucket mutex.
* State expiration is done in ipfw_tick every second.
* No expiration is done on forwarding path.
* hash table resize is done automatically and does not flush all states.
* Dynamic UMA zone is now allocated per each VNET
* State limiting is now done via UMA(9) api.

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

11 years agoMerge r241908, r242632
melifaro [Fri, 21 Dec 2012 22:48:12 +0000 (22:48 +0000)]
Merge r241908, r242632

Remove unnecessary chain read lock in ipfw nat 'global' code.
Document case when ipfw chain lock must be held while calling ipfw_nat().

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

11 years agoMFC r244404:
mjg [Fri, 21 Dec 2012 21:40:51 +0000 (21:40 +0000)]
MFC r244404:

prison_racct_detach can be called for not fully initialized jail, so make
it check that the jail has racct before doing anything

PR: kern/174436

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

11 years agoMFC r243333:
jh [Fri, 21 Dec 2012 18:25:05 +0000 (18:25 +0000)]
MFC r243333:

- Don't pass geom and provider names as format strings.
- Add __printflike() attributes.
- Remove an extra argument for the g_new_geomf() call in swapongeom_ev().

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

11 years agoMFC r241916:
delphij [Fri, 21 Dec 2012 00:41:52 +0000 (00:41 +0000)]
MFC r241916:

Remove __P.

Submitted by: kevlo

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

11 years agoMFC r244037:
eadler [Thu, 20 Dec 2012 18:13:04 +0000 (18:13 +0000)]
MFC r244037:
Add check for failure of mkstemp and setenv.

Approved by: cperciva (implicit)

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

11 years agoMFC r244360:
ae [Thu, 20 Dec 2012 11:10:23 +0000 (11:10 +0000)]
MFC r244360:
  Use M_PROTO7 flag for M_IP6_NEXTHOP, because M_PROTO2 was used for
  M_AUTHIPHDR.

MFC r244365:
  Since we use different flags to detect tcp forwarding, and we share the
  same code for IPv4 and IPv6 in tcp_input, we should check both
  M_IP_NEXTHOP and M_IP6_NEXTHOP flags.

MFC r244386 (by glebius):
  Clear correct flag in INET6 case.

MFC r244387 (by glebius):
  Fix !INET6 build after r244365.

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

11 years agoMFC r242996:
eadler [Thu, 20 Dec 2012 04:16:25 +0000 (04:16 +0000)]
MFC r242996:
Add support for CIR1000 - Cirrus Logic V34 to the sio driver

PR: kern/44267
Approved by: cperciva (implicit)

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

11 years agoMFC r243932:
eadler [Thu, 20 Dec 2012 00:37:11 +0000 (00:37 +0000)]
MFC r243932:
Prefer the use of initalizer lists to ctor assignment.

Approved by: cperciva (implicit)

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

11 years agoMFC r243890:
eadler [Thu, 20 Dec 2012 00:35:08 +0000 (00:35 +0000)]
MFC r243890:
Connect organization.dot to the build

Approved by: cperciva (implicit)

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

11 years agoMFC r244318:
eadler [Thu, 20 Dec 2012 00:32:43 +0000 (00:32 +0000)]
MFC r244318:
Minor wording improvments to some manual pages

Approved by: cperciva (implicit)

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

11 years agoMFC r243891:
eadler [Thu, 20 Dec 2012 00:30:48 +0000 (00:30 +0000)]
MFC r243891:
Add ability to mergemaster to permit the user to type
the absolute path to PAGER if mergemaster can not find
the one already set.

Approved by: cperciva (implicit)

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

11 years agoMFC r243894:
eadler [Thu, 20 Dec 2012 00:28:52 +0000 (00:28 +0000)]
MFC r243894:
Remove useless check for NULL prior to free.

Approved by: cperciva (implicit)

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

11 years agoMFC r243892:
eadler [Thu, 20 Dec 2012 00:26:46 +0000 (00:26 +0000)]
MFC r243892:
Remove pointless check for the existence of /usr/bin/less which exists
in all configurations.

Approved by: cperciva (implicit)

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

11 years agoMFC r243572:
dim [Wed, 19 Dec 2012 16:22:46 +0000 (16:22 +0000)]
MFC r243572:

  Pull in r168610 from upstream libc++:

    When using libc++ headers on FreeBSD, in combination with -std=c++98,
    -ansi or -std=c++03, the long long type is not supported.  So in this
    case, several functions and types, like lldiv_t, strtoll(), are not
    declared.

  This should make it possible to use the libc++ headers in c++98 mode.

  Note: libc++ is originally designed as a c++0x or higher library, so you
  should still take care when using it with c++98 or c++03.

  Noted by: Yamaya Takashi <yamayan@kbh.biglobe.ne.jp>

MFC r243673 (by theraven):

  Merge new libc++ into head.

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

11 years agoMFC r243907:
dim [Wed, 19 Dec 2012 12:19:45 +0000 (12:19 +0000)]
MFC r243907:

Fix an old bug in devd, where it uses std::sort() to sort the various
lists it reads from its configuration files on the priority field.

Because some items in the lists have the same priority, and std::sort()
is not stable, the exact order in which the items are enumerated does
not have to correspond to the order they appear in the configuration
files.

Apparently this was never noticed with libstdc++, but with libc++ it
could cause the "uhid" entry from /etc/devd/usb.conf to be used instead
of the "ums" entry (which is earlier in the file).  This caused the
problem described in the PR: the USB mouse module was never loaded, and
the other actions (such as starting moused) were not executed.

To fix the problem, make devd use std:stable_sort() instead.

Reported by: Jan Beich <jbeich@tormail.org>
PR: bin/172958

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

11 years agoMFC r243901:
kib [Wed, 19 Dec 2012 04:24:11 +0000 (04:24 +0000)]
MFC r243901:
Fixes to ensure the integrity of the callwheel tailqs.

MFC r243912 (by attilio):
Rearrange comments, use cached callout flags when callout could have
been already destroyed.

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

11 years agoMerge r244181 from head to stable/9:
rwatson [Tue, 18 Dec 2012 14:32:53 +0000 (14:32 +0000)]
Merge r244181 from head to stable/9:

  Fix the location of auditdistd configuration file.

  Reported by:    Johan Hendriks <joh.hendriks@gmail.com>

Merge remaining unmerged portions of r243752 from head to stable/9; parts
adding the new 'auditdistd' user were previously merged in r243947:

  Merge a number of changes required to hook up OpenBSM 1.2-alpha2's
  auditdistd (distributed audit daemon) to the build:

  - Manual cross references
  - Makefile for auditdistd
  - rc.d script, rc.conf entrie
  - New group and user for auditdistd; associated aliases, etc.

  The audit trail distribution daemon provides reliable,
  cryptographically protected (and sandboxed) delivery of audit tails
  from live clients to audit server hosts in order to both allow
  centralised analysis, and improve resilience in the event of client
  compromises: clients are not permitted to change trail contents
  after submission.

  Submitted by:   pjd
  Sponsored by:   The FreeBSD Foundation (auditdistd)

Obtained from: TrustedBSD Project

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

11 years agoApply minor local adjustment to OpenBSM's parse.y due to differences in Yacc
rwatson [Tue, 18 Dec 2012 14:31:55 +0000 (14:31 +0000)]
Apply minor local adjustment to OpenBSM's parse.y due to differences in Yacc
between 10-CURRENT and 9-STABLE; this will allow the soon-to-be-connected
auditdistd to build on 9.x.

Pointer from: bapt

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

11 years agoMerge r243800 from head to stable/9:
rwatson [Tue, 18 Dec 2012 10:34:18 +0000 (10:34 +0000)]
Merge r243800 from head to stable/9:

  Specifically point at the Handbook instructions for world updates in
  UPDATING by URL.

  As there has been some confusion over the need to run "mergemaster -p",
  part of our standard upgrade procedure, following the recent addition of
  an "auditdistd" user, add a note about it to UPDATING explicitly.

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

11 years agoMerge r243798 from head to stable/9:
rwatson [Tue, 18 Dec 2012 10:29:28 +0000 (10:29 +0000)]
Merge r243798 from head to stable/9:

  Add auditdistd to the pre-install required uid check list.

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

11 years agoMerge r243751 from head to stable/9:
rwatson [Tue, 18 Dec 2012 10:23:58 +0000 (10:23 +0000)]
Merge r243751 from head to stable/9:

  Merge OpenBSM 1.2-alpha2 changes from contrib/openbsm to
  src/sys/{bsm,security/audit}.  There are a few tweaks to help with the
  FreeBSD build environment that will be merged back to OpenBSM.  No
  significant functional changes appear on the kernel side.

  Obtained from:  TrustedBSD Project
  Sponsored by:   The FreeBSD Foundation (auditdistd)

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

11 years agoMerge OpenBSM 1.2-alpha3 from head to stable/9, upgrading from the previous
rwatson [Tue, 18 Dec 2012 09:32:44 +0000 (09:32 +0000)]
Merge OpenBSM 1.2-alpha3 from head to stable/9, upgrading from the previous
OpenBSM 1.1p2:

OpenBSM 1.2 alpha 3

- Various minor tweaks to the auditdistd build to make it fit the FreeBSD
  build environment better.
- AUE_WAIT6 merged from FreeBSD 9.

OpenBSM 1.2 alpha 2

- auditdistd, a distributed audit trail management daemon, has now been
  merged.  This allows trail files to be securely and reliably synced from
  audited hosts to an audit server, and employs TLS encryption.  Where
  available, it uses Capsicum to sandbox the service.  This work was
  contributed by Pawel Jakub Dawidek under sponsorship from the FreeBSD
  Foundation.

OpenBSM 1.2 alpha 1

- Add Capsicum-related error numbers for FreeBSD: ENOTCAPABLE, ECAPMODE.
- Add Capsicum, process descriptor audit events for FreeBSD.
- Allow 0% minspace.
- Fixes from the clang static analyser.
- Fix expiration of trail files when the host parameter is used.
- Various typo fixes.
- Support for Solaris privilege and privilege set tokens.
- Documentation for getachost(), improvements for getacfilesz().
- Fix a directory descriptor leak that happened when audit trail partitions
  filled.
- Support for more Linux distributions with a partial contemporary endian.h.
- Improved escaping of XML-encapsulated BSM.
- A variety of minor documentation, style, and functional.

A separate commit will merge build changes to enable auditdistd, etc.

Obtained from: TrustedBSD Project
Sponsored by: The FreeBSD Foundation (auditdistd)

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

11 years ago- Trim old entries.
hrs [Tue, 18 Dec 2012 06:55:13 +0000 (06:55 +0000)]
- Trim old entries.
- Update errata items.
- Bump &release.*;

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

11 years agoMFC r243835:
kib [Tue, 18 Dec 2012 04:38:34 +0000 (04:38 +0000)]
MFC r243835:
The vnode_free_list_mtx is required unconditionally when iterating
over the active list.

MFC r244095:
Do not yield while owning a mutex, by stopping acquiring mount interlock.

MFC r244240:
Use user priority for the yield, do not spin on UP. Restructure the
iteration initializer and the iterator to remove code duplication.

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

11 years agoMFC r244239:
kib [Tue, 18 Dec 2012 04:27:33 +0000 (04:27 +0000)]
MFC r244239:
Fix a typo, resulting in the NULL pointer dereference.

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

11 years agoMFC r244238:
kib [Tue, 18 Dec 2012 04:23:44 +0000 (04:23 +0000)]
MFC r244238:
Line up the continuation backslashes.

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

11 years agoMFC r243869:
kib [Tue, 18 Dec 2012 04:18:42 +0000 (04:18 +0000)]
MFC r243869:
Fix a race between kern_setitimer() and realitexpire(),
by using the process mutex to interlock the callout start.

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

11 years agoMFC r239151: ftw(): Do not check the maxfds argument against OPEN_MAX.
jilles [Mon, 17 Dec 2012 13:03:13 +0000 (13:03 +0000)]
MFC r239151: ftw(): Do not check the maxfds argument against OPEN_MAX.

Apart from the fact that nothing should have OPEN_MAX as a limit (as opposed
to RLIMIT_NOFILE from getrlimit() or _SC_OPEN_MAX from sysconf()), POSIX
does not require us to check this. POSIX does have a requirement on the
application that maxfds not exceed {OPEN_MAX}, but does not require the
implementation to check it ("may fail").

PR: 95239

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

11 years agoMFC r241864:
eadler [Mon, 17 Dec 2012 12:55:01 +0000 (12:55 +0000)]
MFC r241864:
Remove MLINK for if_idt.

Approved by: cperciva (implicit)

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

11 years agoMFC r239150: nftw(): Do not check the maxfds argument against OPEN_MAX.
jilles [Mon, 17 Dec 2012 12:26:10 +0000 (12:26 +0000)]
MFC r239150: nftw(): Do not check the maxfds argument against OPEN_MAX.

Apart from the fact that nothing should have OPEN_MAX as a limit (as opposed
to RLIMIT_NOFILE from getrlimit() or _SC_OPEN_MAX from sysconf()), POSIX
does not require us to check this.

PR: 95239
Submitted by: Todd Miller

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

11 years agoMFC r243807:
delphij [Mon, 17 Dec 2012 06:43:08 +0000 (06:43 +0000)]
MFC r243807:

Use SA_ZPL_CRTIME instead of SA_ZPL_CTIME for creation time.

Submitted by: phil.stone at gmx.com

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

11 years agoNote that the manual page of less(1) says:
delphij [Mon, 17 Dec 2012 06:35:15 +0000 (06:35 +0000)]
Note that the manual page of less(1) says:

  Note  that  a preprocessor cannot output an empty file, since that
  is interpreted as meaning there is no replacement, and the  origi-
  nal file is used.  To avoid this, if LESSOPEN starts with two ver-
  tical bars, the exit status of the script becomes meaningful.   If
  the  exit  status is zero, the output is considered to be replace-
  ment text, even if it empty.  If the exit status is  nonzero,  any
  output  is ignored and the original file is used.  For compatibil-
  ity with previous versions of less, if LESSOPEN starts  with  only
  one vertical bar, the exit status of the preprocessor is ignored.

Use two pipe symbols for zless, so that zless'ing a compressed empty
file will give output rather than being interpreted as its compressed
form, which is typically a binary.

Thanks Mark Nudelman for pointing out this difference and the
suggested solution.

Reported by:  Matthias Meyser <meyser xenet.de>
PR:           bin/168839

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

11 years agoMFC r241836:
eadler [Mon, 17 Dec 2012 05:31:42 +0000 (05:31 +0000)]
MFC r241836:
Remove {harp,hfa,idt} man pages as they were removed in r179308.

PR: docs/171234
Approved by: cperciva (implicit)

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

11 years agoMFC r244077:
kib [Mon, 17 Dec 2012 05:18:16 +0000 (05:18 +0000)]
MFC r244077:
Add amd64-specific ddb command "show pte".  The command displays the
hierarchy of the page table entries which map the specified address.

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

11 years agoMFC r244076:
kib [Mon, 17 Dec 2012 05:15:51 +0000 (05:15 +0000)]
MFC r244076:
Do not ignore zero address, possibly returned by the vm_map_find() call.

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

11 years agoMFC r243836:
kib [Mon, 17 Dec 2012 05:13:15 +0000 (05:13 +0000)]
MFC r243836:
Print the frame addresses for the backtraces on i386 and amd64.

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

11 years agoMFC r243719,r243720,r243722,r243723,r243726,r243727,r243746:
pjd [Sun, 16 Dec 2012 23:41:34 +0000 (23:41 +0000)]
MFC r243719,r243720,r243722,r243723,r243726,r243727,r243746:

r243719:

IFp4 @208450:

Remove redundant call to AUDIT_ARG_UPATH1().
Path will be remembered by the following NDINIT(AUDITVNODE1) call.

Sponsored by: The FreeBSD Foundation (auditdistd)

r243720:

IFp4 @208381:

For VOP_GETATTR() we just need vnode to be shared-locked.

Sponsored by: The FreeBSD Foundation (auditdistd)

r243722:

IFp4 @208382:

Currently on each record write we call VFS_STATFS() to get available space
on the file system as well as VOP_GETATTR() to get trail file size.

We can assume that trail file is only updated by the audit worker, so instead
of asking for file size on every write, get file size on trail switch only
(it should be zero, but it's not expensive) and use global variable audit_size
protected by the audit worker lock to keep track of trail file's size.

This eliminates VOP_GETATTR() call for every write. VFS_STATFS() is satisfied
from in-memory data (mount->mnt_stat), so shouldn't be expensive.

Sponsored by: The FreeBSD Foundation (auditdistd)

r243723:

IFp4 @208383:

Currently when we discover that trail file is greater than configured
limit we send AUDIT_TRIGGER_ROTATE_KERNEL trigger to the auditd daemon
once. If for some reason auditd didn't rotate trail file it will never
be rotated.

Change it by sending the trigger when trail file size grows by the
configured limit. For example if the limit is 1MB, we will send trigger
on 1MB, 2MB, 3MB, etc.

This is also needed for the auditd change that will be committed soon
where auditd may ignore the trigger - it might be ignored if kernel
requests the trail file to be rotated too quickly (often than once a second)
which would result in overwriting previous trail file.

Sponsored by: The FreeBSD Foundation (auditdistd)

r243726:

IFp4 @208451:

Fix path handling for *at() syscalls.

Before the change directory descriptor was totally ignored,
so the relative path argument was appended to current working
directory path and not to the path provided by descriptor, thus
wrong paths were stored in audit logs.

Now that we use directory descriptor in vfs_lookup, move
AUDIT_ARG_UPATH1() and AUDIT_ARG_UPATH2() calls to the place where
we hold file descriptors table lock, so we are sure paths will
be resolved according to the same directory in audit record and
in actual operation.

Sponsored by: The FreeBSD Foundation (auditdistd)
Reviewed by: rwatson

r243727:

IFp4 @208452:

Audit handling for missing events:
- AUE_READLINKAT
- AUE_FACCESSAT
- AUE_MKDIRAT
- AUE_MKFIFOAT
- AUE_MKNODAT
- AUE_SYMLINKAT

Sponsored by: FreeBSD Foundation (auditdistd)

r243746:

Fix one more compilation issue.

Sponsored by: FreeBSD Foundation (auditdistd)

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

11 years agoMFC r243320,r243474:
eadler [Sun, 16 Dec 2012 17:01:23 +0000 (17:01 +0000)]
MFC r243320,r243474:

Add 'w' flag to:

Use whitespace (spaces and tabs) as the delimiter.
Consecutive spaces and tabs count as one single field
separator.
Approved by: cperciva (implicit)

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

11 years agoMFC r227162:
eadler [Sun, 16 Dec 2012 16:59:42 +0000 (16:59 +0000)]
MFC r227162:
Add missing static keywords to cut(1)

Approved by: ed
Approved by: cperciva (implicit)

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

11 years agoMFC r236866,r236867:
eadler [Sun, 16 Dec 2012 16:55:11 +0000 (16:55 +0000)]
MFC r236866,r236867:
- Consistenly mention columns and fields
- Add -b to short error messages

Approved by: kevlo
Approved by: cperciva (implicit)

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

11 years agoMFC: r243784
rmacklem [Sun, 16 Dec 2012 14:13:10 +0000 (14:13 +0000)]
MFC: r243784
Document the "-m" option added by r243783.
This is a content change.

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

11 years agoMFC: r243783
rmacklem [Sun, 16 Dec 2012 14:10:12 +0000 (14:10 +0000)]
MFC: r243783
Add a "-m" option to nfsstat, which dumps out the
actual options used by all NFS mounts. Works for
the new/default NFS client only.

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

11 years agoMFC: r243782
rmacklem [Sun, 16 Dec 2012 14:01:56 +0000 (14:01 +0000)]
MFC: r243782
Add an nfssvc() option to the kernel for the new NFS client
which dumps out the actual options being used by an NFS mount.
This will be used to add a "-m" option to nfsstat(1).

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

11 years agoMFC r243079:
eadler [Sat, 15 Dec 2012 21:57:34 +0000 (21:57 +0000)]
MFC r243079:
Add option to suppress just the plot in ministat while still retaining
the relative comparison (i.e., useful part).

Approved by: cperciva (implicit)

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

11 years agoMFC r244017:
eadler [Sat, 15 Dec 2012 14:36:41 +0000 (14:36 +0000)]
MFC r244017:
Sync with Library of Congress list.

Approved by: cperciva (implicit)

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

11 years agoMFC r243899:
eadler [Sat, 15 Dec 2012 14:34:33 +0000 (14:34 +0000)]
MFC r243899:
Use Bernard Baruch's full name.

The words "old than" seem to be quoted as "older than" by some sources,
so use the more likely and grammatically correct text.

PR: docs/173868
Approved by: cperciva (implicit)

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

11 years agoMFC r244027:
hselasky [Sat, 15 Dec 2012 10:27:07 +0000 (10:27 +0000)]
MFC r244027:
Add support for various Yamaha keyboards.

MFC after: 1 week
PR: usb/174254

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

11 years agoMerge from head r244157:
glebius [Sat, 15 Dec 2012 08:29:22 +0000 (08:29 +0000)]
Merge from head r244157:
    Fix a crash in tcp_input(), that happens when mbuf has a fwd_tag on it,
  but later after processing and freeing the tag, we need to jump back again
  to the findpcb label. Since the fwd_tag pointer wasn't NULL we tried to
  process and free the tag for second time.

  Reported & tested by: Pawel Tyll <ptyll nitronet.pl>

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

11 years agoMFC r242130:
jh [Fri, 14 Dec 2012 11:38:15 +0000 (11:38 +0000)]
MFC r242130:

Improve libgeom XML parsing error handling.

- Abort parsing and return an error if we run out of memory.
- Return EILSEQ from geom_xml2tree() for XML syntax errors.

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

11 years agoAdd pci id for the xeon hd4000 (IvyBridge server GT2)
bapt [Fri, 14 Dec 2012 09:00:18 +0000 (09:00 +0000)]
Add pci id for the xeon hd4000 (IvyBridge server GT2)

Submitted by: François Tigeot <ftigeot@wolfpond.org>
Obtained from: dragonfly

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

11 years agoMFC r243021:
bapt [Fri, 14 Dec 2012 08:52:08 +0000 (08:52 +0000)]
MFC r243021:
return ERANGE if the buffer is too small to contain the login as documented in
the manpage

Reviewed by: cognet, kib

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

11 years agoMFC r242961:
kib [Thu, 13 Dec 2012 06:27:58 +0000 (06:27 +0000)]
MFC r242961:
Document wait6() and waitid().

PR: standards/170346

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

11 years agoMFC r242960:
kib [Thu, 13 Dec 2012 06:24:54 +0000 (06:24 +0000)]
MFC r242960:
Implement the waitid() SUSv4 function using wait6() system call.

PR: standards/170346

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

11 years agoRegenerate.
kib [Thu, 13 Dec 2012 06:20:01 +0000 (06:20 +0000)]
Regenerate.

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

11 years agoMFC r242958:
kib [Thu, 13 Dec 2012 06:17:05 +0000 (06:17 +0000)]
MFC r242958:
Add the wait6(2) system call. It takes POSIX waitid()-like process
designator to select a process which is waited for. The system call
optionally returns siginfo_t which would be otherwise provided to
SIGCHLD handler, as well as extended structure accounting for child
and cumulative grandchild resource usage.

Allow to get the current rusage information for non-exited processes
as well, similar to Solaris.

The explicit WEXITED flag is required to wait for exited processes,
allowing for more fine-grained control of the events the waiter is
interested in.

Fix the handling of siginfo for WNOWAIT option for all wait*(2)
family, by not removing the queued signal state.

PR: standards/170346

MFC r243133:
Style fixes for r242958.

MFC r243134:
Alphabetically reorder the forward-declarations of the structures.
Add the declaration for enum idtype, to be used later.

MFC r243135:
Move the definition of the idtype_t from sys/types.h to sys/wait.h.
Fix the bug, use #if __BSD_VISIBLE instead of #if defined(__BSD_VISIBLE),
since __BSD_VISIBLE is always defined.
Reformat the comments from the Solaris style to KNF.

MFC r243136:
Restore the proper handling of the pid 0 for waitpid(2).
Fix the style around.

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

11 years agoMerge r232639
remko [Wed, 12 Dec 2012 07:19:14 +0000 (07:19 +0000)]
Merge r232639

Original commit:

Add support for the MosChip MCS9904 four serial ports
controller.

PR:  165804
Submitted by: Eugene Grosbein
MFC after: 1 week

Modified:
head/sys/dev/uart/uart_bus_pci.c

Modified: head/sys/dev/uart/uart_bus_pci.c
==============================================================================
--- head/sys/dev/uart/uart_bus_pci.c Wed Mar 7 06:25:17 2012 (r232638)
+++ head/sys/dev/uart/uart_bus_pci.c Wed Mar 7 06:42:21 2012 (r232639)
@@ -126,6 +126,8 @@ static struct pci_id pci_ns8250_ids[] =
"MosChip MCS9900 PCIe to Peripheral Controller", 0x10 },
{ 0x9710, 0x9901, 0xa000, 0x1000,
"MosChip MCS9901 PCIe to Peripheral Controller", 0x10 },
+{ 0x9710, 0x9904, 0xa000, 0x1000,
+ "MosChip MCS9904 PCIe to Peripheral Controller", 0x10 },
{ 0xdeaf, 0x9051, 0xffff, 0, "Middle Digital PC Weasel Serial Port", 0x10 },
{ 0xffff, 0, 0xffff, 0, NULL, 0, 0}
};

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

11 years agoMFC r244054:
kib [Wed, 12 Dec 2012 05:02:56 +0000 (05:02 +0000)]
MFC r244054:
Remove useless comment.

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

11 years agoMFC r244053:
kib [Wed, 12 Dec 2012 05:00:26 +0000 (05:00 +0000)]
MFC r244053:
Fix typo.

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

11 years agoMFC r244057, r244059:
gjb [Wed, 12 Dec 2012 01:05:19 +0000 (01:05 +0000)]
MFC r244057, r244059:

r244057:
 Get 'uname -r' earlier, so it can be used to determine what branch is
 being run to set BSDINSTALL_DISTSITE accordingly.  This change allows
 non-RELEASE branches to use the FTP snapshots directory for bootonly.iso
 installations.

r244059:
 Add missed BETA* to list.

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

11 years agoMFC r243904:
jimharris [Wed, 12 Dec 2012 00:39:04 +0000 (00:39 +0000)]
MFC r243904:

Don't call bus_dmamap_load in CAM_DIR_NONE case, since there is nothing
to map, and technically this isn't allowed.

Functionally, it works OK (at least on x86) to call bus_dmamap_load with
a NULL data pointer and zero length, so this is primarily for correctness
and consistency with other drivers.

While here, remove check in isci_io_request_construct for nseg==0.
Previously, bus_dmamap_load would pass nseg==1, even for case where
buffer is NULL and length = 0, which allowed CAM_DIR_NONE CCBs
to get processed.  This check is not correct though, and needed to be
removed both for the changes elsewhere in this patch, as well as jeff's
preliminary bus_dmamap_load_ccb patch (which uncovered all of this in
the first place).

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

11 years agoRevert r244108. yyparse() declaration isn't redundant in stable/9.
glebius [Tue, 11 Dec 2012 12:40:54 +0000 (12:40 +0000)]
Revert r244108. yyparse() declaration isn't redundant in stable/9.

Reported by: tinderbox :)

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

11 years agoMFC r242943: Do not unwind past a zero PC frame.
emaste [Tue, 11 Dec 2012 12:34:46 +0000 (12:34 +0000)]
MFC r242943: Do not unwind past a zero PC frame.

  This improves GDB usability when debugging code compiled with
  optimization.

  Upstream GDB revision f0031b6d3ae9b164b3747986ab898190bd4dcf8c (prior
  to GDB's switch to GPLv3), with frame_debug_got_null_frame expanded
  inline.

  | 2004-12-12  Andrew Cagney  <cagney@gnu.org>
  |
  | * frame.c (get_prev_frame): When unwinding normal frames, check
  | that the PC isn't zero.

Sponsored by: ADARA Networks

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

11 years agoMFC r242936: Set optimized_out instead of reporting an error.
emaste [Tue, 11 Dec 2012 12:32:11 +0000 (12:32 +0000)]
MFC r242936:   Set optimized_out instead of reporting an error.

  This provides a better display when debugging code compiled with
  optimization on.

  GDB git revision e8395b4efd184f745070afb953f451f99e922be7 (prior to
  GDB's switch to GPLv3), modified for the interfaces provided by
  GDB 6.1.1.

  2005-02-28  Daniel Jacobowitz  <d...@codesourcery.com>

   * dwarf2loc.c (loclist_read_variable): Set optimized_out
   instead of reporting an error.
   * valprint.c (value_check_printable): New function.
   (common_val_print): New function.  Use value_check_printable.
   (value_print): Use value_check_printable.
   * value.h (common_val_print): Add prototype.
   * c-valprint.c (c_val_print): Use common_val_print.
   * cp-valprint.c (cp_print_value_fields): Likewise.
   (cp_print_hpacc_virtual_table_entries): Likewise.
   * f-valprint.c (f_val_print): Likewise.
   * jv-valprint.c (java_value_print, java_print_value_fields):
   Likewise.
   * scm-valprint.c (scm_value_print): Likewise.
   * stack.c (print_frame_args): Likewise.
   * varobj.c (c_value_of_variable): Likewise.
   * p-valprint.c (pascal_val_print, pascal_value_print): Likewise.
   (pascal_object_print_value_fields): Likewise.  Update call to
   pascal_object_print_static_field.
   (pascal_object_print_static_field): Remove TYPE argument.  Use
   common_val_print.

Sponsored by:        ADARA Networks

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

11 years agoMFC r243868:
kib [Tue, 11 Dec 2012 05:11:28 +0000 (05:11 +0000)]
MFC r243868:
Do not allocate buffer of the 255 bytes length on the stack.

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

11 years agoMFC r235771:
kevlo [Tue, 11 Dec 2012 02:40:01 +0000 (02:40 +0000)]
MFC r235771:

Remove redundant declaration of yyparse.

Reported by: tinderbox

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

11 years agoMFC r235767:
kevlo [Tue, 11 Dec 2012 01:49:57 +0000 (01:49 +0000)]
MFC r235767:

Add missing header needed by free().

Reported by: tinderbox

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

11 years agoMFC: 238979
gnn [Mon, 10 Dec 2012 21:18:02 +0000 (21:18 +0000)]
MFC: 238979

When we return with an error we cannot unlock the mutex, because
it's been freed.  Protect against that, hopefully unlikely, case.

Reviewed by: rpaulo

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

11 years agoMFC: 238537,238552
gnn [Mon, 10 Dec 2012 19:33:39 +0000 (19:33 +0000)]
MFC: 238537,238552
Add support for walltimestamp in DTrace.

Submitted by: Fabian Keil
Includes correction by: avg

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

11 years agoMFC recent ZFS changes from illumos:
mm [Mon, 10 Dec 2012 14:36:48 +0000 (14:36 +0000)]
MFC recent ZFS changes from illumos:
243503, 243524, 243525, 243560, 243561

MFC r243503:
Illumos 13879:4eac7a87eff2
3329 spa_sync() spends 10-20% of its time in spa_free_sync_cb()
3330 space_seg_t should have its own kmem_cache
3331 deferred frees should happen after sync_pass 1
3335 make SYNC_PASS_* constants tunable

New loader-only tunables:
vfs.zfs.sync_pass_deferred_free
vfs.zfs.sync_pass_dont_compress
vfs.zfs.sync_pass_rewrite

References:
https://www.illumos.org/issues/3329
https://www.illumos.org/issues/3330
https://www.illumos.org/issues/3331
https://www.illumos.org/issues/3335

MFC r243524:
Import the zio nop-write improvement from Illumos. To reduce I/O,
nop-write omits overwriting data if the checksum (cryptographically
secure) of new data matches the checksum of existing data.
It also saves space if snapshots are in use.

It currently works only on datasets with enabled compression, disabled
deduplication and sha256 checksums.

IllumOS 13887:196932ec9e6a and 13888:7204b3392a58
3236 zio nop-write

References:
https://www.illumos.org/issues/3236

MFC r243525:
Add loader(8) tunable to enable/disable nopwrite functionality:
vfs.zfs.nopwrite_enabled

MFC r243560:
Introduce a new dataset aclmode setting "restricted" to protect ACL's
being destroyed or corrupted by a drive-by chmod.

illumos-gate 13889:a67716f16746
3254 add support in zfs for aclmode=restricted

MFC r243561:
Update manpage dates in zfs.8 and zpool.8

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

11 years agoMerge r242474:
glebius [Mon, 10 Dec 2012 12:47:33 +0000 (12:47 +0000)]
Merge r242474:
   Remove separate paragraph on ASCII messages and instead
  provide this information along with messages documentation,
  like this done in manual pages for other netgraph nodes.

  Submitted by:   Mamontov Roman <mr.xanto gmail.com>

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

11 years agoMFC rr243398-243399:
pluknet [Mon, 10 Dec 2012 11:26:18 +0000 (11:26 +0000)]
MFC rr243398-243399:
- core(5) references sysctl debug.num_cores, but it is really debug.ncores.
- [mdoc] remove hard sentence breaks.

PR: docs/173831

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

11 years agoMFC to r242840:
grog [Mon, 10 Dec 2012 03:11:19 +0000 (03:11 +0000)]
MFC to r242840:

  Add y flag and environment variable LS_SAMESORT to specify the same
  sorting order for time and name with the -t option.  IEEE Std 1003.2
  (POSIX.2) mandates that the -t option sort in descending order, and
  that if two files have the same timestamp, they should be sorted in
  ascending order of their names.  The -r flag reverses both of these
  sort orders, so they're never the same.  This creates significant
  problems for sequentially named files stored on FAT file systems,
  where it can be impossible to list them in the order in which they
  were created.

  Add , (comma) option to print file sizes grouped and separated by
  thousands using the non-monetary separator returned by localeconv(3),
  typically a comma or period.

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

11 years agoMFC r243238:
eadler [Mon, 10 Dec 2012 02:44:47 +0000 (02:44 +0000)]
MFC r243238:
Standardize EXIT STATUS instructions in man pages when possible.

Approved by: cperciva (implicit)

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

11 years agoMFC r243101:
eadler [Mon, 10 Dec 2012 02:40:08 +0000 (02:40 +0000)]
MFC r243101:
Using set -x produces output on stderr instead of stdout.
It also doesn't work with make -s.
Prefer the use of builtin make features.

PR: misc/126312
Approved by: cperciva (implicit)

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

11 years agoMFC r243077:
eadler [Mon, 10 Dec 2012 02:35:19 +0000 (02:35 +0000)]
MFC r243077:
Fix error code if file isn't readable.

Approved by: cperciva (implicit)

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

11 years agoMFC r243084:
eadler [Mon, 10 Dec 2012 02:33:17 +0000 (02:33 +0000)]
MFC r243084:
Add support for a -q flag.  While here make the custom argument parsing
use getopt instead of hacking on it more.  This change also fixes the
method of silencing the compiler warning about gfn being used
uninitialized.

Approved by: cperciva (implicit)

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

11 years agoMFC r243753:
eadler [Sun, 9 Dec 2012 04:15:51 +0000 (04:15 +0000)]
MFC r243753:
The getline function returns the number of characters read, not
written. Use clearer text for this.

PR: docs/174023
Approved by: cperciva (implicit)

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