dragonfly.git
2 days agoinet6: Only allow setting IPV6_V6ONLY sockopt to 1. master
Sepherosa Ziehau [Thu, 18 Dec 2014 12:46:53 +0000 (20:46 +0800)]
inet6: Only allow setting IPV6_V6ONLY sockopt to 1.

2 days agoinet6: Don't allow setting net.inet6.ip6.v6only to 0
Sepherosa Ziehau [Thu, 18 Dec 2014 12:35:17 +0000 (20:35 +0800)]
inet6: Don't allow setting net.inet6.ip6.v6only to 0

2 days agotcp: Increase default IW to 4.
Sepherosa Ziehau [Thu, 18 Dec 2014 12:10:51 +0000 (20:10 +0800)]
tcp: Increase default IW to 4.

This helps ACK loss case and will not cause obvious buffer bloating.

OKed-by: dillon@
2 days agosavecore - Fix a resource leak
Antonio Huete Jimenez [Thu, 18 Dec 2014 23:20:24 +0000 (00:20 +0100)]
savecore - Fix a resource leak

- Detected by cppcheck

2 days agosvc - Fix a couple memory leaks
Antonio Huete Jimenez [Thu, 18 Dec 2014 23:13:52 +0000 (00:13 +0100)]
svc - Fix a couple memory leaks

- Detected by cppcheck

2 days agolibc/regex - Fix a memory leak
Antonio Huete Jimenez [Thu, 18 Dec 2014 22:17:30 +0000 (23:17 +0100)]
libc/regex - Fix a memory leak

- Detected by cppcheck

2 days agolibc/db - Fix a resource leak
Antonio Huete Jimenez [Thu, 18 Dec 2014 22:01:13 +0000 (23:01 +0100)]
libc/db - Fix a resource leak

- Detected by cppcheck

2 days agokernel/acpica: Separate kernel and userland code in headers better.
Sascha Wildner [Thu, 18 Dec 2014 23:21:49 +0000 (00:21 +0100)]
kernel/acpica: Separate kernel and userland code in headers better.

Clean up a bit, use standard types, etc.

2 days agolibc - Initialise ret before use
Antonio Huete Jimenez [Thu, 18 Dec 2014 21:41:45 +0000 (22:41 +0100)]
libc - Initialise ret before use

3 days agoicmp: Asynchonize ctlinput/mtudisc/redirect processing
Sepherosa Ziehau [Mon, 24 Nov 2014 01:59:41 +0000 (09:59 +0800)]
icmp: Asynchonize ctlinput/mtudisc/redirect processing

Supportive facilities added:
- Embed netmsg_ctlinput into mbuf (used by input ICMP datagram) so that
  we don't need to do additional memory allocation to forward the
  pr_ctlinput to all netisrs for certain types of ICMP datagrams.
- Add/Expose so_pr_ctlport().
- Return target netisr's cpuid from pr_ctlport.  If the returned cpuid
  equals to ncpus, it means that pr_ctlinput needs to be run in all
  netisrs.
- Support 'direct' mode for TCP/UDP's pr_ctlinput.  The caller of the
  'direct' mode pr_ctlinput will do the message forwarding.

ICMP pr_ctlinput/mtudisc/redirect processing changes:
- For mtudisc and redirect we unconditionally forward the message
  embedded in input ICMP datagram to all netisrs, and call pr_ctlinput
  in 'direct' mode.
- For pr_ctlinput, we first call so_pr_ctlport() to see whether we need
  to forward the message embedded in input ICMP datagram to all netisrs,
  and act accordingly.
- Once pr_ctlinput/mtudisc/redirect processing is done, the message
  embedded in the input ICMP datagram is forwarded back to the netisr0
  to run rip_input().

