summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Take care to handle the full 16 byte buffer in the get/put routines. Also,andreast2013-11-261-8/+26
| | | | | | | skip the VTERM header once when receiving data from the hypervisor call when we have a HVTERMPROT connection. MFC after: 1 week
* The Data Byte Count (DBC) field of a Physical Region Descriptorgrehan2013-11-261-11/+21
| | | | | | | | | | | | | Table is 22 bits, with the bit 31 being the interrupt-on-completion bit. OpenBSD and UEFI set this bit, resulting in large block i/o lengths being sent to bhyve and coredumping the process. Fix by masking off the relevant 22 bits when using the DBC field as a length. Reviewed by: Zhixiang Yu Discussed with: Tycho Nightingale (tycho.nightingale@pluribusnetworks.com) MFC after: 10.0
* Refactor out the sendfile copyout in order to make vn_sendfile()adrian2013-11-261-3/+6
| | | | | | | | | | | | | | | callable from the kernel. Right now vn_sendfile() can't be called from anything other than a syscall handler _and_ return the number of bytes queued. This simply moves the copyout() to do_sendfile() so that any kernel code can initiate vn_sendfile() outside of a syscall context. Tested: * tiny little sendfile program spitting things out a tcp socket Sponsored by: Netflix, Inc.
* The bssid can change from underneath us, so take a reference beforeadrian2013-11-261-3/+10
| | | | we fiddle with it.
* Adjust introduction history.pluknet2013-11-251-2/+2
| | | | | | | Dump .Dd for this and previous changes. Discussed with: trasz MFC after: 3 days
* Fix discrepancy between the IOAPIC ID advertised by firmware tables and theneel2013-11-252-3/+3
| | | | | | | actual value read by the guest from the device. The IOAPIC ID is now set to zero in both MPtable/ACPI tables as well as in the ioapic device emulation. Pointed out by: grehan@
* iostat: fix extracting TTY statistics from core.pluknet2013-11-251-6/+6
| | | | MFC after: 1 week
* Convert over the TCP probes to use mtod() rather than directlyadrian2013-11-252-10/+11
| | | | | | dereferencing m->m_data. Sponsored by: Netflix, Inc.
* Import apr-util-1.5.3 from vendor branch (rr258600)peter2013-11-2521-306/+126
| | | | This is a minor bug fix release.
* When append-only, immutable or read-only flag is set don't allow forpjd2013-11-251-0/+5
| | | | | | | hard links creation. This matches UFS behaviour. Reported by: Oleg Ginzburg <olevole@olevole.ru> MFC after: 1 month
* Fix double free().pjd2013-11-251-3/+1
| | | | | Reported by: Coverity Coverity CID: 1130048
* Sort messages.dteske2013-11-256-29/+29
|
* In vnet_route_uninit(), free some memory that is allocated in vnet_route_init().rodrigc2013-11-251-0/+3
| | | | | | | | | | | | | | To reproduce the problem: (1) Take a GENERIC kernel config, and add options for: VIMAGE, WITNESS, INVARIANTS. (2) Run this command in a loop: jail -l -u root -c path=/ name=foo persist vnet && jexec foo ifconfig lo0 127.0.0.1/8 && jail -r foo see: http://lists.freebsd.org/pipermail/freebsd-current/2010-November/021280.html http://lists.freebsd.org/pipermail/freebsd-current/2010-November/021291.html This doesn't eliminate all the "Freed UMA keg was not empty" warning messages on the console, but it helps.
* Add missing newline to printf format string.dteske2013-11-251-2/+2
|
* Add missing `$' before variable name `pgm'. Unnoticed unless runningdteske2013-11-251-1/+1
| | | | parallel concurrent copies of `bsdconfig syscons_ttys'.
* In sys/netpfil/ipfw/ip_fw_nat.c:vnet_ipfw_nat_uninit() we call ↵rodrigc2013-11-251-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | "IPFW_WLOCK(chain);". This lock gets deleted in sys/netpfil/ipfw/ip_fw2.c:vnet_ipfw_uninit(). Therefore, vnet_ipfw_nat_uninit() *must* be called before vnet_ipfw_uninit(), but this doesn't always happen, because the VNET_SYSINIT order is the same for both functions. In sys/net/netpfil/ipfw/ip_fw2.c and sys/net/netpfil/ipfw/ip_fw_nat.c, IPFW_SI_SUB_FIREWALL == IPFW_NAT_SI_SUB_FIREWALL == SI_SUB_PROTO_IFATTACHDOMAIN and IPFW_MODULE_ORDER == IPFW_NAT_MODULE_ORDER Consequently, if VIMAGE is enabled, and jails are created and destroyed, the system sometimes crashes, because we are trying to use a deleted lock. To reproduce the problem: (1) Take a GENERIC kernel config, and add options for: VIMAGE, WITNESS, INVARIANTS. (2) Run this command in a loop: jail -l -u root -c path=/ name=foo persist vnet && jexec foo ifconfig lo0 127.0.0.1/8 && jail -r foo (see http://lists.freebsd.org/pipermail/freebsd-current/2010-November/021280.html ) Fix the problem by increasing the value of IPFW_NAT_SI_SUB_FIREWALL, so that vnet_ipfw_nat_uninit() runs after vnet_ipfw_uninit().
* Move the iconv wrapper source from libc_nonshared to libc/iconv so thatpeter2013-11-2517-331/+350
| | | | | | | | it is all in the one place again. Rename libc/iconv/iconv.c to bsd_iconv.c. Compile the wrappers into libc.a so that WITHOUT_DYNAMICROOT works again. Discussed with: kib (and partly stolen from his patch)
* Add missing cards now supported by iwn.eadler2013-11-251-0/+9
|
* There is no file under SISSL after license replacement in r258581.hrs2013-11-251-335/+0
|
* Replace Sun Industry Standards Source License for Sun RPC code with ahrs2013-11-254-176/+96
| | | | | | 3-clause BSD license as specified by Oracle America, Inc. in 2010. This license change was approved by Wim Coekaerts, Senior Vice President, Linux and Virtualization at Oracle Corporation.
* Replace Sun RPC license in TI-RPC library with a 3-clause BSD license,hrs2013-11-251-26/+25
| | | | with the explicit permission of Sun Microsystems in 2009.
* Add HPET device emulation to bhyve.neel2013-11-2511-11/+950
| | | | | | | | | | | bhyve supports a single timer block with 8 timers. The timers are all 32-bit and capable of being operated in periodic mode. All timers support interrupt delivery using MSI. Timers 0 and 1 also support legacy interrupt routing. At the moment the timers are not connected to any ioapic pins but that will be addressed in a subsequent commit. This change is based on a patch from Tycho Nightingale (tycho.nightingale@pluribusnetworks.com).
* Replace Sun RPC license in TI-RPC library with a 3-clause BSD license,hrs2013-11-25102-2673/+2576
| | | | with the explicit permission of Sun Microsystems in 2009.
* Only initialize some mutexes for the default VNET.rodrigc2013-11-251-2/+8
| | | | | | | | | | | | | | | | | | | In r208160, sctp_it_ctl was made a global variable, across all VNETs. However, sctp_init() is called for every VNET that is created. This results in the same global mutexes which are part of sctp_it_ctl being initialized. This can result in crashes if many jails are created. To reproduce the problem: (1) Take a GENERIC kernel config, and add options for: VIMAGE, WITNESS, INVARIANTS. (2) Run this command in a loop: jail -l -u root -c path=/ name=foo persist vnet && jexec foo ifconfig lo0 127.0.0.1/8 && jail -r foo (see http://lists.freebsd.org/pipermail/freebsd-current/2010-November/021280.html ) Witness will warn about the same mutex being initialized. Fix the problem by only initializing these mutexes in the default VNET.
* MFV: removes strict-aliasing warnings from GCC in tcpdump.pfg2013-11-251-14/+39
| | | | | | Reported by: tinderbox (gjb) Submitted by: glebius MFC after: 2 weeks
* pmc(3) does not document a dependency on <sys/types.h> but <pmc.h>rstone2013-11-251-0/+1
| | | | | | requires it, so include it explicitly from <pmc.h>. MFC after: 1 month
* Change sysinstall.8 references to bsdinstall.8.rodrigc2013-11-254-8/+8
| | | | Submitted by: skreuzer
* Import svn-1.8.5. This contains a user-visible fix for svn:externalspeter2013-11-2517-112/+103
| | | | | handling (there are no svn:externals in freebsd repo), and two security fixes for modules that we don't build for the apache http server stack.
* Replace Sun RPC license with a 3-clause BSD license, with the explicithrs2013-11-259-243/+234
| | | | permission of Sun Microsystems in 2009.
* drm: Fix build with gcc, broken with r258549dumbbell2013-11-251-2/+2
| | | | | | | | The code was easier to read without __DECONST and clang didn't report any error. I thought the cast was enough... MFC after: 3 days X-MFC-With: r258549
* Generate plain sh test programs from a source file.jmmv2013-11-252-0/+10
| | | | | | | | | | | | | | Instead of assuming that plain sh test programs exist in the source tree in their final form and are marked as executable, generate them from a list of sources. By default, just assume that the source file for a program P is P.sh but allow the caller to customize the inputs. Similarly, also allow the caller to apply sed(1) replacements on the output. These will both be useful in hooking existing test code from tools/regression/ into the test suite. Approved by: rpaulo (mentor)
* Install plain.test.mk.jmmv2013-11-251-0/+1
| | | | | | | | This was missed when this file was first imported. Its atf.test.mk counterpart is already being installed and these are necessary if we want "make" within the source tree (not via "buildworld") to work. Approved by: rpaulo (mentor)
* Do not create pkg.conf, as it is not necessary anymore and packagesite is ↵bapt2013-11-251-24/+0
| | | | | | | deprecated Reported by: glebius MFC after: 3 days
* drm: Dereference pointers given to qsort_r()'s cmp callbackdumbbell2013-11-251-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | drm_le_cmp() (qsort_r()'s callback) receives pointers to elements in the array passed to qsort_r(), not the elements themselves. Before this fix, the use of qsort_r() shuffled the array, not sorted it, because the compare callback accessed random memory locations, not the expected elements. This bug triggered an infinite loop in KDE/xserver: 1. KDE has a kded module called "randrmonitor" which queries xserver for current monitors at startup and then listens to RandR notifications from xserver. 2. xserver handles the query from "randrmonitor" by polling the video device using the "drm_mode_getconnector()" ioctl. This ioctl returns a list of connectors and, for those with a connected monitor, the available modes. Each modes list is sorted by the kernel before returning. When xserver gets the connectors list, it sorts the modes lists again. In the case of this bug, when two modes are equal (in xserver's compare function PoV), their order is kept stable (ie. the kernel order is kept for those two modes). And because the list was shuffled by the kernel, the order of two equal modes was frequently changed in the final modes list in xserver. 3. xserver compares the returned connectors list with the list obtained earlier. In particular, it compares the sorted modes lists for each connector. If a property of a connector changes (eg. modes), xserver sends a "RRNotify_OutputChange" notification. Because of the change of order between equal modes, xserver sent a notification after each polling of the connectors. 4. "randrmonitor" receives a notification, triggered by its query. The notification doesn't contain the new connectors list, therefore, it asks for the new list using the same function: go back to step #2. MFC after: 3 days
* Enable reset mechanism for rk3188.ganbold2013-11-251-1/+4
| | | | Approved by: ray@
* Add clock frequency for rk3188 watchdog.ganbold2013-11-251-7/+8
| | | | | | Whilst here, replace "clocks" to "clock-frequency". Approved by: ray@
* Add watchdog driver for rk3188.ganbold2013-11-253-0/+234
| | | | Approved by: ray@
* Comply to the XHCI specification. Certain input context fields shouldhselasky2013-11-251-1/+5
| | | | | | always be zero. MFC after: 1 week
* - For kernel compiled only with KDTRACE_HOOKS and not any lock debuggingattilio2013-11-25120-152/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | option, unbreak the lock tracing release semantic by embedding calls to LOCKSTAT_PROFILE_RELEASE_LOCK() direclty in the inlined version of the releasing functions for mutex, rwlock and sxlock. Failing to do so skips the lockstat_probe_func invokation for unlocking. - As part of the LOCKSTAT support is inlined in mutex operation, for kernel compiled without lock debugging options, potentially every consumer must be compiled including opt_kdtrace.h. Fix this by moving KDTRACE_HOOKS into opt_global.h and remove the dependency by opt_kdtrace.h for all files, as now only KDTRACE_FRAMES is linked there and it is only used as a compile-time stub [0]. [0] immediately shows some new bug as DTRACE-derived support for debug in sfxge is broken and it was never really tested. As it was not including correctly opt_kdtrace.h before it was never enabled so it was kept broken for a while. Fix this by using a protection stub, leaving sfxge driver authors the responsibility for fixing it appropriately [1]. Sponsored by: EMC / Isilon storage division Discussed with: rstone [0] Reported by: rstone [1] Discussed with: philip
* Add ICONV_{GET,SET}_ILSEQ_INVALID iconvctl. GNU iconv returns EILSEQhrs2013-11-255-1/+45
| | | | | | | | | | | | when there is an invalid character in the output codeset while it is valid in the input. However, POSIX requires iconv() to perform an implementation-defined conversion on the character. So, Citrus iconv converts such a character to a special character which means it is invalid in the output codeset. This is not a problem in most cases but some software like libxml2 depends on GNU's behavior to determine if a character is output as-is or another form such as a character entity (&#NNN;).
* sh: Make <&0 disable the </dev/null implicit in a background command.jilles2013-11-243-4/+10
| | | | | | Although <&0 does nothing, it is a redirection affecting standard input and should therefore disable the </dev/null redirection implicit in a background command.
* Fix typo in comment.gavin2013-11-241-1/+1
|
* sh: Add more tests for the </dev/null implicit in a background command.jilles2013-11-243-0/+15
|
* platform_devmap_init() was renamed initarm_devmap_init() in r257669, updategavin2013-11-242-3/+3
| | | | comments to match.
* libcpp: Keep a record of changes from upstream GCC (pre-43).pfg2013-11-241-0/+29
| | | | | | | This makes it easier to track the changes in the rare event of the code being distributed without access to version control. MFC after: 3 weeks
* Recent versions of U-Boot require us to also backup and restore r9 for APIandrew2013-11-241-6/+12
| | | | calls to work.
* gcc: Missing makefile changes for r258501.pfg2013-11-242-3/+4
| | | | pointyhat: me
* Save and restore the trap vectors when doing OF calls on pSeries machines.andreast2013-11-233-0/+38
| | | | | | | | | | | It turned out that on pSeries machines the call into OF modified the trap vectors and this made further behaviour unpredictable. With this commit I'm now able to boot multi user on a network booted environment on my IntelliStation 285. This is a POWER5+ machine. Discussed with: nwhitehorn MFC after: 1 week
* Limit the large page size to 16MB for now.andreast2013-11-231-0/+5
| | | | MFC after: 1 week
* Get rid of the CONCAT macro.andreast2013-11-232-19/+19
|
OpenPOWER on IntegriCloud