summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
| * MFC r319074:trasz2017-06-062-11/+10
| | | | | | | | | | | | | | | | Minor tweaks to iscsi(4) and iscsid(8). This is mostly wording and clarification of the userspace/kernel split. Approved by: re (gjb)
| * MFC r318943 (avg):gjb2017-06-061-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | MFV r318942: 8166 zpool scrub thinks it repaired offline device https://www.illumos.org/issues/8166 If we do a scrub while a leaf device is offline (via "zpool offline"), we will inadvertently clear the DTL (dirty time log) of the offline device, even though it is still damaged. When the device comes back online, we will incompletely resilver it, thinking that the scrub repaired blocks written before the scrub was started. The incomplete resilver can lead to data loss if there is a subsequent failure of a different leaf device. The fix is to never clear the DTL of offline devices. Note that if a device is onlined while a scrub is in progress, the scrub will be restarted. The problem can be worked around by running "zpool scrub" after "zpool online". See also https://github.com/zfsonlinux/zfs/issues/5806 PR: 219537 Approved by: re (kib) Sponsored by: The FreeBSD Foundation
| * MFC r319073:trasz2017-06-061-4/+12
| | | | | | | | | | | | | | | | Random tweaks to cfiscsi(4) man page. This improves wording and adds a few Xrs. Approved by: re (gjb)
| * Revert r319607, which documents items that existed in 11.0-RELEASE.gjb2017-06-061-9/+0
| | | | | | | | | | | | Submitted by: jhb Approved by: re (implicit) Sponsored by: The FreeBSD Foundation
| * MFC r319072:trasz2017-06-061-2/+5
| | | | | | | | | | | | Make ctld(8) mention cfiscsi(4). Approved by: re (marius)
| * MFC r318816:trasz2017-06-068-8/+8
| | | | | | | | | | | | Don't end up manpage titles with a full stop. Approved by: re (marius)
| * MFC r318861:trasz2017-06-061-0/+2
| | | | | | | | | | | | Create /net by default, for autofs. Approved by: re (kib)
| * MFC r318398:trasz2017-06-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | Bump default MAXTSIZ (kern.maxtsiz) from 128MB to 32GB. The old limit prevents one from running eg clang built with debug; the new one is arbitrary (equal to MAXDSIZ) and... well, should be quite future-proof. Same fix might be applicable to other 64 bit architectures; I'll ask their respective maintainers to make sure it won't break anything. Approved by: re (kib)
| * MFC r319369:delphij2017-06-069-30/+96
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * limit size of buffers to RPC_MAXDATASIZE * don't leak memory * be more picky about bad parameters From: https://raw.githubusercontent.com/guidovranken/rpcbomb/master/libtirpc_patch.txt https://github.com/guidovranken/rpcbomb/blob/master/rpcbind_patch.txt via NetBSD. Approved by: re (kib)
| * Document r295930, truss(1) '-H' flag.gjb2017-06-051-0/+9
| | | | | | | | | | | | | | | | Document r308154, cxgbe(4) additional virtual interface support. Submitted by: jhb Approved by: re (implicit) Sponsored by: The FreeBSD Foundation
| * MFC r319118:ae2017-06-058-30/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Disable IPsec debugging code by default when IPSEC_DEBUG kernel option is not specified. Due to the long call chain IPsec code can produce the kernel stack exhaustion on the i386 architecture. The debugging code usually is not used, but it requires a lot of stack space to keep buffers for strings formatting. This patch conditionally defines macros to disable building of IPsec debugging code. IPsec currently has two sysctl variables to configure debug output: * net.key.debug variable is used to enable debug output for PF_KEY protocol. Such debug messages are produced by KEYDBG() macro and usually they can be interesting for developers. * net.inet.ipsec.debug variable is used to enable debug output for DPRINTF() macro and ipseclog() function. DPRINTF() macro usually is used for development debugging. ipseclog() function is used for debugging by administrator. The patch disables KEYDBG() and DPRINTF() macros, and formatting buffers declarations when IPSEC_DEBUG is not present in kernel config. This reduces stack requirement for up to several hundreds of bytes. The net.inet.ipsec.debug variable still can be used to enable ipseclog() messages by administrator. PR: 219476 MFC r319412: Build kdebug_secreplay() function only when IPSEC_DEBUG is defined. This should fix the build on sparc. Approved by: re (kib)
| * MFC r319052:dchagin2017-06-042-0/+3
| | | | | | | | | | | | | | Strip _binary_linux_locore_o_size from ${VDSO}.so as it is a low absolute symbol, and this breaks symbol lookup in ddb. Approved by: re (kib)
| * MFC r317601:dchagin2017-06-041-1/+1
| | | | | | | | | | | | | | Fix symlinkat() which use the newdfd argument to look up the old path, while it should use it for the new path instead. Approved by: re (kib)
| * MFC r318194,r319481:bdrewery2017-06-041-1/+5
| | | | | | | | | | | | | | | | | | r318194: Tell bmake (meta mode) to ignore changes to /usr/local/etc/libmap.d/* r319481: META_MODE: Move ignoring of /usr/local/etc/libmap.d to proper place. Approved by: re (gjb)
| * MFC r319413:hselasky2017-06-041-3/+2
| | | | | | | | | | | | | | | | | | | | Free hardware queue resource after port is stopped in the mlx4en(4) driver. Else if the port is up the resource might still be busy and the MTT free will fail. PR: 216493 Approved by: re (kib) Sponsored by: Mellanox Technologies
| * MFC r319414:hselasky2017-06-041-30/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | Allow communication between functions on the same host when using the mlx4en(4) driver in SRIOV mode. Place a copy of the destination MAC address in the send WQE only under SRIOV/eSwitch configuration or when the device is in selftest. This allows communication between functions on the same host. PR: 216493 Approved by: re (kib) Sponsored by: Mellanox Technologies
| * MFC r319294:ngie2017-06-041-3/+4
| | | | | | | | | | | | | | | | | | | | Approved by: re (gjb) Fix "make rebase" after ^/head@r315776 "make rebase" can be used for rebasing the output files from mkimg after making a change to mkimg. This will come in handy soon, per bug 219673.
| * MFC r316503,r316504,r316505:ngie2017-06-031-17/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Approved by: re (gjb) r316503: Clean up trailing whitespace r316504: Clean up more trailing whitespace in the licensing tort that happened to be spaces, not tabs r316505: Don't assume NAME_MAX is 255 Query the filesystem limit via getconf(3) instead
| * MFC r318974: uart: add AMT SOL PCI IDemaste2017-06-031-0/+1
| | | | | | | | | | | | | | I adjusted the description to be similar to existing AMT entries. PR: 219384 Approved by: re (gjb)
| * MFC r312919 (by rwatson)asomers2017-06-021-8/+8
| | | | | | | | | | | | | | | | Fix build of aio_test on MIPS, where the compiler warns about the local variable 'err' shadowing the global function err(3). Which it does. Sponsored by: DARPA, AFRL Approved by: re
| * Document r319388, cxgbetool(8) addition.gjb2017-06-021-0/+4
| | | | | | | | | | | | Submitted by: jhb Approved by: re (implicit) Sponsored by: The FreeBSD Foundation
| * MFC r318734:ae2017-06-025-39/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix possible double releasing for SA reference. There are two possible ways how crypto callback are called: directly from caller and deffered from crypto thread. For inbound packets the direct call chain is the following: IPSEC_INPUT() method -> ipsec_common_input() -> xform_input() -> -> crypto_dispatch() -> crypto_invoke() -> crypto_done() -> -> xform_input_cb() -> ipsec[46]_common_input_cb() -> netisr_queue(). The SA reference is held while crypto processing is not finished. The error handling code wrongly expected that crypto callback always called from the crypto thread context, and it did SA reference releasing in xform_input_cb(). But when the crypto callback called directly, in case of error (e.g. data authentification failed) the error handling in ipsec_common_input() also did SA reference releasing. To fix this, remove error handling from ipsec_common_input() and do it in xform_input() before crypto_dispatch(). PR: 219356 MFC r318738: Fix possible double releasing for SA and SP references. There are two possible ways how crypto callback are called: directly from caller and deffered from crypto thread. For outbound packets the direct call chain is the following: IPSEC_OUTPUT() method -> ipsec[46]_common_output() -> -> ipsec[46]_perform_request() -> xform_output() -> -> crypto_dispatch() -> crypto_invoke() -> crypto_done() -> -> xform_output_cb() -> ipsec_process_done() -> ip[6]_output(). The SA and SP references are held while crypto processing is not finished. The error handling code wrongly expected that crypto callback always called from the crypto thread context, and it did references releasing in xform_output_cb(). But when the crypto callback called directly, in case of error the error handling code in ipsec[46]_perform_request() also did references releasing. To fix this, remove error handling from ipsec[46]_perform_request() and do it in xform_output() before crypto_dispatch(). Approved by: re (kib)
| * MFC r318210,r318211:ngie2017-06-021-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Approved by: re (gjb) r318210: ssp_test:read:: query the value of MAXPATHLEN via getconf(1) In the event the value of PATH_MAX was changed, the assumption that MAXPATHLEN is 1024 (and hence the buffer length required to trigger SSP to fail for read(2)) would be invalidated. Query getconf(1) for the actual value of MAXPATHLEN via _XOPEN_PATH_MAX instead, and increment the value by 1 to ensure that the SSP support tests the stack smashing support properly. r318211: Fix up previous commit - Apply the logic to the FreeBSD block - Fix a typo with the getconf(1) call that I would have caught, were it not for the fact that I got the blocks wrong. - Consolidate the hardcoded buffer sizes to the NetBSD block. This would have been discovered had I run the test on a system where PATH_MAX != 1024 (I don't have that at my disposal right at this moment). MFC with: r318210
| * MFC r319167:mjg2017-06-011-4/+4
| | | | | | | | mtx: fix whitespace damage in _mtx_trylock_flags_
| * MFC r318676davidcs2017-06-011-1/+2
| | | | | | | | | | | | Check for IPV6 TCP/UDP CSUM offload in pkt header during transmits. Submitted by:Shminderjit.Singh@cavium.com
| * Note groff(1) is planned for deprecation as of 12.0.gjb2017-06-011-0/+5
| | | | | | | | | | Submitted by: rgrimes Sponsored by: The FreeBSD Foundation
| * MFC r318895: Fix several problems with mapping code in mps(4).slm2017-06-0114-881/+1778
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | MFC r318896: Fix several problems with mapping code in mpr(4). -Add several comments describing what the mapping code is doing. -Added a callout timer to improve check for missing devices when discovery has completed so that missing counts are incremented correctly. -Fix problems with missing counts not being saved to the HBA. -Update man pages mps(4) and mpr(4) to include a description of the use use_phy_num sysctl variable. -Remove channel field in the mapping structure because it's not used. -Improve logging by using mps_dprint or mpr_dprint instead of printf and adding more logging where appropriate. -Add check for a bad index before writing mapping entries to controller. -The high missing count check in the mapping table was using the incorrect initial value, which could lead to a bad result. -The usage of the IN_USE flag for volume mapping was changed to be more intuitive, and was not being used correctly. -The check for a free DPM entry was changed, as this was completely wrong. -Updates to the missing count for volumes were not being done correctly, so this function was completely rewritten. -_mapping_add_to_removal_table() was overly complicated and incorrectly used, so this function was rewritten. -Missing counts for all devices were not being incremented properly, so this functionality was added. -The search for space in the mapping table for missing enclosures was not calculating the found space correctly due to not breaking out of a loop when required, and the num_found variable was not being reset when needed. -Retries when a device fails to get added due to a full mapping table were removed because this is unneccessary. -mps_mapping_is_reinit_required() and mpr_mapping_is_reinit_required() were removed because they were not being used. -Some functions were renamed to avoid confusion between Target IDs and SAS IDs. -_mapping_check_update_ir_mt_idx() was removed because it was overly complicating volume mapping. -The setting of the maxtargets variable was changed to include max volumes. -The setting of the initiator_id variable was changed to be the invalid target ID after all targets, including volumes. Previously, this was set to the last valid target ID. -Don't exclude target IDs of RAID components or check for a reuse of a target ID for RAID components. -Some endienness was added. Approved by: ken, mav
| * MFC r318582vangyzen2017-06-015-19/+10
| | | | | | | | | | | | | | | | | | | | | | Remove old spinlock_debug code from libc This no longer seems useful. Remove it. This was prompted by a "cast discards volatile qualifier" warning in libthr when WARNS=6. Sponsored by: Dell EMC
| * Document r319435, mpr(4) tri-mode support.gjb2017-06-011-1/+4
| | | | | | | | Sponsored by: The FreeBSD Foundation
| * Reorder the NAT_T and IPSEC_NAT_T sentences.gjb2017-06-011-4/+4
| | | | | | | | | | Submitted by: bjk Sponsored by: The FreeBSD Foundation
| * Fix grammar: s/warning/warnings/gjb2017-06-011-2/+3
| | | | | | | | | | Submitted by: bjk Sponsored by: The FreeBSD Foundation
| * Fix a grammar nit.gjb2017-06-011-1/+1
| | | | | | | | | | Submitted by: bjk Sponsored by: The FreeBSD Foundation
| * MFC r308217, r308301, r311958, r312437, r318188, r318427, r318679slm2017-06-0127-401/+3943
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | r308217: Add a fallback to the device mapper logic. We've seen systems in the field that are apparently misconfigured by the manufacturer and cause the mapping logic to fail. The fallback allows drive numbers to be assigned based on the PHY number that they're attached to. Add sysctls and tunables to overrid this new behavior, but they should be considered only necessary for debugging. Reviewed by: imp, smh Obtained from: Netflix MFC after: 3 days Sponsored by: D8403 r308301: Record the LogInfo field when reporting the IOCStatus. Helps in debugging errors. Submitted by: slm Obtained from: Netflix MFC after: 3 days r311958: Print out the number of queues/MSIx vectors. Sponsored by: Netflix r312437: Rework the debug print API. Event printing no longer gets special handling. All of the printing from the tables file now has wrappers so that the handling is cleaner and it's possible to print something out (say, during development) without having to fight the global debug flags. This re-org will also make it easier to have the tables be compiled out at build time if desired. Other than fixing some minor bugs, there are no user-visible changes from this change Sponsored by: Netflix, Inc. Differential Revision: D9238 r318188: Improve error messages during command timeout for the mpr and mps drivers. Sponsored by: Netflix r318427: Add tri-mode support (SAS/SATA/PCIe). This includes NVMe device support and adds support for the following adapters: SAS 3408 SAS 3416 SAS 3508 SAS 3516 SAS 3616 SAS 3708 SAS 3716 Reviewed by: ken, scottl, asomers, mav Approved by: ken, scottl, mav MFC after: 2 weeks Relnotes: yes Differential Revision: https://reviews.freebsd.org/D10095 r318679: Fix powerpc compiler error. Approved by: ken
| * MFC r318954vangyzen2017-06-015-25/+0
| | | | | | | | | | | | | | | | | | rtld: fix warnings about redundant declarations Fix warnings about redundant declarations in rtld when libthr in increased to WARNS=6. Sponsored by: Dell EMC
| * When a SYN-ACK is received in SYN-SENT state, RFC 793 requires thetuexen2017-06-012-14/+38
| | | | | | | | | | | | | | | | | | | | | | validation of SEG.ACK as the first step. If the ACK is not acceptable, a RST segment should be sent and the segment should be dropped. Up to now, the segment was partially processed. This patch moves the check for the SEG.ACK validation up to the front as required. Reviewed by: hiren, gnn Differential Revision: https://reviews.freebsd.org/D10424
| * MFC r318539 r318580 r318581 r318584 r318749 r318952 r318953 r318955vangyzen2017-06-0119-68/+109
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | libthr: fix warnings at WARNS=6 Fix warnings about the following when WARNS=6 (which I will commit soon): - casting away const - no previous 'extern' declaration for non-static variable - others as explained by #pragmas and comments - unused parameters libthr: disable thread-safety warnings These warnings don't make sense for code that implements the locking primitives. libthr: change CHECK_AND_INIT_RWLOCK to an inline function This was prompted by a compiler warning about 'ret' shadowing a local variable in the callers of the macro. libthr: Use CLI flags instead of pragmas to disable warnings People tweaking the build system or compilers tend to look into the Makefile and not into the source. Having some warning controls in the Makefile and some in the source code is surprising. Pragmas have the advantage that they leave the warnings enabled for more code, but that advantage isn't very relevant in these cases. libthr: fix warnings from GCC when WARNS=6 Fix warnings about: - redundant declarations - a local variable shadowing a global function (dlinfo) - an old-style function definition (with an empty parameter list) - a variable that is possibly used uninitialized libthr: prevent setcontext() from masking SIGTHR __thr_setcontext() mistakenly tested for the presence of SIGCANCEL in its local ucontext_t instead of the parameter. Therefore, if a thread calls setcontext() with a context whose signal mask contains SIGTHR (a.k.a. SIGCANCEL), that signal will be blocked, preventing the thread from being cancelled or suspended. Sponsored by: Dell EMC
| * Fix grammar.gjb2017-06-011-2/+2
| | | | | | | | | | Submitted by: vangyzen Sponsored by: The FreeBSD Foundation
| * Fix a typo.gjb2017-06-011-1/+1
| | | | | | | | | | Submitted by: vangyzen Sponsored by: The FreeBSD Foundation
| * Document r310372, libmd fd(4) function additions.gjb2017-06-011-0/+4
| | | | | | | | | | Submitted by: emaste Sponsored by: The FreeBSD Foundation
| * Document r305845, UEFI boot loader build reproducibility.gjb2017-06-011-0/+22
| | | | | | | | | | | | | | | | | | | | | | Document r307631, groff(1) reproducibility fixes. Document r309183, makewhatis(1) reproducibility fixes. Document r312249, newvers.sh reproducibility fixes. Document r312730, WITH_REPRODUCIBLE_BUILD src.conf(5) knob. Submitted by: emaste Sponsored by: The FreeBSD Foundation
| * Document r305837, readelf(1) ARM program and section header reporting.gjb2017-06-011-0/+11
| | | | | | | | | | | | | | | | Document r305844, ELF Tool Chain updated to r3490. Document r309125, strings(1) exit status fix. Submitted by: emaste Sponsored by: The FreeBSD Foundation
| * Document r305514, getdtablesize(2) in capability mode.gjb2017-06-011-0/+13
| | | | | | | | | | | | | | | | Document r305516, kern.proc.nfds in capability mode. Document r306213, bspatch(1) capsicum support. Submitted by: emaste Sponsored by: The FreeBSD Foundation
| * MFC r318832: MFV r316923: 8026 retire zfs_throttle_delay and ↵avg2017-06-011-3/+0
| | | | | | | | zfs_throttle_resolution
| * MFC r318830: MFV r316921: 8027 tighten up dsl_pool_dirty_deltaavg2017-06-011-1/+1
| |
| * MFC r318450:kib2017-06-012-0/+103
| | | | | | | | | | | | Add tests for some cases in r318298. PR: 219154
| * MFC r317730:tuexen2017-06-017-9/+154
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add support for listen() call. MFC r317731: Add Socklent for handling args of type socklen_t. MFC r317732: Decode the third argument of socket(). MFC r317736: Add support for [gs]etsockopt(). MFC r317737: Decode the fourth argument of sendto and recvfrom call. MFC r317739: Add support for sendmsg() and recvmsg(). MFC r317747: Add support for socket option names related to the IPPROTO_SCTP level. MFC r317748: Add support for socket option names related to the IPPROTO_IPV6 level. MFC r317750: Add support for sctp_generic_sendmsg() and sctp_generic_recvmsg(). MFC r317789: Add support for socket option names related to the level IPPROTO_UDPLITE. MFC r318879: Improve the decoding of the third argument of the socket() call. Decoding of the third argument depends on the first one. For doing this, add a corresponding function to libsysdecode. Thanks to jhb@ for suggesting this.
| * MFC r319096: zfs_lookup: fix bogus arguments to lookup of "snapshot" directoryavg2017-06-011-1/+1
| |
| * MFC r318649:tuexen2017-06-012-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | The connect() system call should return -1 and set errno to EAFNOSUPPORT if it is called on a TCP socket * with an IPv6 address and the socket is bound to an IPv4-mapped IPv6 address. * with an IPv4-mapped IPv6 address and the socket is bound to an IPv6 address. Thanks to Jonathan T. Leighton for reporting this issue. Reviewed by: bz, gnn Differential Revision: https://reviews.freebsd.org/D9163
| * MFC r317597:tuexen2017-06-014-16/+108
| | | | | | | | | | | | | | | | Allow SCTP to use the hostcache. This patch allows the MTU stored in the hostcache to be used as an initial value for SCTP paths. When an ICMP PTB message is received, store the MTU in the hostcache.
| * MFC r317592:tuexen2017-06-011-0/+8
| | | | | | | | Don't set the DF-bit on timer based retransmissions.
OpenPOWER on IntegriCloud