After this commit, netisr0 will not be blocked for ICMP pr_ctlinput/
mtudisc/redirect processing.  This also fixes the mtudisc (originally
only cpu0's routes get mtu updates).

3 days agoroute/inet: Set the mtu if it is _not_ configured, i.e. is 0
Sepherosa Ziehau [Wed, 17 Dec 2014 12:52:22 +0000 (20:52 +0800)]
route/inet: Set the mtu if it is _not_ configured, i.e. is 0

4 days agodrm/i915: Reduce GEM code differences with Linux 3.8.13
François Tigeot [Tue, 16 Dec 2014 20:51:38 +0000 (21:51 +0100)]
drm/i915: Reduce GEM code differences with Linux 3.8.13

5 days agotwa(4): Fix a crash with TWA_DEBUG >= 3.
Sascha Wildner [Mon, 15 Dec 2014 22:34:16 +0000 (23:34 +0100)]
twa(4): Fix a crash with TWA_DEBUG >= 3.

tw_osli_dbg_dprintf() uses device_printf(sc->bus_dev, ...) so we can't
use it before sc->bus_dev is actually set.

5 days agoUpdate the pciconf(8) database.
Sascha Wildner [Mon, 15 Dec 2014 10:27:06 +0000 (11:27 +0100)]
Update the pciconf(8) database.

December 14, 2014 snapshot from http://pciids.sourceforge.net/

6 days agosys/dev/misc/ipmi: Implement watchdog functionality
Markus Pfeiffer [Sun, 14 Dec 2014 17:50:27 +0000 (17:50 +0000)]
sys/dev/misc/ipmi: Implement watchdog functionality

Unfortunately wdog(9) cannot handle how ipmi's watchdog works, so
we roll our own callout based solution.

6 days agokernel: Import the IPMI driver from FreeBSD.
Sascha Wildner [Sun, 14 Dec 2014 18:55:28 +0000 (19:55 +0100)]
kernel: Import the IPMI driver from FreeBSD.

Many thanks to Markus Pfeiffer <profmakx@dragonflybsd.org> for testing,
bug hunting and fixing the watchdog (this will be pushed in a separate
commit).

6 days agodrm/i915: use i915_ggtt_clear_range()
François Tigeot [Sun, 14 Dec 2014 12:51:42 +0000 (13:51 +0100)]
drm/i915: use i915_ggtt_clear_range()

6 days agodrm/i915: Make struct intel_gtt more compatible with Linux 3.8.13
François Tigeot [Sun, 14 Dec 2014 09:46:07 +0000 (10:46 +0100)]
drm/i915: Make struct intel_gtt more compatible with Linux 3.8.13

7 days agodevfs: Improve devfs_alias_getvp()
François Tigeot [Sun, 14 Dec 2014 08:08:01 +0000 (09:08 +0100)]
devfs: Improve devfs_alias_getvp()

* Resolve indirect alias nodes up to a relatively large limit

* Code taken from devfs_vop_nresolve()

Suggested-by: alexh
7 days agoinstaller: Fix IMG detection.
Sascha Wildner [Sat, 13 Dec 2014 22:21:21 +0000 (23:21 +0100)]
installer: Fix IMG detection.

IMGs count as live CDs too, from installer.sh's perspective.

7 days agodevfs: Remove alias nodes first
François Tigeot [Sat, 13 Dec 2014 17:30:20 +0000 (18:30 +0100)]
devfs: Remove alias nodes first

Fix a crash at unmount time where some device nodes were being removed
before their aliases.

7 days agobuild.7: Document installworld-force target.
Robin Hahling [Fri, 12 Dec 2014 11:08:37 +0000 (12:08 +0100)]
build.7: Document installworld-force target.

7 days agotrek(6): Fix bounds checking.
Sascha Wildner [Sat, 13 Dec 2014 10:51:56 +0000 (11:51 +0100)]
trek(6): Fix bounds checking.

The number of sectors was being used to check input for the quadrant,
and NSECTS > NQUADS.

Taken-from:  FreeBSD ports (games/bsdgames)
Reported-by: marino
7 days agokernel/x86_64: Add a bios.c with only bios_sigsearch().
Sascha Wildner [Sat, 13 Dec 2014 10:36:27 +0000 (11:36 +0100)]
kernel/x86_64: Add a bios.c with only bios_sigsearch().

Unlike i386, bios16/bios32 calls are not supported in x86_64, but
searching for ROM signatures is still useful for certain drivers.

We could use it in powernow(4) and also the (upcoming) IPMI driver
uses it.

Taken-from: FreeBSD

9 days agoFix the default path where modules reside in various manual pages.
Sascha Wildner [Fri, 12 Dec 2014 09:51:26 +0000 (10:51 +0100)]
Fix the default path where modules reside in various manual pages.

Reported-by: Yellow Rabbit <yrabbit@sdf.lonestar.org>
10 days agodrm: Sync drm_pci_alloc() with Linux 3.8.13
François Tigeot [Wed, 10 Dec 2014 07:07:44 +0000 (08:07 +0100)]
drm: Sync drm_pci_alloc() with Linux 3.8.13

10 days agobuild - add installworld-force target and better checks
Matthew Dillon [Wed, 10 Dec 2014 21:33:32 +0000 (13:33 -0800)]
build - add installworld-force target and better checks

* Add better checks to installworld.  Print an error and exit if the
  base system is too old, directing users to run installworld-force.

* Add installworld-force.  This automates installing the world on a
  base system which is too old and thus has chicken-and-egg problems
  with binaries and libraries.

  This install target will install to a temporary directory, compile up
  a static cpdup, and then use it to just blast copy /bin, /sbin, /lib,
  /libexec, /usr/bin, /usr/sbin, /usr/lib, and /usr/libexec.  It will
  then execute a normal make installworld and make upgrade.

10 days agopkg - Adjust pkg-bootstrap-force
Matthew Dillon [Wed, 10 Dec 2014 21:05:57 +0000 (13:05 -0800)]
pkg - Adjust pkg-bootstrap-force

* Adjust the pkg-bootstrap-force target to also remove
  "/usr/local/etc/pkg.conf".  Older pkg.conf files (e.g. 3.5 or earlier,
  possibly 3.6 or earlier) can interfere with newer pkg bootstraps.

10 days agobuildworld - bootstrap compatibility with older dragonfly's
Matthew Dillon [Wed, 10 Dec 2014 20:29:41 +0000 (12:29 -0800)]
buildworld - bootstrap compatibility with older dragonfly's

* Fix buildworld issue bootstrapping grep related utilities which expect
  newer header files.

10 days agoMention the disk device file names in a few disk/RAID driver manpages.
Sascha Wildner [Wed, 10 Dec 2014 18:48:59 +0000 (19:48 +0100)]
Mention the disk device file names in a few disk/RAID driver manpages.

All others mentioned it.

Reported-by: amonk on IRC
10 days agomdoc.local: We dropped libskey in 2009.
Sascha Wildner [Wed, 10 Dec 2014 18:13:44 +0000 (19:13 +0100)]
mdoc.local: We dropped libskey in 2009.

10 days agopstat.8: Fix list of flags that are valid for swapinfo.
Sascha Wildner [Wed, 10 Dec 2014 18:01:51 +0000 (19:01 +0100)]
pstat.8: Fix list of flags that are valid for swapinfo.

10 days agobsd.libnames.mk: Comment out libdmsg until it is hooked back in.
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.

10 days agolibusb{,20}.3: Add libusb to mdoc.local and adjust LIBRARY section.
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.

11 days agoichwd: Add support for Ivy-Bridge EP and Haswell chipsets
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

11 days agodevfs - Fix a vkernel panic on shutdown
Antonio Huete Jimenez [Wed, 10 Dec 2014 00:08:20 +0000 (01:08 +0100)]
devfs - Fix a vkernel panic on shutdown

12 days agohammer - Fix 'history' directive
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.

12 days agousb4bsd/if_rum: Add missing locking around rum_start_locked().
Imre Vadasz [Mon, 8 Dec 2014 15:01:24 +0000 (16:01 +0100)]
usb4bsd/if_rum: Add missing locking around rum_start_locked().

13 days agoinstaller - Use bit 'flags' for additional options
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

2 weeks agokernel/usb4bsd: Change a pointer back to NULL.
Sascha Wildner [Sat, 6 Dec 2014 19:46:20 +0000 (20:46 +0100)]
kernel/usb4bsd: Change a pointer back to NULL.

2 weeks agokernel/usb4bsd: Remove no longer needed dependencies on 'usb' in 'files'.
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.

2 weeks agoRemove some obsolete manpages (from oldusb).
Sascha Wildner [Sat, 6 Dec 2014 18:58:04 +0000 (19:58 +0100)]
Remove some obsolete manpages (from oldusb).

2 weeks agoFWIW, port and hook in the urio(4) storage driver.
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

2 weeks agoAdd missing includes for prototypes in various manual pages.
Sascha Wildner [Sat, 6 Dec 2014 01:13:20 +0000 (02:13 +0100)]
Add missing includes for prototypes in various manual pages.

2 weeks agokobj.9: Remove information about non-public functions.
Sascha Wildner [Sat, 6 Dec 2014 01:12:38 +0000 (02:12 +0100)]
kobj.9: Remove information about non-public functions.

2 weeks agokprintf.9: tprintf()'s prototype is in <sys/tprintf.h>.
Sascha Wildner [Sat, 6 Dec 2014 00:27:16 +0000 (01:27 +0100)]
kprintf.9: tprintf()'s prototype is in <sys/tprintf.h>.

2 weeks agodevfs: Fix namecache invalidation for alias nodes
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.

2 weeks agoinstaller - Fix a segfault
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.

2 weeks agonamecache: Remove a diagnostic message
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.

2 weeks agodevd(8): Fix asus.conf installation.
Sascha Wildner [Thu, 4 Dec 2014 18:27:47 +0000 (19:27 +0100)]
devd(8): Fix asus.conf installation.

2 weeks agokernel/ndis: Remove an oldusb specific file.
Sascha Wildner [Thu, 4 Dec 2014 17:34:53 +0000 (18:34 +0100)]
kernel/ndis: Remove an oldusb specific file.

2 weeks agokernel/lockf: Make a function as printf-like and fix warnings.
Sascha Wildner [Thu, 4 Dec 2014 11:10:38 +0000 (12:10 +0100)]
kernel/lockf: Make a function as printf-like and fix warnings.

2 weeks agovirtio_blk: Enable dump support. Partial sync with FreeBSD up to r252707.
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.

2 weeks agoinstaller - Several improvements
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

2 weeks agoMakefile_upgrade.inc: Remove formatted manual pages, too.
Sascha Wildner [Sun, 30 Nov 2014 20:46:01 +0000 (21:46 +0100)]
Makefile_upgrade.inc: Remove formatted manual pages, too.

2 weeks agolgamma.3: Fix some whitespace issues and remove refs to non-existing funcs.
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.

2 weeks agolibm: Add some .Lb sections to manual pages missing it.
Sascha Wildner [Tue, 2 Dec 2014 08:36:16 +0000 (09:36 +0100)]
libm: Add some .Lb sections to manual pages missing it.

2 weeks agoprocctl.2: Add missing include.
Sascha Wildner [Tue, 2 Dec 2014 17:12:41 +0000 (18:12 +0100)]
procctl.2: Add missing include.

2 weeks agoAdd a number of missing MLINKS.
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.

2 weeks agolibc versioning: Add missing symbols, put rest in DFprivate_1_0
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.

2 weeks agosysvipc: Add missing symbols to map
John Marino [Tue, 2 Dec 2014 10:48:24 +0000 (11:48 +0100)]
sysvipc: Add missing symbols to map

2 weeks agolibc version maps: Update inactive symbol maps
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.

2 weeks agomountd - Check the correct variable after malloc()
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

2 weeks agomountd - Add the -h <bindip> option
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

2 weeks agomountd - Only exit when no valid export files.
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

2 weeks agomountd - Add support for multiple exports files.
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

2 weeks agolibrary versioning: Activate versioning on 7 libraries
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

2 weeks agolibrary versioning: Don't bump major version
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.

2 weeks agogcc47 libstdc++: Enable c++11 support
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.

2 weeks agolibm: bring in 16 complex functions from NetBSD
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

2 weeks agorpc.statd(8): Add missing include to fix the build.
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>
2 weeks agocallout.9: Adjust for recent callout code changes.
Sascha Wildner [Sun, 30 Nov 2014 18:57:53 +0000 (19:57 +0100)]
callout.9: Adjust for recent callout code changes.

2 weeks ago<sys/callout.h>: Remove obsolete struct callout_handle.
Sascha Wildner [Sun, 30 Nov 2014 18:29:55 +0000 (19:29 +0100)]
<sys/callout.h>: Remove obsolete struct callout_handle.

2 weeks agokernel/if_media: Add descriptions for MCS.
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.

2 weeks agotop(1): ability to display individual threads
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.

2 weeks agortld: Add a postinit debugger hook
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)

