Go to file
bouyer e78e077985 Fix /kern/xen/xenbus handling. It's badly broken and will do bad things
if more than one thread tries to use it at the same time (hang, memory leak,
panic).
In a kernfs node, the fileops (open, close, read, write) gets a vnode,
but no way to know the file descriptor from which the request comes from.
As /kern/xen/xenbus interface is statefull (write sends a command and read
gets the response), a way to track "clients" is needed.
This commit implement states using the lwp pointer from the caller as a key.
It will fail (with an error) if a kernfs file descriptor is reused by a child
after a fork(), or if a file descriptor is shared by two threads of the same
process but fortunably the xen tools using this interface don't do this.

This should fixes occasional hangs of the Xen tools (one in "xbrd" state,
others in tstile) reported on port-xen by Alaric Snell-Pym.
2017-03-22 21:21:39 +00:00
bin Add includes guards since we can include the header twice and typedef 2017-03-21 10:52:46 +00:00
common Fix commas in NAME section. 2017-03-07 19:10:07 +00:00
compat Don't mix abis in any CRUNCHEDPROG 2017-01-05 21:28:42 +00:00
crypto Revert "Remove a useless loop around getpass()" 2017-02-24 01:26:17 +00:00
dist/pf PR 50709 David Binderman: memory leak 2016-05-30 17:21:07 +00:00
distrib Bump image size to unbreak builds. 2017-03-18 17:07:04 +00:00
doc tzdata updated to 2017b. 2017-03-21 19:26:40 +00:00
etc Clear rc variables that contain state that is gone after the boot process 2017-03-21 22:52:10 +00:00
external Merge tzdata2017b 2017-03-21 19:24:22 +00:00
extsrc
games elide compiler stupidity. 2017-03-20 22:05:27 +00:00
gnu has moved to external/gpl3 2016-01-16 18:41:12 +00:00
include Add fenv for ia64, imported from FreeBSD, compile tested only. 2017-02-23 02:05:30 +00:00
lib Unbreak build, init variable (not a false alarm for this one.) 2017-03-22 19:36:04 +00:00
libexec Revert to version 1.55 of map_object.c. This reverts: 2017-03-10 09:13:49 +00:00
regress need <sys/stat.h> 2017-01-10 22:37:44 +00:00
rescue vnconfig(8) was renamed to vndconfig(8) some time ago, and most places 2016-08-04 03:50:55 +00:00
sbin expand a little the explanation about discard 2017-03-22 21:14:11 +00:00
share Fix some typos. 2017-03-22 09:38:10 +00:00
sys Fix /kern/xen/xenbus handling. It's badly broken and will do bad things 2017-03-22 21:21:39 +00:00
tests Skip the "migrate" test on architectures not natively using MBR, it 2017-03-22 19:13:40 +00:00
tools refresh 2017-02-24 03:44:54 +00:00
usr.bin Simplify. 2017-03-21 13:56:38 +00:00
usr.sbin Change duplicate 'D' option to 'm'. From Ed Maste @ FreeBSD 2017-03-15 15:33:54 +00:00
build.sh State the reason script bombed. 2017-03-10 17:15:47 +00:00
BUILDING regen 2017-02-20 21:28:48 +00:00
Makefile fix direct reference to texinfo, bleh 2016-01-14 02:51:25 +00:00
Makefile.inc
UPDATING Remove entry for "TRAP_HWWPT renamed to TRAP_DBREG" from UPDATING 2017-02-17 21:34:19 +00:00