]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
10 years agoFix Fx syntax.
sjg [Fri, 27 Sep 2013 17:42:23 +0000 (17:42 +0000)]
Fix Fx syntax.

PR: 182269
Approved by: re@

10 years agoMake sure the CCB xflags field is initialized to zero so that
nwhitehorn [Fri, 27 Sep 2013 16:02:40 +0000 (16:02 +0000)]
Make sure the CCB xflags field is initialized to zero so that
CAM_EXTLUN_VALID is not erroneously set. Also add an XPORT_SRP
identifier to the known SCSI transports for the SCSI RDMA protocol, as
used, for example with Infiniband storage.

Reviewed by: scottl
Approved by: re (marius)

10 years agoRemove duplicate entry for the host(1) man page.
des [Fri, 27 Sep 2013 15:22:08 +0000 (15:22 +0000)]
Remove duplicate entry for the host(1) man page.

Approved by: re (blanket)

10 years agosys/x86/xen/hvm.c:
gibbs [Fri, 27 Sep 2013 15:17:28 +0000 (15:17 +0000)]
sys/x86/xen/hvm.c:
Set cpu_ops correctly for Xen hypervisors lacking the
vector callback feature.

Set preliminary Xen cpu_ops settings during early HVM
initialization.  The old location raced with the startup
of APs.

Submitted by: Roger Pau MonnĂ©
Reviewed by: gibbs
Approved by: re (blanket Xen)

10 years agoReturn 0 for a rdmsr of MSR_IA32_PLATFORM_ID. This
grehan [Fri, 27 Sep 2013 14:55:59 +0000 (14:55 +0000)]
Return 0 for a rdmsr of MSR_IA32_PLATFORM_ID. This
is enough to get Ubuntu 12.0.4/13.0.4 to boot.

Approved by: re@ (blanket)

10 years agoRework handling of ofw_quiesce(), making it the responsibility of the
nwhitehorn [Fri, 27 Sep 2013 13:12:47 +0000 (13:12 +0000)]
Rework handling of ofw_quiesce(), making it the responsibility of the
platform modules. Whether to call this function or not is highly machine
dependent: on some systems, it is required, while on others it breaks
everything. Platform modules are in a better position to figure this
out. This is required for POWER hypervisor SCSI to work correctly. There
are no functional changes on Powermac systems.

Approved by: re (kib)

10 years agoMake sure that ref and changed bits propagate back to the VM layer
nwhitehorn [Fri, 27 Sep 2013 13:11:20 +0000 (13:11 +0000)]
Make sure that ref and changed bits propagate back to the VM layer
whenever pages are unmapped. The old code had several races that could
allow these to become stale.

Approved by: re (kib)

10 years ago- Remove the is (Iceland) mirror per mail from the admins.
brd [Fri, 27 Sep 2013 11:25:37 +0000 (11:25 +0000)]
- Remove the is (Iceland) mirror per mail from the admins.

Approved by: re
With hat: clusteradm@

10 years agoAllow Open Firmware syscons to attach to devices without an "address"
nwhitehorn [Thu, 26 Sep 2013 22:47:02 +0000 (22:47 +0000)]
Allow Open Firmware syscons to attach to devices without an "address"
property such as those found on some real and emulated IBM systems. The
approach, which is taken from Linux, is to scan through the PCI bars
until we find one large enough to contain the linear framebuffer and
which is ideally prefetchable if no "address" property can be found.
This makes the graphical console work with the pSeries target in QEMU.

Approved by: re (delphij)

10 years agoAs idling the CPU no longer causes hangs on QEMU, reenable the pSeries
nwhitehorn [Thu, 26 Sep 2013 21:18:46 +0000 (21:18 +0000)]
As idling the CPU no longer causes hangs on QEMU, reenable the pSeries
cpu_idle() routine.

Approved by: re (delphij)

10 years agoFix bug where UART unit number was not set properly, which prevented
nwhitehorn [Thu, 26 Sep 2013 18:01:32 +0000 (18:01 +0000)]
Fix bug where UART unit number was not set properly, which prevented
operation on systems with multiple serial ports. Also turn on
interrupts for the UART device, which were disabled due to a
now-fixed bug in QEMU.

Approved by: re (gjb)

10 years agoImprove bsdpatch usability:
delphij [Thu, 26 Sep 2013 18:00:45 +0000 (18:00 +0000)]
Improve bsdpatch usability:

 - Ask only once for "Apply anyway". [1]
 - Tell user what file have failed patch rather than just how
   many hunks failed.

Reported by: jmg via pfg [1]
Tested by: pfg [1]
Approved by: re (gjb)

10 years agoTemporarily disable iconv for non-shared library builds. The dynamic
delphij [Thu, 26 Sep 2013 17:55:36 +0000 (17:55 +0000)]
Temporarily disable iconv for non-shared library builds.  The dynamic
loading of conversation table is not yet compatible with static builds.