2 weeks agortld: Handle IFUNC symbols at non-PLT relocations
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)

2 weeks agortld: Add support for LD_LIBRARY_PATH_FDS env variable
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)

2 weeks agortld: Allows return pathname in dl_iterate_phdr dlpi_name
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)

2 weeks agortld: Fix LD_LIBMAP under libmap override
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)

2 weeks agoTesting teh bot 1 2 3
Antonio Huete Jimenez [Sun, 30 Nov 2014 16:18:30 +0000 (17:18 +0100)]
Testing teh bot 1 2 3

2 weeks agomountd - Ignore SIGPIPE instead of terminating the process.
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

2 weeks agomountd - Correctly loop over the mounted filesystems
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

2 weeks agomountd - Don't delete exports from network filesystems
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

2 weeks agomountd - Remove NI_WITHSCOPEID usage
Antonio Huete Jimenez [Sun, 30 Nov 2014 13:14:34 +0000 (14:14 +0100)]
mountd - Remove NI_WITHSCOPEID usage

Taken from: FreeBSD SVN 146187

2 weeks agomountd - Zero-out structure before calling mount()
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

2 weeks agomountd - Pass in an array of gid_t
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

2 weeks agomountd - Add new option -p <port>
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

2 weeks agomountd - Rename do_log -> dolog
Antonio Huete Jimenez [Sun, 30 Nov 2014 12:47:49 +0000 (13:47 +0100)]
mountd - Rename do_log -> dolog

