]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
10 years agoFixed kernel crash when running devinfo
alfred [Tue, 1 Oct 2013 15:43:23 +0000 (15:43 +0000)]
Fixed kernel crash when running devinfo

When calling to ib_uverbs_cleanup_ucontext, there is a call to
mutex_lock of xrcd_table_mutex, which was not initialized.
Added missing initialization for xrcd_table_mutex.

Submitted by: Orit Moskovich (oritm mellanox.com)

Approved by: re

10 years agoEnable ib_dev.mmap function
alfred [Tue, 1 Oct 2013 15:42:38 +0000 (15:42 +0000)]
Enable ib_dev.mmap function

Removed the ifdef linux from this function.
Added stub function for contiguous pages to avoid compilation
errors.

Submitted by: Orit Moskovich (oritm mellanox.com)
Approved by: re

10 years agoFix some typos that were causing probe argument types to show up as unknown.
markj [Tue, 1 Oct 2013 15:40:27 +0000 (15:40 +0000)]
Fix some typos that were causing probe argument types to show up as unknown.

Reviewed by: rwatson (mac provider)
Approved by: re (glebius)
MFC after: 1 week

10 years agoFixed 'Couldn't Create QP' issue when running rc_pingpong, uc_pingpong,
alfred [Tue, 1 Oct 2013 15:38:29 +0000 (15:38 +0000)]
Fixed 'Couldn't Create QP' issue when running rc_pingpong, uc_pingpong,
srq_pingpong IBverbs

Removed refrences using 'ifdef __linux__' to qpg functions and
related fields in struct
ib_qp_init_attr.

Submitted by: Orit Moskovich (oritm mellanox.com)

Approved by: re

10 years agoFixed kernel crash when removing IPOIB_CM option from configuration file
alfred [Tue, 1 Oct 2013 15:36:51 +0000 (15:36 +0000)]
Fixed kernel crash when removing IPOIB_CM option from configuration file

Changed module init from module_init() to module_init_order() with
SI_ORDER_MIDDLE flag
Submitted by: Orit Moskovich (oritm mellanox.com)
Approved by: re

10 years agoFix mis-merge of upstream fix.
alfred [Tue, 1 Oct 2013 15:33:00 +0000 (15:33 +0000)]
Fix mis-merge of upstream fix.

We would accidentally make the string one byte too short.

Submitted by: Orit Moskovich (oritm mellanox.com)

Approved by: re

10 years ago- Enable unmapped buffers on Exynos5 again, because
br [Tue, 1 Oct 2013 12:01:20 +0000 (12:01 +0000)]
- Enable unmapped buffers on Exynos5 again, because
  board now able to see all the 2GB ram it has
- Also unbreak gcc build

Approved by: cognet (mentor)
Approved by: re (marius)

10 years agoHave makeman always use the mk files from the source tree it's operating
des [Tue, 1 Oct 2013 07:22:04 +0000 (07:22 +0000)]
Have makeman always use the mk files from the source tree it's operating
on rather than those from the installed system.

Approved by: re (delphij)

10 years agoOdds and ends left over from BIND and unnoticed because they didn't
des [Tue, 1 Oct 2013 07:19:23 +0000 (07:19 +0000)]
Odds and ends left over from BIND and unnoticed because they didn't
affect 'make universe'.

Approved by: re (gjb)

10 years agoAdd missing mergeinfo associated with r255852.
dteske [Mon, 30 Sep 2013 21:26:03 +0000 (21:26 +0000)]
Add missing mergeinfo associated with r255852.

Approved by: re (gjb)

10 years agoSet proper permissions on the generated osreldate.h file; a file readable
ian [Mon, 30 Sep 2013 21:01:04 +0000 (21:01 +0000)]
Set proper permissions on the generated osreldate.h file; a file readable
only by root can cause install problems, especially over nfs.

Submitted by: jilles@
Approved by: re (gjb)

10 years agoUpdate the Dutch calendar entries:
rene [Mon, 30 Sep 2013 20:49:10 +0000 (20:49 +0000)]
Update the Dutch calendar entries:
- prince Johan Friso passed away in 2013
- correct status of queen Maxima and crown princess Catharina-Amalia
- language fixes

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

10 years agoReverse directories order when doing 'make delete-old-dir'. This
delphij [Mon, 30 Sep 2013 20:33:56 +0000 (20:33 +0000)]
Reverse directories order when doing 'make delete-old-dir'.  This
ensures subdirectories gets removed before their parents when doing
make delete-old.

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

10 years agoNote the removal of BIND, where to find it, and how to use
des [Mon, 30 Sep 2013 18:06:43 +0000 (18:06 +0000)]
Note the removal of BIND, where to find it, and how to use
local_unbound instead.

Approved by: re (gjb)

10 years agoRemove /usr/include/lwres
des [Mon, 30 Sep 2013 18:00:54 +0000 (18:00 +0000)]
Remove /usr/include/lwres

Approved by: re (gjb)

