Sascha Wildner [Wed, 10 Dec 2014 18:01:51 +0000 (19:01 +0100)]
pstat.8: Fix list of flags that are valid for swapinfo.
Sascha Wildner [Wed, 10 Dec 2014 17:59:53 +0000 (18:59 +0100)]
bsd.libnames.mk: Comment out libdmsg until it is hooked back in.
Sascha Wildner [Wed, 10 Dec 2014 15:51:10 +0000 (16:51 +0100)]
libusb{,20}.3: Add libusb to mdoc.local and adjust LIBRARY section.
François Tigeot [Mon, 10 Nov 2014 08:45:16 +0000 (09:45 +0100)]
ichwd: Add support for Ivy-Bridge EP and Haswell chipsets
* Add support for the Coleto Creek Ivy-Bridge EP chipset
* Add support for the Intel Lynx Point and Wildcat Point Haswell chipsets
Obtained-from: FreeBSD
Antonio Huete Jimenez [Wed, 10 Dec 2014 00:08:20 +0000 (01:08 +0100)]
devfs - Fix a vkernel panic on shutdown
Antonio Huete Jimenez [Tue, 9 Dec 2014 00:10:27 +0000 (01:10 +0100)]
hammer - Fix 'history' directive
- Directive options '@offset,len' work now as they are
supposed to.
Imre Vadasz [Mon, 8 Dec 2014 15:01:24 +0000 (16:01 +0100)]
usb4bsd/if_rum: Add missing locking around rum_start_locked().
Antonio Huete Jimenez [Mon, 8 Dec 2014 01:16:10 +0000 (02:16 +0100)]
installer - Use bit 'flags' for additional options
- Use a flags field to i_fn_args struct instead of single
int fields to specify different options.
- No functional change
Sascha Wildner [Sat, 6 Dec 2014 19:46:20 +0000 (20:46 +0100)]
kernel/usb4bsd: Change a pointer back to NULL.
Sascha Wildner [Sat, 6 Dec 2014 19:20:11 +0000 (20:20 +0100)]
kernel/usb4bsd: Remove no longer needed dependencies on 'usb' in 'files'.
We used it (along with 'oldusb') to differentiate between the former
USB stack and USB4BSD. This is no longer necessary now.
Sascha Wildner [Sat, 6 Dec 2014 18:58:04 +0000 (19:58 +0100)]
Remove some obsolete manpages (from oldusb).
Sascha Wildner [Sat, 6 Dec 2014 18:57:40 +0000 (19:57 +0100)]
FWIW, port and hook in the urio(4) storage driver.
Taken-from: FreeBSD
Sascha Wildner [Sat, 6 Dec 2014 01:13:20 +0000 (02:13 +0100)]
Add missing includes for prototypes in various manual pages.
Sascha Wildner [Sat, 6 Dec 2014 01:12:38 +0000 (02:12 +0100)]
kobj.9: Remove information about non-public functions.
Sascha Wildner [Sat, 6 Dec 2014 00:27:16 +0000 (01:27 +0100)]
kprintf.9: tprintf()'s prototype is in <sys/tprintf.h>.
François Tigeot [Fri, 5 Dec 2014 18:28:57 +0000 (19:28 +0100)]
devfs: Fix namecache invalidation for alias nodes
* The devfs alias nodes don't have a directly associated vnode, they
use the vnode of their target link.
* Unfortunately, the namecache invalidation code in devfs_freep() only
processed vnodes registered in the devfs_node structure, missing the
aliases.
* Put the namecache invalidation code in devfs_unlinkp() and make sure
devfs alias node entries are properly invalidated.
Antonio Huete Jimenez [Fri, 5 Dec 2014 09:35:24 +0000 (10:35 +0100)]
installer - Fix a segfault
- If survey was unable to detect any partition on the selected disk,
as it is the case for unconfigured vn devices, do not attempt to
dereference the selected_slice pointer.
François Tigeot [Thu, 4 Dec 2014 14:22:11 +0000 (15:22 +0100)]
namecache: Remove a diagnostic message
It only scares users these days.
Sascha Wildner [Thu, 4 Dec 2014 18:27:47 +0000 (19:27 +0100)]
devd(8): Fix asus.conf installation.
Sascha Wildner [Thu, 4 Dec 2014 17:34:53 +0000 (18:34 +0100)]
kernel/ndis: Remove an oldusb specific file.
Sascha Wildner [Thu, 4 Dec 2014 11:10:38 +0000 (12:10 +0100)]
kernel/lockf: Make a function as printf-like and fix warnings.
Imre Vadasz [Sat, 22 Nov 2014 08:58:51 +0000 (09:58 +0100)]
virtio_blk: Enable dump support. Partial sync with FreeBSD up to r252707.
* Adds support for dumping to the virtio_blk driver.
* The dev.vtblk.X.writecache_mode sysctl can now be used to toggle write
caching by the virtual-machine host.
* Add a workaround in sys/dev/virtual/virtio/virtio/virtqueue.c to avoid
a serializer exit/enter pair while dumping.
* Reduce diff relative to FreeBSD's virtio_blk.c version.
* Adapt manpage, comment out description of the hw.vtblk.no_ident tunable.
* Updates are taken from FreeBSD's r252707, r252703 and r247829.
Antonio Huete Jimenez [Tue, 2 Dec 2014 23:59:30 +0000 (00:59 +0100)]
installer - Several improvements
- Improved detection of the booting media (LiveCD)
- Sets TTY variable correctly for vkernel. This way its only
console won't be filled up with messages that mess up menus.
- Detect 'TTY_INST' variable which means the installer was called
from the LiveDVD's installDragonFly.sh script.
In-discussion with: swildner
Sascha Wildner [Sun, 30 Nov 2014 20:46:01 +0000 (21:46 +0100)]
Makefile_upgrade.inc: Remove formatted manual pages, too.
Sascha Wildner [Tue, 2 Dec 2014 17:13:53 +0000 (18:13 +0100)]
lgamma.3: Fix some whitespace issues and remove refs to non-existing funcs.
Sascha Wildner [Tue, 2 Dec 2014 08:36:16 +0000 (09:36 +0100)]
libm: Add some .Lb sections to manual pages missing it.
Sascha Wildner [Tue, 2 Dec 2014 17:12:41 +0000 (18:12 +0100)]
procctl.2: Add missing include.
Sascha Wildner [Tue, 2 Dec 2014 17:09:59 +0000 (18:09 +0100)]
Add a number of missing MLINKS.
However, don't bring back the libm.3 -> ieee.3 one (it was removed
in the recent libm work) because it was kind of silly.
John Marino [Tue, 2 Dec 2014 13:15:37 +0000 (14:15 +0100)]
libc versioning: Add missing symbols, put rest in DFprivate_1_0
This builds, like the previous attempt, but all executables that pull in
libc segfault when errno is accessed, so libc versioning is not working.
John Marino [Tue, 2 Dec 2014 10:48:24 +0000 (11:48 +0100)]
sysvipc: Add missing symbols to map
John Marino [Mon, 1 Dec 2014 22:00:32 +0000 (23:00 +0100)]
libc version maps: Update inactive symbol maps
This is a work in progress, but it is encouraging that a full buildworld
completed with a versioned libc. This will not be activated until it is
verified with a complete bulk run of packages.
Antonio Huete Jimenez [Mon, 1 Dec 2014 22:43:59 +0000 (23:43 +0100)]
mountd - Check the correct variable after malloc()
- Also update FreeBSD Id
Taken from: FreeBSD SVN 173056
Antonio Huete Jimenez [Mon, 1 Dec 2014 22:41:32 +0000 (23:41 +0100)]
mountd - Add the -h <bindip> option
Taken from: FreeBSD SVN 172827
Antonio Huete Jimenez [Mon, 1 Dec 2014 21:31:58 +0000 (22:31 +0100)]
mountd - Only exit when no valid export files.
Taken from: FreeBSD SVN 168684
Antonio Huete Jimenez [Mon, 1 Dec 2014 21:27:27 +0000 (22:27 +0100)]
mountd - Add support for multiple exports files.
Taken from: FreeBSD SVN 166440
John Marino [Mon, 1 Dec 2014 13:37:59 +0000 (14:37 +0100)]
library versioning: Activate versioning on 7 libraries
All 4.2 packages currently on the system will continue to work on
a system after this commit. However, the next bulk run of packages will
build using these symbol versions and will not work on systems older
than this commit. Part of the joys of running on bleeding edge I think.
The next bulk run won't be for a couple of weeks at least (I'm waiting
on a disruptive and huge patch of perl and pgsql to settle down) so there
is no impending breakage expected.
The newly mapped libraries are: z, ncurses, lzma, edit, archive, md, bz2
John Marino [Mon, 1 Dec 2014 12:51:18 +0000 (13:51 +0100)]
library versioning: Don't bump major version
Eight libraries have unused yet valid symbol maps. The original plan was
to activate them together and bump all the major library versions at the
same time. This never happened because the libc symbol map isn't quite
right yet. However, it's not necessary to bump the version. If mapped,
both the versioned and unversioned symbol will be available and will
reference the same location, so no breakage will occur.
Once confirmed, the next commit will remove the "RELEASE36" check. The
c library guard had changed to RELEASE42, so the intent is to activate
versioning on 7 of the 8 libraries in one step.
John Marino [Sun, 30 Nov 2014 22:49:16 +0000 (23:49 +0100)]
gcc47 libstdc++: Enable c++11 support
The c++0x/11x standard of the base compiler has been crippled due to
the lack of C99 support in DragonFly, but the recently libm improvements
have enabled c++11 standard support.
John Marino [Sun, 30 Nov 2014 21:23:15 +0000 (22:23 +0100)]
libm: bring in 16 complex functions from NetBSD
FreeBSD is still missing a number of (obscure) complex functions that
causes GCC conclude that C99 is not supported. Seven weeks ago, NetBSD
brought the functions into their base.
To avoid a repeat of the unholy mixture of libm from FreeBSD and NetBSD
that we had before, I've created a separate directory for NetBSD functions
called "gaps". If/when FreeBSD acquires these functions, we can remove
files from "gaps" as we sync their equivalents. The NetBSD sources were
modified as follows:
* On the man pages, references to the float and double versions of the
functions were removed when only the long double version was imported.
This includes singular/plural changes, and file/function name changes.
* Changed "#include <math.h>" to "#include "math.h"
* Removed the include for namespace.h
* Removed all "#if 0" blocks
The sixteen functions have symbol versions of DF402.0 and are:
* cpow cpowf cpowl
* clog clogf clogl
* cacosl casinl catanl
* ccoshl csinhl ctanhl
* ccosl csinl ctanl
* cexpl
Sascha Wildner [Sun, 30 Nov 2014 20:28:13 +0000 (21:28 +0100)]
rpc.statd(8): Add missing include to fix the build.
Reported-by: Robin Hahling <robin.hahling@gw-computing.net>
Sascha Wildner [Sun, 30 Nov 2014 18:57:53 +0000 (19:57 +0100)]
callout.9: Adjust for recent callout code changes.
Sascha Wildner [Sun, 30 Nov 2014 18:29:55 +0000 (19:29 +0100)]
<sys/callout.h>: Remove obsolete struct callout_handle.
Sascha Wildner [Sun, 30 Nov 2014 18:07:45 +0000 (19:07 +0100)]
kernel/if_media: Add descriptions for MCS.
While here, correct the baudrate of IFM_IEEE80211_DS5 from 5Mbps
to 5.5Mbps.
Antonio Nikishaev [Thu, 27 Nov 2014 16:21:30 +0000 (20:21 +0400)]
top(1): ability to display individual threads
And put square brackets around system processes.
John Marino [Sun, 30 Nov 2014 16:11:13 +0000 (17:11 +0100)]
rtld: Add a postinit debugger hook
FreeBSD's dtrace(1) uses this hook to halt the "victim" process before its
entry point is called, at which point probes and DOF data are registered
with the kernel. The r_debg_state hook cannot be used for this purpose,
as it is called before the program's init routines are invoked and in
particular before ODF is registered. It may or may not be useful for
DragonFly by itself, but if dtrace every comes in, rtld will be ready.
Taken from: FreeBSD svn 265456 (6 May 2014)
FreeBSD svn 265578 (7 May 2014)
John Marino [Sun, 30 Nov 2014 15:48:25 +0000 (16:48 +0100)]
rtld: Handle IFUNC symbols at non-PLT relocations
An example of this is initializing a global variable with a pointer to
ifunc. This adds a symble type check and call resolver for STT_GNU_IFNC
symbol types whien processing non-PLT relocations, but only after
non-IFUNC relocations are done. The two-phase processing is required
since resolvers may reference other symbols which most be ready to use
when resolver calls are done.
This restructures reloc_non_plt() to call find_symdef() and handle IFUNC
in a single place.
Taken from: FreeBSD svn 270798 (29 Aug 2014)
FreeBSD svn 270802 (29 Aug 2014)
John Marino [Sun, 30 Nov 2014 11:52:58 +0000 (12:52 +0100)]
rtld: Add support for LD_LIBRARY_PATH_FDS env variable
This variable allows loading of shared libraries via directory descriptors
rather than via library paths. if LD_LIBRARY_PATH_FDS=3:4:12, the
directories represented by file descriptors 3, 4, and 12 will be searched
for shared libraries before the normal path-based mechanisms are used.
This allows the execution of unpriviledge binaries from within a Capsicum
sandbox even if they require shared libraries. Note that Capsicum is not
available on DragonFly yet.
While here, adjust whitespace and rearrange a bit to minimize differences
with FreeBSD rtld.
Taken from: FreeBSD svn 267678 (20 June 2014)
John Marino [Sun, 30 Nov 2014 10:06:04 +0000 (11:06 +0100)]
rtld: Allows return pathname in dl_iterate_phdr dlpi_name
This is the behavior of Linux and also of FreeBSD since October 2014.
Until this point, dlpi_name returned the short name of the object unless
it wasn't defined, so the fallback was to return the pathname.
Returning the pathname in all cases is considered more useful and matches
the definition of Linux.
Taken from: FreeBSD svn 272842 (9 Oct 2014)
John Marino [Sun, 30 Nov 2014 09:59:20 +0000 (10:59 +0100)]
rtld: Fix LD_LIBMAP under libmap override
Taken from: FreeBSD svn 266411 (18 May 2014)
Antonio Huete Jimenez [Sun, 30 Nov 2014 16:18:30 +0000 (17:18 +0100)]
Testing teh bot 1 2 3
Antonio Huete Jimenez [Sun, 30 Nov 2014 15:19:13 +0000 (16:19 +0100)]
mountd - Ignore SIGPIPE instead of terminating the process.
Taken from: FreeBSD SVN 164394
Antonio Huete Jimenez [Sun, 30 Nov 2014 15:14:26 +0000 (16:14 +0100)]
mountd - Correctly loop over the mounted filesystems
Taken from: FreeBSD SVN 160175
Antonio Huete Jimenez [Sun, 30 Nov 2014 13:29:05 +0000 (14:29 +0100)]
mountd - Don't delete exports from network filesystems
Taken from: FreeBSD SVN 159360
Antonio Huete Jimenez [Sun, 30 Nov 2014 13:14:34 +0000 (14:14 +0100)]
mountd - Remove NI_WITHSCOPEID usage
Taken from: FreeBSD SVN 146187
Antonio Huete Jimenez [Sun, 30 Nov 2014 13:08:59 +0000 (14:08 +0100)]
mountd - Zero-out structure before calling mount()
Taken from: FreeBSD SVN 138680
Antonio Huete Jimenez [Sun, 30 Nov 2014 13:07:01 +0000 (14:07 +0100)]
mountd - Pass in an array of gid_t
Taken from: FreeBSD SVN 136051
Antonio Huete Jimenez [Sun, 30 Nov 2014 13:00:13 +0000 (14:00 +0100)]
mountd - Add new option -p <port>
- Specially useful when behind firewalls
Taken from: FreeBSD SVN 126572
Antonio Huete Jimenez [Sun, 30 Nov 2014 12:47:49 +0000 (13:47 +0100)]
mountd - Rename do_log -> dolog
Taken from: FreeBSD SVN 121767
Antonio Huete Jimenez [Sun, 30 Nov 2014 12:39:04 +0000 (13:39 +0100)]
mountd - Fix an error message
Taken from: FreeBSD SVN 117684
Antonio Huete Jimenez [Sun, 30 Nov 2014 11:47:50 +0000 (12:47 +0100)]
rpc - Implement non-blocking connections
- This follows up commit
ce0e08e21d42c06c0014fae6b9d27144aa5109b0
Taken from: FreeBSD SVN 109363
Sascha Wildner [Sun, 30 Nov 2014 02:19:05 +0000 (03:19 +0100)]
libnetgraph7/netgraph.3: Correct a prototype.
John Marino [Sat, 29 Nov 2014 21:28:11 +0000 (22:28 +0100)]
libm: Sync with FreeBSD (gains 6 long double functions)
The following functions have been implemented:
- coshl
- erfcl
- erfl
- lgammal
- sinhl
- tanhl
Before these were approximated with the double versions using the
"imprecise" macros. I've left the old ones in place (unlike FreeBSD)
but with symbol versioning so that libraries built with the earlier
versions can link to them. In other words, there are two versions of
these 6 functions, Df306.1 and DF402.0.
Sascha Wildner [Sat, 29 Nov 2014 21:11:21 +0000 (22:11 +0100)]
kernel/bwi: Fix a wrong conversion to the automatic sysctx ctx/tree setup.
This driver isn't hooked into the build currently.
Reported-by: ivadasz
Sascha Wildner [Sat, 29 Nov 2014 20:48:44 +0000 (21:48 +0100)]
kernel/bge: Fix a wrong conversion to the automatic sysctx ctx/tree setup.
Reported-by: ivadasz
Imre Vadasz [Sat, 29 Nov 2014 20:28:53 +0000 (21:28 +0100)]
link_elf: Work around a GCC optimization bug. Fixes ddb stack traces.
Taken-from: FreeBSD r102348
Sascha Wildner [Sat, 29 Nov 2014 19:17:07 +0000 (20:17 +0100)]
kernel/acpi: Add two debug tunables, debug.acpi.{ignore_xsdt,fadt_addr32}.
Used for affecting AcpiGbl_DoNotUseXsdt and AcpiGbl_Use32BitFadtAddresses,
which came in with
20131218.
Sascha Wildner [Sat, 29 Nov 2014 18:22:11 +0000 (19:22 +0100)]
kernel: Remove the no longer used KTR_USB_MEMORY option.
John Marino [Sat, 29 Nov 2014 12:07:39 +0000 (13:07 +0100)]
dloader: Add a new option for color loader, "fred_is_blue"
When loader_color="YES", the dragonfly logo will show Fred as a red
dragonfly with red wings. If fred_is_blue="YES" is set in loader.conf
as well, then a blue version of Fred will show instead (slightly more
fancy as wings are two-tone).
While here, update the man page with this new option and document
"fred_separated" option which was added yesterday.
François Tigeot [Sat, 29 Nov 2014 07:12:11 +0000 (08:12 +0100)]
drm/i915: i915_gem_do_init() is i915_gem_init_global_gtt()
Drop it and reduce differences with Linux 3.8.13 in the code using it.
John Marino [Fri, 28 Nov 2014 22:07:46 +0000 (23:07 +0100)]
dloader: First step in improving looks of boot menu
The boot menu essentially hasn't changed since it was converted to C
a few years ago. The line between Fred and menu always bugged me, but I
suppose some people like it. I added a new loader option called
"fred_separated" that is off by default, but if set on in loader.conf,
it will bring back the line. When the line isn't present, Fred shifts
over by two characters which makes him centered.
While here, improve the colorization of Fred. Colorization is not turned
on by default. Before that can happen, adequate detection for a serial
console must be added to avoid using ansi color codes on it.
Since Fred has always been depicted as a red DragonFly with red wings, he
has been given bright red wings against a darker red body, and eyes have
changed from green yellow. His shape has been tweaked as well. His
scorpion stinger was sanded down to a small point and his mosquito beak
was made shorter so his head looks more like a DragonFly. His thorax was
improved with curly brackets.
The original look can be restored by putting this in /boot/loader.conf:
fred_separated="YES"
Approved by: Positive feedback on IRC channel
Sascha Wildner [Fri, 28 Nov 2014 21:16:32 +0000 (22:16 +0100)]
kernel: Use the new auto-created sysctl ctx/tree in various drivers.
Everywhere where we formerly rolled a hw.fooX.* per-device ctx/tree
ourselves.
This commit switches it to dev.foo.X.*
Sascha Wildner [Fri, 28 Nov 2014 17:23:55 +0000 (18:23 +0100)]
cpucontrol.8: Use Mt for email addresses.
Sascha Wildner [Fri, 28 Nov 2014 17:23:00 +0000 (18:23 +0100)]
make.conf.5: Fix date.
François Tigeot [Fri, 28 Nov 2014 16:08:11 +0000 (17:08 +0100)]
drm: Add linux/shmem_fs.h
shmem_read_mapping_page() is part of the public Linux API. Make it
accessible from linux/shmem_fs.h
François Tigeot [Fri, 28 Nov 2014 15:42:04 +0000 (16:42 +0100)]
drm/i915: i915_wire_page is shmem_read_mapping_page()
* Rename it and change its return type to be 100% compatible with the
same function from Linux 3.8.13.
* Also change the functions using it a bit to be more like what they
are in Linux. Variable names were changed and *BSD-specific APIs
unnecessarily introduced during the original port of this code from
Linux to FreeBSD.
François Tigeot [Fri, 28 Nov 2014 08:41:52 +0000 (09:41 +0100)]
drm/i915: Extract general object init routine
Obtained-from: Linux 3.8.13
Matthew Dillon [Fri, 28 Nov 2014 06:57:36 +0000 (22:57 -0800)]
vkernel64 - Fix pmap panic
* Fix a pmap panic complaining about the pm_active cpumask not being zero
when the pmap is released/destroyed.
* The vkernel64 swtch code was improperly setting the active bits from
the gd_other_cpus field instead of the gd_cpumask field, which wound
up setting lots of bits instead of the one bit we wanted to set.
* Long-known bug was difficult to reproduce consistently enough to
locate until Robert found a quick way.
Reproduced-by: Robert Garrett
John Marino [Fri, 28 Nov 2014 00:42:23 +0000 (01:42 +0100)]
OpenSSH: default XAUTH_PATH as a make.conf variable
In the vast majority of use cases, the path to the xauth program will be
/usr/local/bin/xauth, the standard location defined by dports. However,
it should not be hardcoded becase this is not guaranteed.
This commit modifies OpenSSH makefiles to have an overrideable default
called XAUTH_PATH. This new variable has been added to the make.conf.5
man page and to /etc/defaults/make.conf.
Antonio Huete Jimenez [Thu, 27 Nov 2014 23:02:36 +0000 (00:02 +0100)]
rpc - Convert some daemons to TI-RPC
- This follows up commit
ce0e08e21d42c06c0014fae6b9d27144aa5109b0
Sascha Wildner [Thu, 27 Nov 2014 23:01:56 +0000 (00:01 +0100)]
Fix a number of typos in manual pages and user-visible messages.
Matthew Dillon [Thu, 27 Nov 2014 21:53:05 +0000 (13:53 -0800)]
kernel - Add debugging to try to catch callout panics
* Add debugging
* Adjust a few cases to tighten up the spec.
Antonio Huete Jimenez [Thu, 27 Nov 2014 21:21:44 +0000 (22:21 +0100)]
mountd - Use the standardized CHAR_BIT constant
Taken from: FreeBSD SVN 103949
Antonio Huete Jimenez [Thu, 27 Nov 2014 21:15:40 +0000 (22:15 +0100)]
mountd - Use the standard IPV6_V6ONLY
Taken from: FreeBSD SVN 100505
Antonio Huete Jimenez [Thu, 27 Nov 2014 20:59:20 +0000 (21:59 +0100)]
mountd - Try shorter replies for RPC failures
- If an RPC fails, try a shorter reply in case the fault lies with the
size of the response.
Taken from: FreeBSD SVN 100117
Antonio Huete Jimenez [Thu, 27 Nov 2014 20:26:37 +0000 (21:26 +0100)]
mountd - Remove old pre-TIRPC code
- Remove old pre-TIRPC code for getting transport handles.
Taken from: FreeBSD SVN 98826
Antonio Huete Jimenez [Thu, 27 Nov 2014 20:22:36 +0000 (21:22 +0100)]
mountd - Use fgetln() to read /etc/exports
- Removes the line length limit.
Taken from: FreeBSD SVN 96622
Antonio Huete Jimenez [Thu, 27 Nov 2014 14:54:53 +0000 (15:54 +0100)]
mountd - Module load handling
- Change the way the 'nfs' module is loaded.
- Use getsysctlbyname() to get vfs.nfs.nfs_privport
Taken from: FreeBSD SVN 83687
Sascha Wildner [Thu, 27 Nov 2014 18:17:11 +0000 (19:17 +0100)]
bsd-family-tree: Sync with FreeBSD.
* DragonFly 4.0.1
* FreeBSD 10.1
* NetBSD 6.1.5
* OpenBSD 5.6
Antonio Huete Jimenez [Wed, 26 Nov 2014 23:19:33 +0000 (00:19 +0100)]
nfs - Remove unused kerberos code [Userland]
- This commit removes unused kerberos code from mount_nfs(8) and
mountd(8).
- After a bit of research, apparently the code never worked on FreeBSD
since it was imported around 1995
Partially taken from: FreeBSD SVN 83653
Matthew Dillon [Wed, 26 Nov 2014 21:12:50 +0000 (13:12 -0800)]
kernel - Fix race in recent callout work
* CALLOUT_ARMED can only be cleared if the callout is not PENDING and also
if there are no IPIs pending. The last bit wasn't being checked properly,
potentially leading to MP races.
Antonio Huete Jimenez [Wed, 26 Nov 2014 17:55:50 +0000 (18:55 +0100)]
mountd - Look up addresses before using getnetbyname()
- Lookup '-network' and '-mask' addresses numerically before trying
getnetbyname()
- This avoids silly DNS queries.
Taken from: FreeBSD SVN 75861
Matthew Dillon [Wed, 26 Nov 2014 20:19:57 +0000 (12:19 -0800)]
drm - Fix improper M_NOWAIT usage
* Remove numerous mis-uses of M_NOWAIT, replacing with M_WAITOK | M_NULLOK.
Imre Vadasz [Wed, 26 Nov 2014 13:37:52 +0000 (14:37 +0100)]
kernel/acpi: Add missing ACPI_SERIAL_INIT calls for lock initialization.
Antonio Huete Jimenez [Wed, 26 Nov 2014 17:41:43 +0000 (18:41 +0100)]
mountd - IPv6 fixes for parsing and error checking
- Fix numerous problems with netmasks in /etc/exports
- Improved get_net() and fixed an error with partial networks such
as '127.1'
- More information in the SVN commit message
Taken from: FreeBSD SVN 75801
Joris Giovannangeli [Wed, 26 Nov 2014 16:42:30 +0000 (17:42 +0100)]
dc(1): init array field in the proper place.
Obtained-from: OpenBSD
Found-by: Sebastien Marie
François Tigeot [Wed, 26 Nov 2014 07:49:24 +0000 (08:49 +0100)]
drm/i915: Rename mm.gtt_list to bound_list
Reducing differences with Linux 3.8.13.
Matthew Dillon [Tue, 25 Nov 2014 22:11:42 +0000 (14:11 -0800)]
kernel - Fix boot-time panic in NATA revealed by new callout mechanics
* The NATA driver was using spin locks in a very, very dangerous way.
They did not play nice with the new blocking callout mechanism.
* Replace all of NATAs spinlocks with lockmgr locks. In addition, change
all asynchronous callout_stop() calls to synchronous callout_stop_sync()
calls, and use callout_init_lk() to auto-lock ch->state_lock for the
callback, which fixes a long-time deadlock race.
Reported-by: tuxillo
Matthew Dillon [Tue, 25 Nov 2014 19:14:30 +0000 (11:14 -0800)]
kernel - Show ukmap in /proc/*/map output
* /proc/*/map now displays uksmap mappings.
Matthew Dillon [Tue, 25 Nov 2014 18:57:13 +0000 (10:57 -0800)]
kernel - Fix panic on upmap/kpmap read via procfs.
* Fix a panic when upmap/kpmap is accessed via procfs.
Reported-by: Joris Giovannangeli
Matthew Dillon [Tue, 25 Nov 2014 18:20:41 +0000 (10:20 -0800)]
kernel - Fix callout deadlock in u4b
* Fix a deadlock which could freeze systems prior to the callout work and
cause X to deadlock (but not totally freeze a system) after the callout
work.
* Use the new callout_init_lk() auto-locking feature to handle a particular
usb callout. This allows the callout to be canceled if it interferes with
a frontend callout_reset() call and also fixes the related race.