Taken from: FreeBSD SVN 121767

2 weeks agomountd - Fix an error message
Antonio Huete Jimenez [Sun, 30 Nov 2014 12:39:04 +0000 (13:39 +0100)]
mountd - Fix an error message

Taken from: FreeBSD SVN 117684

2 weeks agorpc - Implement non-blocking connections
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

3 weeks agolibnetgraph7/netgraph.3: Correct a prototype.
Sascha Wildner [Sun, 30 Nov 2014 02:19:05 +0000 (03:19 +0100)]
libnetgraph7/netgraph.3: Correct a prototype.

3 weeks agolibm: Sync with FreeBSD (gains 6 long double functions)
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.

3 weeks agokernel/bwi: Fix a wrong conversion to the automatic sysctx ctx/tree setup.
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
3 weeks agokernel/bge: Fix a wrong conversion to the automatic sysctx ctx/tree setup.
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
3 weeks agolink_elf: Work around a GCC optimization bug. Fixes ddb stack traces.
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

3 weeks agokernel/acpi: Add two debug tunables, debug.acpi.{ignore_xsdt,fadt_addr32}.
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.

3 weeks agokernel: Remove the no longer used KTR_USB_MEMORY option.
Sascha Wildner [Sat, 29 Nov 2014 18:22:11 +0000 (19:22 +0100)]
kernel: Remove the no longer used KTR_USB_MEMORY option.

3 weeks agodloader: Add a new option for color loader, "fred_is_blue"
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.

3 weeks agodrm/i915: i915_gem_do_init() is i915_gem_init_global_gtt()
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.