summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* MFC r315639:ngie2017-03-271-0/+5
| | | | | | libcam: NULL out freed `ccb.cdm.matches` and `ccb.cdm.patterns` pointers This is being done to avoid potential double frees with the values.
* MFC r314245:ngie2017-03-271-3/+6
| | | | | | | | | | Fill MK_LIBTHR as far as lib/libthr is concerned There are other areas of the tree that will need to be evaluated for sanity if they're supposed to be conditionally compiled out of the build/install, like libzpool Relnotes: yes (this might break someone's system if have the knob set)
* MFC r315641,r315642:ngie2017-03-271-2/+4
| | | | | | | | | | | | | r315641: bsnmp: don't leak snmp_client.fd in open_client_udp(..) on connect(2) failure r315642: bsnmp: explicitly test the return value for open_client_{local,udp} in snmp_open(..) open_client_* returns -1 on failure; 0 on success. Ensure that the return value is 0 -- otherwise exit snmp_open(..).
* MFC r315690:ngie2017-03-271-4/+4
| | | | Delete trailing whitespace (no functional change)
* MFC r315595,r315601,r315603,r315647:ngie2017-03-273-5/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | r315595: Remove a commented out line before kvm_getprocs(3) The commented out return value for kvm_getprocs(3) was misleading -- the uncommented line is correct. No content change r315601: kvm_open2(3): remove '*' when describing addr argument for `resolver` As noted by vangyzen, with a similar issue in D10022, the pointer portion of the .Fa macro call is unnecessary, so remove the '*'. r315603: kvm_close(3): return `error` instead of blindly returning `0` `error` is the accumulated error from previous close(2) calls. This bug has been present since the libcall's import from 4.4BSD Lite (r1573). Noticed by: vangyzen (D10022) Relnotes: yes r315647: Handle kd == NULL gracefully with kvm_close(3) Don't segfault in kvm_close(3) if provided a NULL pointer. Instead, return -1 and set errno to EINVAL. Document this new behavior explicitly.
* MFC 315229: Remove remnant of r315163.mav2017-03-271-1/+0
|
* MFC r315878:kevlo2017-03-271-4/+0
| | | | | | | | Don't initialize if_output to ether_output(), ether_ifattach() does it for us already. While here, remove NOTYET code since if_watchdog is no longer used. Reviewed by: royger
* MFC 315529kp2017-03-261-0/+3
| | | | | | | | | | | | | | | | | | pf: Fix rule evaluation after inet6 route-to In pf_route6() we re-run the ruleset with PF_FWD if the packet goes out of a different interface. pf_test6() needs to know that the packet was forwarded (in case it needs to refragment so it knows whether to call ip6_output() or ip6_forward()). This lead pf_test6() to try to evaluate rules against the PF_FWD direction, which isn't supported, so it needs to treat PF_FWD as PF_OUT. Once fwdir is set correctly the correct output/forward function will be called. PR: 217883 Submitted by: Kajetan Staszkiewicz Sponsored by: InnoGames GmbH
* MFC r314942:bapt2017-03-261-0/+794
| | | | | | | | | | | Import the awk(1) manpage from OpenBSD As discussed during AsiaBSDcon devsummit, import the manpage from OpenBSD which is has been rewritten in mdoc(7) format making it readable by default with mandoc, it also has been extended by OpenBSD to cover all awk(1) options Obtained from: OpenBSD MFC: 1 week
* MFC r314903:bapt2017-03-261-3/+1
| | | | | Remove reference to GNU info hier(7) we have removed texinfo in FreeBSD 11.0
* MFC r314520:bapt2017-03-261-1/+2
| | | | | | | | | | Import dma snapshot from git 2017-02-10 The only change is: use basename to select executable identity PR: 216910 Submitted by: Andrej Ebert <andrej@ebert.su>
* MFC r314902:bapt2017-03-262-2/+1
| | | | | | texinfo is gone in r276551 remove the related directories Reported by: jbeich
* MFC r315053-r315054, r315056bapt2017-03-262-13/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | r315053: Add share/man if it exists to the MANPATH localbase is not consistent with base for manpages: /usr/local/man vs /usr/share/man adding share/man allows to fix that inconsistency and would permit to remove tons of patches/modifications in the ports tree r315054: Extend functionality MANPATH in man(1) to followup with apropos(1) from mandoc. If MANPATH begins with a colon, it is appended to the default list; if it ends with a colon, it is prepended to the default list; or if it contains two adjacent colons, the standard search path is inserted between the colons. If none of these conditions are met, it overrides the standard search path. Import the MANPATH description from mandoc into the man(1) man page Reported by: kargl MFC after: 1 week r315056: Remove the warning when MANPATH is set in the environment The MANPATH environment variable behaviour is documented properly in the manpage and it now has extended to new feature that allows to make MANPATH env variable extending the default search path rather than overwriting it making the warning painful Reported by: kargl MFC after: 1 week
* MFC r315571:bapt2017-03-264-4/+4
| | | | | | | | | | Canada adheres to ISO 8601, let's make the locale reflecting that fact PR: 200079 MFC after: 1 week Submitted by: Dan McGregor <dan.mcgregor@usask.ca> Reported by: A.J. Kehoe IV (Nanoman) <freebsd-bugs@nanoman.ca> Differential Revision: https://reviews.freebsd.org/D9925
* MFC r315161: Try to slight untangle I/O and loop status handling.mav2017-03-263-50/+14
|
* MFC r315160: Remove code for unsupported FreeBSD versions.mav2017-03-264-52/+1
|
* MFC r315163: Remove strange config_intrhook_establish() magic.mav2017-03-262-46/+0
| | | | | Interrupts are enabled as part of chip reset just during driver attach. Later "enabling" of already enabled interrupts is useless.
* MFC r315552:kib2017-03-261-1/+1
| | | | Fix off-by-one in the vm_fault_populate() code.
* MFC r315588:kib2017-03-261-2/+3
| | | | Update the list of cpudev ioctls which require write access.
* MFC r315586:kib2017-03-261-6/+9
| | | | Style.
* MFC r315412, r314852:badger2017-03-252-10/+219
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | r315412: Don't clear p_ptevents on normal SIGKILL delivery The ptrace() user has the option of discarding the signal. In such a case, p_ptevents should not be modified. If the ptrace() user decides to send a SIGKILL, ptevents will be cleared in ptracestop(). procfs events do not have the capability to discard the signal, so continue to clear the mask in that case. r314852: don't stop in issignal() if P_SINGLE_EXIT is set Suppose a traced process is stopped in ptracestop() due to receipt of a SIGSTOP signal, and is awaiting orders from the tracing process on how to handle the signal. Before sending any such orders, the tracing process exits. This should kill the traced process. But suppose a second thread handles the SIGKILL and proceeds to exit1(), calling thread_single(). The first thread will now awaken and will have a chance to check once more if it should go to sleep due to the SIGSTOP. It must not sleep after P_SINGLE_EXIT has been set; this would prevent the SIGKILL from taking effect, leaving a stopped orphan behind after the tracing process dies. Also add new tests for this condition. Sponsored by: Dell EMC
* MFC r315499:dchagin2017-03-251-3/+0
| | | | Remove superflous break statment.
* MFC r315503:dchagin2017-03-251-1/+1
| | | | | | | As noted by Roel Bouwman Linux allows a large buffer size than the struct ucred size. Fix this. PR: 102956
* MFC r315278:dchagin2017-03-251-2/+2
| | | | Fix usage of the same 'i' variable in the external and nested loops.
* MFC r313992, r314075, r314118, r315484:badger2017-03-258-100/+1315
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | r315484: ptrace_test: eliminate assumption about thread scheduling A couple of the ptrace tests make assumptions about which thread in a multithreaded process will run after a halt. This makes the tests less portable across branches, and susceptible to future breakage. Instead, twiddle thread scheduling and priorities to match the tests' expectation. r314118: Actually fix buildworlds other than i386/amd64/sparc64 after r313992 Disable offending test for platforms without a userspace visible breakpoint(). r314075: Fix world build for archs where __builtin_debugtrap() does not work. The offending code was introduced in r313992. r313992: Defer ptracestop() signals that cannot be delivered immediately When a thread is stopped in ptracestop(), the ptrace(2) user may request a signal be delivered upon resumption of the thread. Heretofore, those signals were discarded unless ptracestop()'s caller was issignal(). Fix this by modifying ptracestop() to queue up signals requested by the ptrace user that will be delivered when possible. Take special care when the signal is SIGKILL (usually generated from a PT_KILL request); no new stop events should be triggered after a PT_KILL. Add a number of tests for the new functionality. Several tests were authored by jhb. PR: 212607 Sponsored by: Dell EMC
* MFC r315745:dim2017-03-251-9/+1
| | | | | | | | | | | | | | | | | | | Cherry-pick libcxxrt commit 8a853717e61d5d55cbdf74d9d0a7545da5d5ff92: Author: David Chisnall <theraven@FreeBSD.org> Date: Wed Mar 22 12:27:08 2017 +0000 Simplify some code. realloc() with a null pointer is equivalent to malloc, so we don't need to handle the two cases independently. Fixes #46 This should help with lang/beignet and other programs, which expect __cxa_demangle(name, NULL, NULL, &status) to return zero in status. PR: 213732
* MFC r315689:dim2017-03-251-0/+4
| | | | | | | | Gcc has incompatible internal declarations for __divtc3 and __multc3 as defined in compiler-rt, but it has no option to silence its warning, so make gcc warnings for libcompiler_rt non-fatal. Noticed by: lwhsu
* MFC r315087, r315146:mav2017-03-251-20/+61
| | | | Improve ctl(4) description, including frontends and backends.
* MFC r315084: Increase device openings to tagged maximum.mav2017-03-251-5/+25
| | | | | | | | | | | Some SIMs report much less untagged device openings then tagged ones. Target mode devices are not handled by regular probing routines, and so there is nothing to increase queue size for them to the SIM's maximum. To fix that resize the queue explicitly on ctl periph registration. This radically improves performance of mpt(4) in target mode. Also fetch and report device queue statistics in `ctladm dumpstructs`, since regular way of `camcontrol tags` is not usable in target mode.
* MFC r315082: Allow XPT_GDEV_STATS for UNCONFIGURED devices.mav2017-03-251-29/+18
| | | | | Queue statistics has nothing to do with presence or absence of INQUIRY data, etc. Target mode devices are never configured, but have queues.
* MFC r315716grehan2017-03-251-1/+1
| | | | | | | Bring the handling of the y axis in the ums driver in-line with the other axes. No functional change.
* MFC r315715 Fix a type in bhyve's USB mouse emulation.grehan2017-03-251-1/+1
|
* MFC r315361 and r315364: Hide MONITORX/MWAITX from guests.grehan2017-03-253-1/+5
| | | | | | | | | | | | | | r315361 Add the AMD MONITORX/MWAITX feature definition introduced in Bulldozer/Ryzen CPUs. r315364 Hide the AMD MONITORX/MWAITX capability. Otherwise, recent Linux guests will use these instructions, resulting in #UD exceptions since bhyve doesn't implement MONITOR/MWAIT exits. This fixes boot-time hangs in recent Linux guests on Ryzen CPUs (and probably Bulldozer aka AMD FX as well).
* MFC r315694vangyzen2017-03-251-26/+36
| | | | | | | | | | clock_gettime.2: add some clock IDs Add the CLOCK_PROCESS_CPUTIME_ID and CLOCK_THREAD_CPUTIME_ID clock_id values to the clock_gettime(2) man page. Reformat the excessively long paragraph (sentence!) into a tag list. Sponsored by: Dell EMC
* Subset of upstream r902 which fixes custom prompts.des2017-03-242-5/+8
| | | | PR: 216172
* MFH (r313974,r314596): open .netrc early in case we want to drop privsdes2017-03-245-55/+77
| | | | | | | | MFH (r314396,r315143): fix a crash caused by an incorrect format string MFH (r314701): fix handling of 416 errors when requesting a range MFH (r315455): fix parsing of IP literals (square brackets) PR: 212065, 217723
* MFC r305383:mjg2017-03-241-1/+6
| | | | | | fd: fix up fdeget_file It was supposed to return NULL if a fp is not installed.
* MFC r315453:kib2017-03-241-1/+2
| | | | When clearing altsigstack settings on exec, do it to the right thread.
* MFC r315022: Request change of SIM target role only when it is different.mav2017-03-241-51/+51
| | | | Separate WWNs change into separate request to know what actually failed.
* MFC r315030: Abort all ATIOs and INOTs queued to SIM on LUN disable.mav2017-03-241-22/+45
| | | | | | | Some SIMs may not abort them implicitly, that either fail the LUN disable request or just make us wait for those CCBs forever. With this change I can successfully disable LUNs on mpt(4). For isp(4), which aborts them implicitly, this change should be irrelevant.
* MFC r315025: Switch work_queue from TAILQ to STAILQ.mav2017-03-241-14/+13
| | | | It is mostly FIFO and we don't need random removal there.
* MFC r314365davidcs2017-03-245-86/+318
| | | | | | | | | | | 1. state checks in bxe_tx_mq_start_locked() and bxe_tx_mq_start() to sync threads during interface down or detach. 2. add sysctl to set pause frame parameters 3. increase max segs for TSO packets to BXE_TSO_MAX_SEGMENTS (32) 4. add debug messages for PHY 5. HW LRO support restricted to FreeBSD versions 8.x and above. Submitted by: Vaishali.Kulkarni@cavium.com
* MFC r312932,r312933,r312949,r313141mjg2017-03-232-6/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | (by cognet) Use strexeq instead of needlessly branch. == (by cognet) Remove useless labels. == (by cognet) Correct the IT instruction in atomic_fcmpset_64(). == (by andrew) Only define atomic_fcmpset_long in the kernel. We may include machine/atomic.h in userspace, however atomic_fcmpset_32 is unimplemented there.
* MFC r314814 and r315325.np2017-03-231-8/+27
| | | | | | | | | | | | | r314814: cxgbe/iw_cxgbe: Abort connection if there is an error during c4iw_modify_qp. r315325: cxgbe/iw_cxgbe: Use the socket and not the toepcb to reach for the inpcb. t4_tom detaches the inpcb from the toepcb as soon as the hardware is done with the connection (in final_cpl_received) but the socket is around as long as the cm_id and the rest of iWARP state is. This fixes an intermittent NULL dereference during abort.
* MFC r315423:smh2017-03-232-1/+2
| | | | | | Fix libsysdecode vmprot flag decoding Sponsored by: Multiplay
* MFC r315076: zfs: provide a special vptocnp method for the .zfs vnodeavg2017-03-231-0/+23
|
* add UPDATING entry for r315842, MFC of re-worked .zfs codeavg2017-03-231-0/+6
|
* MFC r314048,r314194: reimplement zfsctl (.zfs) supportavg2017-03-2312-2751/+756
|
* MFC r315083: aacraid: fix build with AACRAID_DEBUG=2avg2017-03-231-1/+5
|
* MFC r315075: trace thread running state when a thread is run for the first timeavg2017-03-232-0/+8
|
OpenPOWER on IntegriCloud