Always request zeroed memory, in case we're dumb enough to leak it later.

Approved by:	re (gjb)


git-svn-id: svn+ssh://svn.freebsd.org/base/head@255805 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
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


git-svn-id: svn+ssh://svn.freebsd.org/base/head@255806 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
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


git-svn-id: svn+ssh://svn.freebsd.org/base/head@255807 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
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)


git-svn-id: svn+ssh://svn.freebsd.org/base/head@255809 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
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)


git-svn-id: svn+ssh://svn.freebsd.org/base/head@255812 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Import a new libcxxrt.  This fixes some potential crashing in the demangler.

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


git-svn-id: svn+ssh://svn.freebsd.org/base/head@255815 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
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)


git-svn-id: svn+ssh://svn.freebsd.org/base/head@255816 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
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)


git-svn-id: svn+ssh://svn.freebsd.org/base/head@255817 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
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


git-svn-id: svn+ssh://svn.freebsd.org/base/head@255818 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Ensure that resolvconf(8) preserves the edns0 setting.

Approved by:	re (blanket)


git-svn-id: svn+ssh://svn.freebsd.org/base/head@255819 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix coredump on 'arp -d'.

Submitted by:	az
Approved by:	re (kib)


git-svn-id: svn+ssh://svn.freebsd.org/base/head@255821 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
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


git-svn-id: svn+ssh://svn.freebsd.org/base/head@255824 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Move local_unbound up in the rc order.

Approved by:	re (blanket)


git-svn-id: svn+ssh://svn.freebsd.org/base/head@255825 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
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)


git-svn-id: svn+ssh://svn.freebsd.org/base/head@255826 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Free both KVA and backing pages when freeing TSS memory.

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


git-svn-id: svn+ssh://svn.freebsd.org/base/head@255827 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Correcting EXAMPLES section.

Approved by:	re (gjb)


git-svn-id: svn+ssh://svn.freebsd.org/base/head@255828 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
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)


git-svn-id: svn+ssh://svn.freebsd.org/base/head@255829 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
- Add myself as port commiter and my mentors relationship.
- Add myself to calendar.freebsd.

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


git-svn-id: svn+ssh://svn.freebsd.org/base/head@255833 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
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)


git-svn-id: svn+ssh://svn.freebsd.org/base/head@255835 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
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


git-svn-id: svn+ssh://svn.freebsd.org/base/head@255837 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f