Approved by: re (gjb)

10 years agoit must be the last member, not might...
jmg [Thu, 26 Sep 2013 17:55:04 +0000 (17:55 +0000)]
it must be the last member, not might...

Reviewed by: attilio
Approved by: re (delphij, gjb)

10 years agoImport NetBSD readline.c,v 1.104: do not crash with add_history(NULL).
delphij [Thu, 26 Sep 2013 17:54:58 +0000 (17:54 +0000)]
Import NetBSD readline.c,v 1.104: do not crash with add_history(NULL).

MFC after: 3 days
Approved by: re (gjb)

10 years agoFix incorrect assertion on the minimum side. ZFS would
grehan [Thu, 26 Sep 2013 16:25:06 +0000 (16:25 +0000)]
Fix incorrect assertion on the minimum side. ZFS would
trigger this.

Reported by: Chris Torek, Allan Jude
Approved by: re@ (blanket)

10 years agoEliminate the declaration for a method that is no longer used. (This
alc [Thu, 26 Sep 2013 15:36:20 +0000 (15:36 +0000)]
Eliminate the declaration for a method that is no longer used.  (This
change should have been a part of r255724.)

Reminded by: nathan
Approved by: re (gjb)

10 years agoDo not allow negative timeouts for kqueue timers, check for the
kib [Thu, 26 Sep 2013 13:17:31 +0000 (13:17 +0000)]
Do not allow negative timeouts for kqueue timers, check for the
negative timeout both before and after the conversion to sbintime_t.

For periodic kqueue timer, convert zero timeout into 1ms, to avoid
interrupt storm on fast event timers.

Reported and tested by: pho
Discussed with: mav
Reviewed by: davide
Sponsored by: The FreeBSD Foundation
Approved by: re (marius)

10 years agoAcquire a hold reference on the vnode when a knote is instantiated.
kib [Thu, 26 Sep 2013 13:14:51 +0000 (13:14 +0000)]
Acquire a hold reference on the vnode when a knote is instantiated.
Otherwise, knote keeps a pointer to a vnode which could become invalid
any time.

Reported by: many
Tested by: Patrick Lamaiziere <patfbsd@davenulle.org>
Discussed with: jmg
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Approved by: re (marius)

10 years agoNow that the portsnap buildbox is generating the raw bits for INDEX-10,
cperciva [Thu, 26 Sep 2013 10:33:15 +0000 (10:33 +0000)]
Now that the portsnap buildbox is generating the raw bits for INDEX-10,
add it to the set of INDEX files built by portsnap.

Approved by: re (marius), portmgr (erwin)
MFC after: 3 days

10 years agoMake the callout arithmetic more robust adding checks for overflow.
davide [Thu, 26 Sep 2013 10:06:50 +0000 (10:06 +0000)]
Make the callout arithmetic more robust adding checks for overflow.
Without these, if the timeout value passed is "large enough", the
value of the sum of it and other factors (e.g. current time as
returned by sbinuptime() or 'precision' argument) might result in a
negative number. This negative number is then passed to
eventtimers(4), which causes et_start() routine to load et_min_period
into eventtimer, making the CPU where the thread is stuck forever in
timer interrupt handler routine. This is now avoided rounding to
INT64_MAX the timeout period in case of overflow.

Reported by: kib, pho
Discussed with: kib, mav
Tested by: pho (stress2 suite, kevent7.sh scenario)
Approved by: re (kib)

10 years agoAdd an elf note on ARM to store the MACHINE_ARCH an executable was built
andrew [Thu, 26 Sep 2013 07:53:18 +0000 (07:53 +0000)]
Add an elf note on ARM to store the MACHINE_ARCH an executable was built
for. This is useful for software needing to know which architecture a
binary is built for as arm and armv6 have slight differences meaning only
some binaries build for one will work as expected on the other. It is
expected pkgng will be able to make use of this to simplify the logic to
determine which package ABI to use.

Approved by: re (kib)

10 years agoCorrect a NULL pointer deference in nslookup and nsupdate that would
delphij [Wed, 25 Sep 2013 20:37:16 +0000 (20:37 +0000)]
Correct a NULL pointer deference in nslookup and nsupdate that would
cause the utility to crash in interactive mode when the user gives
an EOF on standard input.

MFC after: 3 days
Approved by: re (gjb)

10 years agoAdditional BIND files.
des [Wed, 25 Sep 2013 20:06:01 +0000 (20:06 +0000)]
Additional BIND files.

Submitted by: bdrewery
Approved by: re (blanket)

10 years agoRe-do r255853. Along with adding back the API/ABI changes from the
scottl [Wed, 25 Sep 2013 17:16:21 +0000 (17:16 +0000)]
Re-do r255853.  Along with adding back the API/ABI changes from the
original, this hides the contents of cam_compat.h from ktrace/kdump/truss,
avoiding problems there.  There are no user-servicable parts in there, so
no need for those tools to be groping around in there.

Approved by:    re

10 years agoRe-do r255853. Along with adding back the API/ABI changes from the
scottl [Wed, 25 Sep 2013 15:55:56 +0000 (15:55 +0000)]
Re-do r255853.  Along with adding back the API/ABI changes from the
original, this hides the contents of cam_compat.h from ktrace/kdump/truss,
avoiding problems there.  There are no user-servicable parts in there, so
no need for those tools to be groping around in there.

Approved by: re

10 years agoAdd PCI device ID for MegaRAID Invader cards. This was the only
ambrisko [Wed, 25 Sep 2013 15:48:32 +0000 (15:48 +0000)]
Add PCI device ID for MegaRAID Invader cards.  This was the only
change needed to make it work on my card.

Approved by: re (glebius)

10 years agoAvoid memory accesses reordering which can result in fget_unlocked()
attilio [Wed, 25 Sep 2013 13:37:52 +0000 (13:37 +0000)]
Avoid memory accesses reordering which can result in fget_unlocked()
seeing a stale fd_ofiles table once fd_nfiles is already updated,
resulting in OOB accesses.

Approved by: re (kib)
Sponsored by: EMC / Isilon storage division
Reported and tested by: pho
Reviewed by: benno

10 years agoNULL stale pointers (should be a no-op as they should no longer be
jmg [Wed, 25 Sep 2013 02:49:18 +0000 (02:49 +0000)]
NULL stale pointers (should be a no-op as they should no longer be
used)...

Reviewed by: dteske
Approved by: re (kib)
Sponsored by: Vicor
MFC after: 3 days

10 years agofix a bug where we access a bread buffer after we have brelse'd it...
jmg [Wed, 25 Sep 2013 02:48:12 +0000 (02:48 +0000)]
fix a bug where we access a bread buffer after we have brelse'd it...
The kernel normally didn't unmap/context switch away before we accessed
the buffer most of the time, but under heavy I/O pressure and lots of
mount/unmounting this would cause a fault on nofault panic...

Reviewed by: dteske
Approved by: re (kib)
Sponsored by: Vicor
MFC after: 3 days

10 years agoRevert r255853 pending fixes to build errors in usr.bin/kdump
gjb [Wed, 25 Sep 2013 01:48:45 +0000 (01:48 +0000)]
Revert r255853 pending fixes to build errors in usr.bin/kdump

Approved by: re (implicit)

10 years agoMinor mdoc fixes.
joel [Tue, 24 Sep 2013 20:14:59 +0000 (20:14 +0000)]
Minor mdoc fixes.

Approved by: re (blanket)

10 years agoIntroduce a kern.geom.notaste sysctl that can be used to temporarily
des [Tue, 24 Sep 2013 20:05:16 +0000 (20:05 +0000)]
Introduce a kern.geom.notaste sysctl that can be used to temporarily
disable GEOM tasting to avoid the "bouncing GEOM" problem where, when
you shut down the consumer of a provider which can be viewed in multiple
ways (typically a mirror whose members are labeled partitions), GEOM
will immediately taste that provider's alter ego and reattach the
consumer.

Approved by: re (glebius)

10 years agoDon't parse NO_ROOT metadata for extra kernels if NO_ROOT isn't defined.
jhb [Tue, 24 Sep 2013 19:09:21 +0000 (19:09 +0000)]
Don't parse NO_ROOT metadata for extra kernels if NO_ROOT isn't defined.

Approved by: re (gjb)
MFC after: 1 week

10 years agoAs it turns out, when MOD_LOAD handler returns error, kernel calls MOD_UNLOAD
trasz [Tue, 24 Sep 2013 18:24:01 +0000 (18:24 +0000)]
As it turns out, when MOD_LOAD handler returns error, kernel calls MOD_UNLOAD
handler.  Make the new iSCSI initiator not panic when this happens.

Approved by: re (glebius)
Sponsored by: FreeBSD Foundation

10 years agoImprove error handling in the old initiator, preventing panic on attempt
trasz [Tue, 24 Sep 2013 17:01:29 +0000 (17:01 +0000)]
Improve error handling in the old initiator, preventing panic on attempt
to load iscsi_initiator.ko when iscsi.ko is already loaded.

Approved by: re (glebius)
Sponsored by: FreeBSD Foundation

10 years agoUpdate head/ to -ALPHA3.
gjb [Tue, 24 Sep 2013 16:59:28 +0000 (16:59 +0000)]
Update head/ to -ALPHA3.
This commit marks the point the final KBI change was made as part of the
10.0-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

10 years agoUpdate the CAM API for FreeBSD 10:
scottl [Tue, 24 Sep 2013 16:50:53 +0000 (16:50 +0000)]
Update the CAM API for FreeBSD 10:

- Remove the timeout_ch field.  It's been deprecated since FreeBSD 7.0;
  MPSAFE drivers should be managing their own timeout storage.  The
  remaining non-MPSAFE drivers have been modified to also manage their own
  storage, and should be considered for updating to MPSAFE (or removal)
  during the FreeBSD 10.x lifecycle.

- Add fields related to soft timeouts and quality of service, to be used
  in upcoming work.

- Add room for more flags in the CCB header and path_inq structures.

- Begin support for extended 64-bit LUNs.

- Bump the CAM version number to 0x18, but add compat shims.  Tested with
  camcontrol and smartctl.

Reviewed by:    nathanw, ken, kib
Approved by:    re
Obtained from:  Netflix

10 years agoUpdate dialog to 1.2-20130923.
dteske [Tue, 24 Sep 2013 14:52:43 +0000 (14:52 +0000)]
Update dialog to 1.2-20130923.

Approved by: re (marius)

10 years agoRegenerate.
des [Tue, 24 Sep 2013 14:46:10 +0000 (14:46 +0000)]
Regenerate.

Approved by: re (blanket)

10 years agoFlip the switch: disable BIND and enable LDNS_UTILS.
des [Tue, 24 Sep 2013 14:33:31 +0000 (14:33 +0000)]
Flip the switch: disable BIND and enable LDNS_UTILS.

Approved by: re (blanket)

10 years agoIn pmap_clear_modify(), initialize pvh even for fictitious managed
kib [Tue, 24 Sep 2013 13:52:47 +0000 (13:52 +0000)]
In pmap_clear_modify(), initialize pvh even for fictitious managed
page, otherwise the small mappings loop would use uninitialized value.
Note that currently pmap_clear_modify() is not called for fictitious
pages.

Sponsored by: The FreeBSD Foundation
Approved by: re (glebius)

10 years agoProperly ignore PDUs with CmdSN outside of allowed range.
trasz [Tue, 24 Sep 2013 13:46:13 +0000 (13:46 +0000)]
Properly ignore PDUs with CmdSN outside of allowed range.

Approved by: re (glebius)
Sponsored by: FreeBSD Foundation

10 years agoUse the pv lists generation count to read-lock the pvh_global_lock in
kib [Tue, 24 Sep 2013 12:26:43 +0000 (12:26 +0000)]
Use the pv lists generation count to read-lock the pvh_global_lock in
pmap_clear_modify().

Noted and reviewed by: alc
Tested by: pho
Sponsored by: The FreeBSD Foundation
Approved by: re (marius)

10 years agoEnsure that the ERESTART return from the syscall reloads the
kib [Tue, 24 Sep 2013 12:24:48 +0000 (12:24 +0000)]
Ensure that the ERESTART return from the syscall reloads the
registers, to make the restarted syscall instruction pass the correct
arguments.

PR: kern/182161
Reported by: Russ Cox <rsc@swtch.com>
Sponsored by: The FreeBSD Foundation
MFC after: 3 days
Approved by: re (marius)

10 years agoForgotten in r255825: NETWORKING requires local_unbound.
des [Tue, 24 Sep 2013 11:49:04 +0000 (11:49 +0000)]
Forgotten in r255825: NETWORKING requires local_unbound.

Approved by: re (blanket)

10 years agoReplace the unused /etc/unbound directory with a symlink to /var/unbound.
des [Tue, 24 Sep 2013 10:04:51 +0000 (10:04 +0000)]
Replace the unused /etc/unbound directory with a symlink to /var/unbound.

Approved by: re (blanket)

10 years agoRegenerate
des [Tue, 24 Sep 2013 09:56:58 +0000 (09:56 +0000)]
Regenerate

Approved by: re (blanket)

10 years agoRegenerate the configure script before running it.
des [Tue, 24 Sep 2013 09:56:10 +0000 (09:56 +0000)]
Regenerate the configure script before running it.
Set the default config file to /var/unbound/unbound.conf.

Approved by: re (blanket)

10 years agoDon't include the build date or command-line arguments in the binary.
des [Tue, 24 Sep 2013 09:54:07 +0000 (09:54 +0000)]
Don't include the build date or command-line arguments in the binary.

Approved by: re (blanket)

10 years agoFix a few instances of M_WAITOK in threads marked as prohibited from sleep,
trasz [Tue, 24 Sep 2013 09:33:31 +0000 (09:33 +0000)]
Fix a few instances of M_WAITOK in threads marked as prohibited from sleep,
missed in r255824.

Approved by: re (kib)
Sponsored by: FreeBSD Foundation

10 years agoMake load average sampling asynchronous to hardclock ticks. This improves
mav [Tue, 24 Sep 2013 07:03:16 +0000 (07:03 +0000)]
Make load average sampling asynchronous to hardclock ticks. This improves
measurement of load caused by time-related events still using hardclock.
For example, without this change dummynet, scheduling events each hardclock
tick, was always miscounted as load of 1.

There is still aliasing with events delayed by the new precision mechanism,
but it probably can't be avoided without moving this sampling from using
callout to some lower-level code or handling it in some other special way.

Reviewed by: davide
Approved by: re (marius)

10 years ago- Add myself as port commiter and my mentors relationship.
danilo [Tue, 24 Sep 2013 04:00:49 +0000 (04:00 +0000)]
- Add myself as port commiter and my mentors relationship.
- Add myself to calendar.freebsd.

Approved by: re (gjb), wg (mentor)

10 years agoUnbreak the WITHOUT_KERBEROS build and try to reduce the odds of a
des [Mon, 23 Sep 2013 20:35:54 +0000 (20:35 +0000)]
Unbreak the WITHOUT_KERBEROS build and try to reduce the odds of a
repeat performance by introducing a script that runs configure with and
without Kerberos, diffs the result and generates krb5_config.h, which
contains the preprocessor macros that need to be defined in the Kerberos
case and undefined otherwise.

Approved by: re (marius)

10 years agoCorrecting EXAMPLES section.
hiren [Mon, 23 Sep 2013 20:30:25 +0000 (20:30 +0000)]
Correcting EXAMPLES section.

Approved by: re (gjb)

10 years agoFree both KVA and backing pages when freeing TSS memory.
kib [Mon, 23 Sep 2013 20:14:15 +0000 (20:14 +0000)]
Free both KVA and backing pages when freeing TSS memory.

Reported and tested by: pho
Sponsored by: The FreeBSD Foundation
Approved by: re (marius)

10 years agoPrevent resolvconf from updating /etc/resolv.conf. As Jakob Schlyter
des [Mon, 23 Sep 2013 20:06:59 +0000 (20:06 +0000)]
Prevent resolvconf from updating /etc/resolv.conf.  As Jakob Schlyter
pointed out, having additional nameservers listed in /etc/resolv.conf
can break DNSSEC verification by providing a false positive if unbound
returns SERVFAIL due to an invalid signature.  The downside is that
the domain / search path won't get updated either, but we can live
with that.

Approved by: re (blanket)

10 years agoMove local_unbound up in the rc order.
des [Mon, 23 Sep 2013 20:03:23 +0000 (20:03 +0000)]
Move local_unbound up in the rc order.

Approved by: re (blanket)

10 years agoDon't use M_WAITOK when running from context where sleeping is prohibited,
trasz [Mon, 23 Sep 2013 19:54:44 +0000 (19:54 +0000)]
Don't use M_WAITOK when running from context where sleeping is prohibited,
such as callout or a geom thread.

Approved by: re (marius)
Sponsored by: FreeBSD Foundation

10 years agoFix coredump on 'arp -d'.
glebius [Mon, 23 Sep 2013 18:12:25 +0000 (18:12 +0000)]
Fix coredump on 'arp -d'.

Submitted by: az
Approved by: re (kib)

10 years agoEnsure that resolvconf(8) preserves the edns0 setting.
des [Mon, 23 Sep 2013 17:35:23 +0000 (17:35 +0000)]
Ensure that resolvconf(8) preserves the edns0 setting.

Approved by: re (blanket)

10 years agoFix a bug in HTTP checking/fetching.
dteske [Mon, 23 Sep 2013 16:47:52 +0000 (16:47 +0000)]
Fix a bug in HTTP checking/fetching.
Fix a bug in HTTP checking/fetching. Add Main Site to HTTP menu. Add new
example script browse_packages_http.sh and move existing example script
browse_packages.sh -> browse_packages_ftp.sh

Reviewed by: gjb, brd
Approved by: re (gjb), clusteradm (brd)
MFC after: 3 days

10 years agoAdd installer support for CHRP/PAPR PowerPC systems that use MBR+BSD
nwhitehorn [Mon, 23 Sep 2013 14:18:34 +0000 (14:18 +0000)]
Add installer support for CHRP/PAPR PowerPC systems that use MBR+BSD
formatting, like x86, but with an additional MBR slice containing a raw
boot partition.

Approved by: re (gjb)

10 years agoFix DELAY() on RPi, the wrong math was making it take twice it should.
loos [Mon, 23 Sep 2013 14:00:18 +0000 (14:00 +0000)]
Fix DELAY() on RPi, the wrong math was making it take twice it should.

Reported by: Alexander <sht@ropnet.ru>
Approved by: adrian (mentor)
Approved by: re (gjb)

10 years agoImport a new libcxxrt. This fixes some potential crashing in the demangler.
theraven [Mon, 23 Sep 2013 13:16:21 +0000 (13:16 +0000)]
Import a new libcxxrt.  This fixes some potential crashing in the demangler.

Approved by: re (gjb)
MFC after: 1 week

10 years agoPrevent "lock (iscsi) sx does not match earlier (sleep mutex) lock" panic
trasz [Mon, 23 Sep 2013 10:36:03 +0000 (10:36 +0000)]
Prevent "lock (iscsi) sx does not match earlier (sleep mutex) lock" panic
triggered by "kldload iscsi_initiator; kldunload iscsi_initiator; kldload
iscsi".

Approved by: re (marius)

10 years agoAdd a setup script for unbound(8) called local-unbound-setup. It
des [Mon, 23 Sep 2013 04:36:51 +0000 (04:36 +0000)]
Add a setup script for unbound(8) called local-unbound-setup.  It
generates a configuration suitable for running unbound as a caching
forwarding resolver, and configures resolvconf(8) to update unbound's
list of forwarders in addition to /etc/resolv.conf.  The initial list
is taken from the existing resolv.conf, which is rewritten to point to
localhost.  Alternatively, a list of forwarders can be provided on the
command line.

To assist this script, add an rc.subr command called "enabled" which
does nothing except return 0 if the service is enabled and 1 if it is
not, without going through the usual checks.  We should consider doing
the same for "status", which is currently pointless.

Add an rc script for unbound, called local_unbound.  If there is no
configuration file, the rc script runs local-unbound-setup to generate
one.

Note that these scripts place the unbound configuration files in
/var/unbound rather than /etc/unbound.  This is necessary so that
unbound can reload its configuration while chrooted.  We should
probably provide symlinks in /etc.

Approved by: re (blanket)

10 years agoLaunch the bourne shell using "sh" rather than "${SHELL}", as the latter
ian [Mon, 23 Sep 2013 00:04:36 +0000 (00:04 +0000)]
Launch the bourne shell using "sh" rather than "${SHELL}", as the latter
may come in from the environment and reflect the user's interactive shell.
Using bare "sh" is the dominant pattern in existing makefiles.

MFC this together with r255775.

Approved by: re ()
MFC after: 2 weeks

10 years agoExport two new DCMD enums. These allow set/get of the mfi_ctrl_properties
sbruno [Sun, 22 Sep 2013 23:48:41 +0000 (23:48 +0000)]
Export two new DCMD enums.  These allow set/get of the mfi_ctrl_properties
structure in the driver.

Having these in 10.0 means that mfiutil can be modified to take adavantage
of new updates without a kernel recompile.

Approved by: re (gjb)
MFC after: 2 weeks

10 years agoAlways request zeroed memory, in case we're dumb enough to leak it later.
des [Sun, 22 Sep 2013 23:47:56 +0000 (23:47 +0000)]
Always request zeroed memory, in case we're dumb enough to leak it later.

Approved by: re (gjb)

10 years agoPull in r191165 from upstream llvm trunk:
dim [Sun, 22 Sep 2013 22:03:30 +0000 (22:03 +0000)]
Pull in r191165 from upstream llvm trunk:

  ISelDAG: spot chain cycles involving MachineNodes

  Previously, the DAGISel function WalkChainUsers was spotting that it
  had entered already-selected territory by whether a node was a
  MachineNode (amongst other things). Since it's fairly common practice
  to insert MachineNodes during ISelLowering, this was not the correct
  check.

  Looking around, it seems that other nodes get their NodeId set to -1
  upon selection, so this makes sure the same thing happens to all
  MachineNodes and uses that characteristic to determine whether we
  should stop looking for a loop during selection.

  This should fix PR15840.

Specifically, this fixes the long-standing assertion failure when
compiling the multimedia/gstreamer port on i386.  Thanks to Tijl
Coosemans for his help in getting upstream to fix it.

Approved by: re (marius)

10 years agoRemove drill(1) if MK_LDNS_UTILS is false.
des [Sun, 22 Sep 2013 20:32:28 +0000 (20:32 +0000)]
Remove drill(1) if MK_LDNS_UTILS is false.
Remove host(1) if both MK_BIND and MK_LDNS_UTILS are false.

Approved by: re (blanket)

10 years agoBuild and install drill(1).
des [Sun, 22 Sep 2013 20:30:55 +0000 (20:30 +0000)]
Build and install drill(1).

Approved by: re (blanket)

10 years agoRevert r255797. The LK_UPGRADE | LK_NOWAIT drops the lock.
kib [Sun, 22 Sep 2013 20:29:03 +0000 (20:29 +0000)]
Revert r255797.  The LK_UPGRADE | LK_NOWAIT drops the lock.

Approved by: re (marius, implicit)

10 years agoPre-acquire the filedesc sx when a possibility exists that the later
kib [Sun, 22 Sep 2013 19:54:47 +0000 (19:54 +0000)]
Pre-acquire the filedesc sx when a possibility exists that the later
code could need to remove a kqueue from the filedesc list.  Global
lock is already locked, which causes sleepable after non-sleepable
lock acquisition.

Reported and tested by: pho
Reviewed by: jmg
Sponsored by: The FreeBSD Foundation
MFC after: 2 weeks
Approved by: re (gjb)

10 years agoIncrease the chance of the buffer write from the bufdaemon helper
kib [Sun, 22 Sep 2013 19:23:48 +0000 (19:23 +0000)]
Increase the chance of the buffer write from the bufdaemon helper
context to succeed.  If the locked vnode which owns the buffer to be
written is shared locked, try the non-blocking upgrade of the lock to
exclusive.

PR: kern/178997
Reported and tested by: Klaus Weber <fbsd-bugs-2013-1@unix-admin.de>
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Approved by: re (marius)

10 years agoLaunch the shell, passing it the path to the mk-osreldate script, rather
ian [Sun, 22 Sep 2013 19:15:24 +0000 (19:15 +0000)]
Launch the shell, passing it the path to the mk-osreldate script, rather
than launching the script directly and relying on #! to launch the shell.
This avoids problems when the source is mounted with the noexec flag.

MFC this together with r255775.

Approved by: re (kib)
MFC after: 2 weeks

10 years agoDue to a missing command-line argument, yacc regenerated the parser but
des [Sun, 22 Sep 2013 19:09:43 +0000 (19:09 +0000)]
Due to a missing command-line argument, yacc regenerated the parser but
not its header file, resulting in a mismatch between the lexer and parser
and strange errors when reading the configuration file.

Approved by: re (blanket)

10 years agoFix indentation.
des [Sun, 22 Sep 2013 18:31:49 +0000 (18:31 +0000)]
Fix indentation.

Approved by: re (blanket)

10 years agoBoth the vm_map and vmspace zones are defined as "no free". So, there is no
alc [Sun, 22 Sep 2013 17:48:10 +0000 (17:48 +0000)]
Both the vm_map and vmspace zones are defined as "no free".  So, there is no
point in defining a fini function for these zones.

Reviewed by: kib
Approved by: re (glebius)
Sponsored by: EMC / Isilon Storage Division

10 years agoUpdate comment from draft to RFC number.
bz [Sun, 22 Sep 2013 14:53:07 +0000 (14:53 +0000)]
Update comment from draft to RFC number.

Submitted by: Loganaden Velvindron (logan elandsys.com)
Approved by: re (gjb)
MFC after: 6 days

10 years agoConsistently use the same value to indicate exclusively-held and
davide [Sun, 22 Sep 2013 14:09:07 +0000 (14:09 +0000)]
Consistently use the same value to indicate exclusively-held and
shared-held locks for all the primitives in lc_lock/lc_unlock routines.
This fixes the problems introduced in r255747, which indeed introduced an
inversion in the logic.

Reported by: many
Tested by: bdrewery, pho, lme, Adam McDougall, O. Hartmann
Approved by: re (glebius)

10 years ago- Create kern.ipc.sendfile namespace, and put the new "readhead" OID
glebius [Sun, 22 Sep 2013 13:36:52 +0000 (13:36 +0000)]
- Create kern.ipc.sendfile namespace, and put the new "readhead" OID
  there as "kern.ipc.sendfile.readahead".
- Push all nsfbuf related tunables into MD code. Don't move them
  to new namespace in favor of POLA.

Reviewed by: scottl
Approved by: re (gjb)

10 years agoRemove the armv6eb architecture as it is unused, and almost certainly
andrew [Sun, 22 Sep 2013 07:30:17 +0000 (07:30 +0000)]
Remove the armv6eb architecture as it is unused, and almost certainly
broken. None of our kernels can boot armv6eb. The little-endian kernels do
not have the required code to be able to switch endian when running a
big-endian executable.

Approved by: re (gjb)

10 years agoFix ia64 and mips kernel builds due to XENHVM=>GENERIC integration in
gibbs [Sun, 22 Sep 2013 02:46:13 +0000 (02:46 +0000)]
Fix ia64 and mips kernel builds due to XENHVM=>GENERIC integration in
revision 255744.

sys/kern/subr_smp.c:
IPI_SUSPEND is only available on amd64 and i386.  Protect
new uses of this constant with #ifdefs to avoid impacting
other platforms.

Approved by: re (blanket Xen)

10 years agoFix compilation of the i386 PAE kernel config.
gibbs [Sun, 22 Sep 2013 00:54:22 +0000 (00:54 +0000)]
Fix compilation of the i386 PAE kernel config.

sys/i386/include/xen/xenvar.h:
Provide vtomach() when PAE is defined.

Approved by: re (blanket Xen)

10 years agoRemove autoprops.
des [Sat, 21 Sep 2013 23:30:32 +0000 (23:30 +0000)]
Remove autoprops.

Approved by: re (blanket)

10 years agoSet props and correct RCS ID tag.
des [Sat, 21 Sep 2013 23:29:02 +0000 (23:29 +0000)]
Set props and correct RCS ID tag.

Approved by: re (blanket)

10 years agoRegenerate syscall argument strings after r255777.
markj [Sat, 21 Sep 2013 23:06:36 +0000 (23:06 +0000)]
Regenerate syscall argument strings after r255777.

Approved by: re (gjb)
MFC after: 1 week

10 years agoOmit "__restrict" when generating syscall argument strings. DTrace doesn't
markj [Sat, 21 Sep 2013 23:05:44 +0000 (23:05 +0000)]
Omit "__restrict" when generating syscall argument strings. DTrace doesn't
handle it and cannot determine the argument type when it's present.

Approved by: re (gjb)
MFC after: 1 week

10 years agoGive argtype struct names a different prefix than probe struct names.
markj [Sat, 21 Sep 2013 22:43:50 +0000 (22:43 +0000)]
Give argtype struct names a different prefix than probe struct names.
Otherwise it's possible to declare SDT probes in such a way that a name
collision occurs, causing an unexpected compilation error.

Approved by: re (gjb)
MFC after: 1 week

10 years agoCreate a separate script to generate osreldate.h rather than sourcing
ian [Sat, 21 Sep 2013 22:36:07 +0000 (22:36 +0000)]
Create a separate script to generate osreldate.h rather than sourcing
newvers.sh into a temporary subshell with inline make rules.

Using a separate script fixes a variety of problems, including establishing
the correct dependencies in the makefiles.  It also eliminates a problem
with the way newvers.sh uses `realpath $0`, because $0 expands differently
within a script sourced into a rule in a makefile depending on the version
of make and of /bin/sh being used.  The latter can cause build breakage in a
cross-build environment, and can also make it difficult to compile 10.0 on
older pre-10.0 systems.

PR: 160646 174422
Submitted by: Garrett Cooper <yaneurabeya@gmail.com>
Approved by: re (gjb)
MFC after: 2 weeks

10 years agoPull in all the OpenSSH bits that we'd previously left out because we
des [Sat, 21 Sep 2013 22:24:10 +0000 (22:24 +0000)]
Pull in all the OpenSSH bits that we'd previously left out because we
didn't use them.  This will make future merges from the vendor tree much
easier.

Approved by: re (gjb)

10 years agoStability fixes for Intel LynxPoint XHCI controllers. Disable XHCI port
hselasky [Sat, 21 Sep 2013 21:40:57 +0000 (21:40 +0000)]
Stability fixes for Intel LynxPoint XHCI controllers. Disable XHCI port
routing if we get certain errors. Poll for command completion upon
command timeouts. The XHCI error events might not generate interrupts.

MFC after: 1 week
Reported by: Daniel Gerzo <danger@rulez.sk>, Antonis Anastasiadis <anastasiadis@datalive.gr>
PR: usb/181159
Approved by: re (gjb)

10 years agoUpgrade to 6.3p1.
des [Sat, 21 Sep 2013 21:36:09 +0000 (21:36 +0000)]
Upgrade to 6.3p1.

Approved by: re (gjb)

10 years agoDitch the random seeding code, which never really worked as intended.
des [Sat, 21 Sep 2013 21:34:22 +0000 (21:34 +0000)]
Ditch the random seeding code, which never really worked as intended.
Add config variables to enable / disable individual host key algorithms.
Clean up the host key generation code.

Approved by: re (gjb)
MFC after: 3 weeks

10 years agoMake the directory mapping functionality, which was previously only
des [Sat, 21 Sep 2013 21:03:52 +0000 (21:03 +0000)]
Make the directory mapping functionality, which was previously only
available in 32-bit compatibility mode, unconditional.

Overhaul the man page, which had evolved more by accretion than by design.

Approved by: re (gjb)
MFC after: 3 weeks

10 years agoFix the AR933x CPU UART support by using the correct clock when calculating
adrian [Sat, 21 Sep 2013 19:42:37 +0000 (19:42 +0000)]
Fix the AR933x CPU UART support by using the correct clock when calculating
the UART frequency.

Tested:

* AR933x (carambola 2 board), UART now works again

Approved by: re

10 years agoRemove redundant files.
cy [Sat, 21 Sep 2013 14:23:20 +0000 (14:23 +0000)]
Remove redundant files.

Approved by:    glebius (mentor)
Approved by:    re (blanket)

10 years agoCheck return code from inet_pton.
cy [Sat, 21 Sep 2013 14:22:07 +0000 (14:22 +0000)]
Check return code from inet_pton.

Discovered by: Coverity.
Approved by: glebius (mentor)
Approved by: re (blanket)