summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
| * MFC r312728davidcs2017-02-028-227/+415
| | | | | | | | | | | | Added support for if_transmit and if_qflush Removed if_start updated version to 3.10.33
| * MFC 312782kp2017-02-012-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bridge: Release the bridge lock when calling bridge_set_ifcap() This calls ioctl() handlers for the different interfaces in the bridge. These handlers expect to get called in an ioctl context where it's safe for them to sleep. We may not sleep with the bridge lock held. However, we still need to protect the interface list, to ensure it doesn't get changed while we iterate over it. Use BRIDGE_XLOCK(), which prevents bridge members from being removed. Adding bridge members is safe, because it uses LIST_INSERT_HEAD(). This caused panics when adding xen interfaces to a bridge. PR: 216304 Reviewed by: ae Sponsored by: RootBSD Differential Revision: https://reviews.freebsd.org/D9290
| * MFC r312678: Eliminate misleading comments and dead code inrpokala2017-02-011-6/+1
| | | | | | | | | | | | | | | | | | | | | | | | lacp_port_create() Variables "fast" and "active" are both constant in lacp_port_create(), but comments mispleadingly suggest that "fast" can be changed via ioctl. The constant values control the value of "lp->lp_state", so it too is constant, and the code for assigning different value to it is essentially dead. Remove both "fast" and "active", and set "lp->lp_state" unconditionally; that gets rid of the dead code and misleading comments.
| * MFC r312531: vmm_dev: work around a bogus error with gcc 6.3.0avg2017-01-301-1/+1
| |
| * MFC r312228: Make `camcontrol cmd ... -i ...` return only valid bytes.mav2017-01-291-5/+9
| | | | | | | | | | Previously code ignored resid field and returned extra zeroes in case of data underflow. Now it returns only real bytes received from target.
| * MFC r312647:kib2017-01-291-0/+15
| | | | | | | | | | Add comments explaining unobvious td_critnest adjustments in critical_exit().
| * MFC r312699:tijl2017-01-271-10/+5
| | | | | | | | | | | | | | | | | | Apply r210555 to 64 bit linux support: The interpreter name should no longer be treated as a buffer that can be overwritten. PR: 216346
| * MFH: r310426julian2017-01-271-0/+2
| | | | | | | | | | | | | | | | | | | | If you are going to be run individually to make a new timezone set then ensure the destination directories exist. Especially if you define OLDTIMEZONES because the mtree pass doesn't do it for you. MFC after: 1 week Sponsored by: Panzura
| * MFH: r308671julian2017-01-271-0/+4
| | | | | | | | | | | | | | When you select make OLDTIMEZONES=1 then you need a few added directories to be made or the command fails Sponsored by: panzura
| * Backport OpenSSL commit 56336b6c7a75ed28067cadedd8ac46572348bc2f:delphij2017-01-271-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | crypto/evp: harden RC4_MD5 cipher. Originally a crash in 32-bit build was reported CHACHA20-POLY1305 cipher. The crash is triggered by truncated packet and is result of excessive hashing to the edge of accessible memory (or bogus MAC value is produced if x86 MD5 assembly module is involved). Since hash operation is read-only it is not considered to be exploitable beyond a DoS condition. Thanks to Robert Święcki for report. This is a direct commit to stable/10. Security: CVE-2017-3731
| * MFC r312533: Report disk addition errors on `add` or `create` subcommand.mav2017-01-271-4/+4
| |
| * Disable assembly sources when compiler/assembler cannot compile certainjkim2017-01-269-56/+72
| | | | | | | | | | | | | | | | | | instructions. Note this is a direct commit because head and stable/11 has OpenSSL 1.0.2 branch. However, it is based on r304320. Requested by: julian
| * MFC r296891 (by imp):mav2017-01-266-27/+53
| | | | | | | | | | | | | | Make sure we check for CAM_CDB_POINTER for all drivers. Also, for the drivers I've touched, filter out CAM_CDB_PHYS. Differential Revision: https://reviews.freebsd.org/D5585
| * MFC r312232: Add under-/overrun support to IOCTL and CAM SIM frontends.mav2017-01-262-13/+32
| |
| * MFC r312231: When in kernel, map ctl_scsi_zero_io() to ctl_zero_io().mav2017-01-262-4/+4
| |
| * MFC r312026: Improve CAM_CDB_POINTER support.mav2017-01-265-29/+18
| |
| * MFC r311873: Fix malloc(M_WAITOK) under mutex, introduced at r311787.mav2017-01-261-21/+17
| |
| * MFC r311804: Rewrite CTL statistics in more simple and scalable way.mav2017-01-268-367/+456
| | | | | | | | | | | | | | | | | | | | | | | | | | Instead of collecting statistics for each combination of ports and logical units, that consumed ~45KB per LU with present number of ports, collect separate statistics for every port and every logical unit separately, that consume only 176 bytes per each single LU/port. This reduces struct ctl_lun size down to just 6KB. Also new IOCTL API/ABI does not hardcode number of LUs/ports, and should allow handling of very large quantities. Old API is still enabled in stable branches for compatibility reasons.
| * MFC r311787: Allocate memory for prevent flags only for removable LUs.mav2017-01-262-5/+12
| | | | | | | | | | This array takes 64KB of RAM now, that was more then half of struct ctl_lun size. If at some point we support more ports, this may need another tune.
| * MFC r311680: Make CTL_GETSTATS ioctl return partial data if buffer is small.mav2017-01-261-12/+9
| |
| * MFC r310778, r310782: Improve use of I/O's private area.mav2017-01-266-286/+144
| | | | | | | | | | | | - Since I/Os are allocates from per-port pools, make allocations store pointer to CTL softc there, and use it where needed instead of global. - Created bunch of helper macros to access LUN, port and CTL softc.
| * MFC r310786, r310803, r310985, r311894asomers2017-01-2616-429/+547
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | r310786: Reduce the runtime of the GELI tests There is no reduction in test coverage. On my system runtime is reduced from 38m32s to 6m24s. tests/sys/geom/class/eli/conf.sh tests/sys/geom/class/eli/init_a_test.sh tests/sys/geom/class/eli/init_test.sh tests/sys/geom/class/eli/integrity_copy_test.sh tests/sys/geom/class/eli/integrity_data_test.sh tests/sys/geom/class/eli/integrity_hmac_test.sh tests/sys/geom/class/eli/onetime_a_test.sh tests/sys/geom/class/eli/onetime_test.sh Move the looping code into common functions in conf.sh, and remove alias ciphers from the list. tests/sys/geom/class/eli/init_a_test.sh tests/sys/geom/class/eli/init_test.sh tests/sys/geom/class/eli/integrity_copy_test.sh tests/sys/geom/class/eli/integrity_data_test.sh tests/sys/geom/class/eli/integrity_hmac_test.sh tests/sys/geom/class/eli/onetime_a_test.sh Move a few commands that don't need to be in the inner loop out. tests/sys/geom/class/eli/init_test.sh tests/sys/geom/class/eli/onetime_a_test.sh Reduce the sector count tests/sys/geom/class/eli/Makefile tests/sys/geom/class/eli/init_alias_test.sh Add a test for initializing a GELI device using one of the cipher aliases, and check that the alias is correctly interpreted. MFC after: 4 weeks Sponsored by: Spectra Logic Corp Differential Revision: https://reviews.freebsd.org/D8814 r310803: ATFify the gnop tests Also, add test cases for the -p, -P, and -s options to gnop create Reviewed by: ngie MFC after: 4 weeks Differential Revision: https://reviews.freebsd.org/D8892 r310985: Update ObsoleteFiles.inc for r310803 MFC after: 26 days X-MFC-with: 310803 r311894: Fix typo from change 310985 in ObsoleteFiles.inc MFC after: 16 days X-MFC-With: 310803 Sponsored by: Spectra Logic Corp
| * MFC r312532: don't abort writing of a core dump after EFAULTavg2017-01-261-1/+32
| | | | | | | | | | | | Note that this change substantially differs from the change in head because of an unmerged earlier change that probably can not be merged for POLA reasons.
| * MFC r312423:kib2017-01-261-11/+41
| | | | | | | | | | | | | | Refresh tmpfs(5) man page. MFC r312648: Editing and clarifications for tmpfs(5).
| * MFC r312425:kib2017-01-262-7/+11
| | | | | | | | Make tmpfs directory cursor available outside tmpfs_subr.c.
| * MFC r312414:kib2017-01-262-7/+8
| | | | | | | | Rename tmpfs_mount member allnode_lock to include namespace prefix.
| * MFC r312410:kib2017-01-263-14/+2
| | | | | | | | | | | | | | Rework some tmpfs lock assertions. MFC r312412: Protect macro argument.
| * MFC r312409:kib2017-01-264-164/+179
| | | | | | | | | | | | | | Style fixes and comment updates. MFC r312435: Remove mistakenly merged field.
| * MFC r312407:kib2017-01-261-6/+0
| | | | | | | | Remove unused union member, fifos on tmpfs are implemented in common code.
| * MFC r312124 (by mjg):kib2017-01-263-11/+7
| | | | | | | | tmpfs: manage tm_pages_used with atomics.
| * MFC r311531 (by mjg):kib2017-01-261-16/+6
| | | | | | | | Perform a lockless check in tmpfs_itimes.
| * MFC r311933:dim2017-01-251-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use proper prototypes in struct boot_module_t With clang 4.0.0, we are getting the following warnings about struct boot_module_t in efi's boot_module.h: In file included from sys/boot/efi/boot1/ufs_module.c:41: sys/boot/efi/boot1/boot_module.h:67:14: error: this function declaration is not a prototype [-Werror,-Wstrict-prototypes] void (*init)(); ^ void sys/boot/efi/boot1/boot_module.h:92:16: error: this function declaration is not a prototype [-Werror,-Wstrict-prototypes] void (*status)(); ^ void sys/boot/efi/boot1/boot_module.h:95:24: error: this function declaration is not a prototype [-Werror,-Wstrict-prototypes] dev_info_t *(*devices)(); ^ void 3 errors generated. Fix this by adding 'void' to the parameter lists. No functional change. Reviewed by: emaste, imp, smh Differential Revision: https://reviews.freebsd.org/D9144
| * MFC r311932:dim2017-01-251-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make EFI_RESERVED_SERVICE a proper prototype With clang 4.0.0, the EFI API header causes the following warning: In file included from sys/boot/efi/loader/bootinfo.c:43: In file included from sys/boot/efi/loader/../include/efi.h:52: sys/boot/efi/include/efiapi.h:534:32: error: this function declaration is not a prototype [-Werror,-Wstrict-prototypes] (EFIAPI *EFI_RESERVED_SERVICE) ( ^ Add VOID to make it into a real prototype. Reviewed by: imp, emaste, tsoome Differential Revision: https://reviews.freebsd.org/D9132
| * MFC r311929:dim2017-01-251-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Don't include <errno.h> in reloc_elf.c, as it includes <stand.h> just after it, which has a conflicting definition of errno. This leads to the following warning with clang 4.0.0: In file included from sys/boot/common/reloc_elf32.c:6: In file included from sys/boot/common/reloc_elf.c:37: /usr/obj/usr/src/tmp/usr/include/stand.h:155:12: error: this function declaration is not a prototype [-Werror,-Wstrict-prototypes] extern int errno; ^ sys/sys/errno.h:46:26: note: expanded from macro 'errno' #define errno (* __error()) ^
| * MFC r311935: Pretend we support some IOCTLs to not scary upper layers.mav2017-01-251-0/+5
| |
| * MFC r311886:kib2017-01-241-24/+29
| | | | | | | | | | | | Fix acquisition of nested write compat rtld locks. PR: 215826
| * MFC r310025:bdrewery2017-01-241-2/+2
| | | | | | | | Take write lock for rtld_bind before modifying obj_list in dl_iterate_phdr().
| * MFC r312426: fix a thread preemption regression in schedulers introducedavg2017-01-232-4/+4
| | | | | | | | in r270423
| * MFC r312443:pfg2017-01-233-7/+4
| | | | | | | | | | | | | | | | | | | | | | | | mppc - Finish pluging NETGRAPH_MPPC_COMPRESSION. There were several places where reference to compression were left unfinished. Furthermore, KASSERTs contained references to MPPC_INVALID which is not defined in the tree and therefore were sure to break with INVARIANTS: comment them out. Reported by: Eugene Grosbein PR: 216265
| * MFC r312230: skel: Do not set -o emacs in .shrc.jilles2017-01-221-4/+0
| | | | | | | | | | | | | | | | | | sh has defaulted to 'set -o emacs' since FreeBSD 9.0. Therefore, do not set this again in .shrc, since that only serves to prevent invocations like 'sh -o vi' and 'sh +o emacs' to have the intended effect. PR: 215958 Submitted by: Andras Farkas
| * MFC r311651:kib2017-01-215-106/+164
| | | | | | | | Export __cxa_thread_atexit_impl as an alias for __cxa_thread_atexit.
| * MFC r311892: Do not wait for HA thread shutdown if scheduler is stopped.mav2017-01-211-1/+1
| | | | | | | | This wait loop made system hang on panic instead of reboot.
| * MFC r310649: Allow more efficient use of private area.mav2017-01-212-11/+16
| | | | | | | | There are 16 bytes of space, so we may store two pointers in one.
| * MFC r310646: Do not update "saved" mode page on every MODE SELECT.mav2017-01-211-4/+1
| | | | | | | | | | | | We do not have non-volatile memory to really save those values, so we neither report nor support this capability. Also saved mode pages are not replicated between HA peers now.
| * MFC r310644: Fix/synchronize field types in struct ctl_modepage_header.mav2017-01-212-3/+3
| |
| * MFC r310640, r310643:mav2017-01-214-10/+39
| | | | | | | | Add support for revert to defaults (RTD) bit in MODE SELECT.
| * MFC r310635: Decouple limits on number of LUNs per port and LUs per CTL.mav2017-01-214-28/+49
| | | | | | | | | | | | | | | | Those two values are not directly related, so make them independent. This does not change any limits immediately, but makes number of LUNs per port controllable via tunable/sysctl kern.cam.ctl.lun_map_size. After this change increasing CTL_MAX_LUNS should be pretty cheap, and even making it tunable should be easy.
| * MFC r310575: Fix improperly used nexus.targ_lun.mav2017-01-211-3/+3
| |
| * MFC r310555: Some random code cleaning.mav2017-01-211-189/+147
| | | | | | | | | | | | - Reduce indentation. - Remove extra braces. - Add few missing savety checks.
| * MFC r310539: Remove CTL_MAX_LUNS from places where it is not required.mav2017-01-214-33/+34
| |
OpenPOWER on IntegriCloud