10 years agoRegenerate.
des [Mon, 30 Sep 2013 17:40:39 +0000 (17:40 +0000)]
Regenerate.

Approved by: re (gjb)

10 years agoRemove BIND.
des [Mon, 30 Sep 2013 17:23:45 +0000 (17:23 +0000)]
Remove BIND.

Approved by: re (gjb)

10 years agoUpdate ddb(9) to show how to print 64-bit values with "examine".
rwatson [Mon, 30 Sep 2013 09:21:17 +0000 (09:21 +0000)]
Update ddb(9) to show how to print 64-bit values with "examine".

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

10 years agoAdd the newest NetBSD releases.
eadler [Sun, 29 Sep 2013 23:38:53 +0000 (23:38 +0000)]
Add the newest NetBSD releases.

Approved by: re (gjb)

10 years agoMake the mac_policy_rm lock recursable, which allows reentrance into
kib [Sun, 29 Sep 2013 20:21:34 +0000 (20:21 +0000)]
Make the mac_policy_rm lock recursable, which allows reentrance into
the mac framework.  It is needed when priv_check_cred(9) is called from
the mac callback, e.g. in the mac_portacl(4).

Reported by: az
Reviewed by: rwatson
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Approved by: re (gjb)

10 years agoUse MK_SSP=no after including bsd.own.mk to disable SSP instead of user-knob
bdrewery [Sun, 29 Sep 2013 20:20:17 +0000 (20:20 +0000)]
Use MK_SSP=no after including bsd.own.mk to disable SSP instead of user-knob
WITH[OUT]_SSP to avoid hitting an error if user has WITH_SSP in their
make.conf. Ports now use this knob.

  make[7]: "/usr/src/share/mk/bsd.own.mk" line 466: WITH_SSP and
  WITHOUT_SSP can't both be set.

This is similar to previous cleanup done in r188895

Approved by: bapt
Reviewed by: jlh (earlier version)
Approved by: re (marius)
MFC after: 1 week

10 years agoChanges to CAM or busdma have caused SIMs to be sent 0-length CCBs on
nwhitehorn [Sun, 29 Sep 2013 20:10:22 +0000 (20:10 +0000)]
Changes to CAM or busdma have caused SIMs to be sent 0-length CCBs on
occasion. This resulted in zero mapped segments, triggering an assert in
the PS3 CDROM driver. Allow no DMA for 0-length transfers.

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

10 years agoFor vunref(), try to upgrade the vnode lock if the function was called
kib [Sun, 29 Sep 2013 18:07:14 +0000 (18:07 +0000)]
For vunref(), try to upgrade the vnode lock if the function was called
with the vnode shared-locked.  If upgrade succeeded, the inactivation
can be done immediately, instead of being postponed.

Tested by: pho
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Approved by: re (glebius)

10 years agoReimplement r255797 using LK_TRYUPGRADE.
kib [Sun, 29 Sep 2013 18:04:57 +0000 (18:04 +0000)]
Reimplement r255797 using LK_TRYUPGRADE.

The  r255797 was:
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 (glebius)

10 years agoAdd LK_TRYUPGRADE operation for lockmgr(9), which attempts to
kib [Sun, 29 Sep 2013 18:02:23 +0000 (18:02 +0000)]
Add LK_TRYUPGRADE operation for lockmgr(9), which attempts to
atomically upgrade shared lock to exclusive.  On failure, error is
returned and lock is not dropped in the process.

Tested by:      pho (previous version)
No objections from:     attilio
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Approved by: re (glebius)

10 years agoFix ixp425 boot2 with ARM EABI:
andrew [Sun, 29 Sep 2013 15:19:34 +0000 (15:19 +0000)]
Fix ixp425 boot2 with ARM EABI:
 - libkern is missing __aeabi_llsl, implement this by calling __ashldi3.
 - Because of how the asm entry macros are defined the boot2 code
   requires the unwind symbols to exist, include them in boot2.

Approved by: re (marius)

10 years agoYet more BIND files that weren't listed in OptionalObsoleteFiles.
des [Sun, 29 Sep 2013 14:06:19 +0000 (14:06 +0000)]
Yet more BIND files that weren't listed in OptionalObsoleteFiles.

Approved by: re (blanket)

10 years agoImplement GET_STACK_USAGE.
marius [Sun, 29 Sep 2013 13:09:25 +0000 (13:09 +0000)]
Implement GET_STACK_USAGE.
Discussed with: mav

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

10 years agoDEBUG_FLAGS -g is default for GENERIC and its presence interferes with
philip [Sun, 29 Sep 2013 13:05:22 +0000 (13:05 +0000)]
DEBUG_FLAGS -g is default for GENERIC and its presence interferes with
disabling the sfxge.ko.symbols build for embedded systems.

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

10 years agoAdd pagemask debugging output in "show tlb" in the debugger.
adrian [Sun, 29 Sep 2013 10:14:16 +0000 (10:14 +0000)]
Add pagemask debugging output in "show tlb" in the debugger.

Approved by: re (marius)
Obtained from: bsdimp

10 years agoUpdate head/ to -ALPHA4.
gjb [Sun, 29 Sep 2013 01:05:00 +0000 (01:05 +0000)]
Update head/ to -ALPHA4.

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

10 years agoUpdate OFED to Linux 3.7 and update Mellanox drivers.
alfred [Sun, 29 Sep 2013 00:35:03 +0000 (00:35 +0000)]
Update OFED to Linux 3.7 and update Mellanox drivers.

Update the OFED Infiniband core to the version supplied in Linux
version 3.7.

The update to OFED is nearly all additional defines and functions
with the exception of the addition of additional parameters to
ib_register_device() and the reg_user_mr callback.

In addition the ibcore (Infiniband core) and ipoib (IP over Infiniband)
have both been made into completely loadable modules to facilitate
testing of the OFED stack in FreeBSD.

Finally the Mellanox Infiniband drivers are now updated to the
latest version shipping with Linux 3.7.

Submitted by: Mellanox FreeBSD driver team:
                Oded Shanoon (odeds mellanox.com),
                Meny Yossefi (menyy mellanox.com),
                Orit Moskovich (oritm mellanox.com)

Approved by: re

10 years agoFix a bug in ld, where indirect symbols are not handled properly during
dim [Sat, 28 Sep 2013 23:03:40 +0000 (23:03 +0000)]
Fix a bug in ld, where indirect symbols are not handled properly during
linking of a shared library, leading to corrupt indexes in the dynamic
symbol table.  This should fix the multimedia/ffmpegthumbnailer port.

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

10 years agoAllow the path to the system source directory to be passed in to
ian [Sat, 28 Sep 2013 16:39:46 +0000 (16:39 +0000)]
Allow the path to the system source directory to be passed in to
newvers.sh.  Pass it in from include/Makefile.  If it isn't passed in,
fall back to the old logic of using dirname $0.

Using dirname $0 does not yield the path to the script if it was
sourced in from another script in another directory; you end up with
the parent script's path.  That was causing newvers.sh to look one
level below the FreeBSD src/ directory when building osreldate.h and it
may find something like a git or svn repo there that has nothing to do
with FreeBSD.

PR: 174422
Approved by: re ()
MFC after: 2 weeks

10 years agoPrevent the set -e from mk-osreldate.sh from propagating into newvers.sh.
nwhitehorn [Sat, 28 Sep 2013 16:25:20 +0000 (16:25 +0000)]
Prevent the set -e from mk-osreldate.sh from propagating into newvers.sh.
This would cause detection of old versions of SVN to cause fatal errors
instead of being caught and handled, which would make the build fail if
the tree had been checked out with an older version of SVN (e.g. 1.6).

Discussed with: gjb
Approved by: re (marius)

10 years agoUse the correct EtherType for logging IPv6 packets.
philip [Sat, 28 Sep 2013 15:49:36 +0000 (15:49 +0000)]
Use the correct EtherType for logging IPv6 packets.

Reviewed by: melifaro
Approved by: re (kib, glebius)
MFC after: 3 days

10 years agoAdd driver for the PAPR VSCSI virtual SCSI controller. This lets FreeBSD
nwhitehorn [Sat, 28 Sep 2013 15:46:03 +0000 (15:46 +0000)]
Add driver for the PAPR VSCSI virtual SCSI controller. This lets FreeBSD
install directly into standard POWER LPARs, as found for example in
QEMU. The core of this device is the SCSI RDMA protocol as also found in
Infiniband. The SRP portions of the driver will be factored out and placed
/sys/cam in the future to allow them to be used for IB storage. Thanks to
Scott Long for a great deal of implementation help.

Reviewed by: scottl
Approved by: re (kib)

10 years ago Fix a fallout from r241610. One enc interface must be created on startup.
glebius [Sat, 28 Sep 2013 14:14:23 +0000 (14:14 +0000)]
  Fix a fallout from r241610. One enc interface must be created on startup.

Pointy hat to: glebius
Reported by: gavin
Approved by: re (gjb)

10 years agoRemove ftp5.se.f.o, as per request to -hubs@
gavin [Sat, 28 Sep 2013 13:58:21 +0000 (13:58 +0000)]
Remove ftp5.se.f.o, as per request to -hubs@

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

10 years agoFix make depend, apply a bit of style.
uqs [Sat, 28 Sep 2013 07:04:03 +0000 (07:04 +0000)]
Fix make depend, apply a bit of style.

Approved by: re (marius)
Reviewed by: grehan

10 years agoFix powerpc/161045. ams_poll() needs to return that any data is available, not
jhibbits [Sat, 28 Sep 2013 02:13:59 +0000 (02:13 +0000)]
Fix powerpc/161045.  ams_poll() needs to return that any data is available, not
just a new packet.

PR: powerpc/161045
Approved by: re(marius)
MFC after: 1 week

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