summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* MFC: r312825jkim2017-01-26469-5822/+4561
| | | | Merge OpenSSL 1.0.2k.
* 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 r311526 (by mjg):kib2017-01-261-1/+1
| | | | tmpfs: enable MNTK_EXTENDED_SHARED.
* MFC r311531 (by mjg):kib2017-01-261-16/+6
| | | | Perform a lockless check in tmpfs_itimes.
* MFC r312532: don't abort writing of a core dump after EFAULTavg2017-01-261-7/+34
|
* MFC r312214: Enable IPv6 on EC2 AMIs.cperciva2017-01-261-3/+8
|
* MFC r312288: rtld: do not rely on a populated GOT on amd64emaste2017-01-262-2/+14
| | | | | | | | | | | | | | | | | | On rela architectures GNU BFD ld and gold store the relocation addend in GOT entries (in addition to the relocation's r_addend field). rtld previously relied on this to access its own _DYNAMIC symbol in order to apply its own relocations. However, recording addends in the GOT is not specified by the ABI, and some versions of LLVM's LLD linker leave the GOT uninitialized on rela architectures. BFD ld does not populate the GOT on sparc64, and sparc64 rtld has a machine-dependent rtld_dynamic_addr() function that returns the _DYNAMIC address. Use the same approach on amd64, obtaining the %rip- relative _DYNAMIC address following a suggestion from Rafael EspĂ­ndola. Architectures other than amd64 should be addressed in future work.
* Fix a crash in netmap when using the emulated mode.loos2017-01-253-109/+52
| | | | | | | | This is a direct commit to stable/11 as the -head version was already fixed by a recent import of a new netmap version. Submitted by: Vincenzo Maffione <v.maffione@gmail.com> Sponsored by: Rubicon Communications, LLC (Netgate)
* MFC r312560:avos2017-01-251-1/+1
| | | | ifconfig(8): fix '-stbc' parameter name.
* 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 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 r311811:dim2017-01-251-1/+3
| | | | | | | | | | | | | | | | | | Avoid taking the address of a packed struct member in mfiutil Fix a clang 4.0.0 warning about taking the address of a packed member of struct mfi_evt in mfiutil: usr.sbin/mfiutil/mfi_evt.c:583:30: error: taking address of packed member 'members' of class or structure 'mfi_evt' may result in an unaligned pointer value [-Werror,-Waddress-of-packed-member] if (parse_locale(optarg, &filter.members.locale) < 0) { ^~~~~~~~~~~~~~~~~~~~~ Use a local variable instead, and copy that into the struct. Reviewed by: jhb Differential Revision: https://reviews.freebsd.org/D9069
* MFC r311807:dim2017-01-251-2/+53
| | | | Add recently added libc++ headers to OptionalObsoleteFiles.inc.
* MFC r312604 and r312605:loos2017-01-252-97/+73
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Simplify the handling of small packets padding in cpsw: - Pad small packets to 60 bytes and not 64 (exclude the CRC bytes); - Pad the packet using m_append(9), if the packet has enough space for padding, which is usually true, it will not be necessary append a newly allocated mbuf to the chain. Suggested by: yongari MFC r312608: Handle the rx queue stall while reading the packets from NIC (when the descriptor state will not change anymore). This seems to eliminate the race where we can miss a stalled queue under high load. While here remove the unnecessary curly brackets. Reported by: Konstantin Kormashev <konstantin@netgate.com> MFC r312636: Properly assemble an mbuf chain out of received fragments. Remove the rx_batch hack, it makes no difference now that most of bugs have been sorted out. MFC r312637: Be a little more pedantic here, the TRM says the hardware is supposed to only clean the OWNER bit on SOP descriptors. Sponsored by: Rubicon Communications, LLC (Netgate)
* MFC r312411:loos2017-01-252-5/+23
| | | | | | | | | | | Handle the set capabilities ioctl, letting the hardware checksum be disabled (Hi netmap!). Only remove the CRC bytes from packets when the hardware tell us to do so. Fixes the 'discard frame w/o leading ethernet header' issues. Sponsored by: Rubicon Communications, LLC (Netgate)
* MFC r312408:loos2017-01-251-9/+8
| | | | | | The port number and the to_port_en flag are valid only on SOP descriptor. Sponsored by: Rubicon Communications, LLC (Netgate)
* MFC r308458, r311157 and r312347:loos2017-01-252-1/+321
| | | | | | | | | | | | | | Add the DTS for the Netgate SG-1000 (micro-Firewall). Remove a GPL licensed DTS. The micro-Firewall DTS is now a single BSD licensed file. The write-protect is not wired on uFW, disable it to allow writes to SD card. Obtained from: pfSense Sponsored by: Rubicon Communications, LLC (Netgate)
* MFC r311935: Pretend we support some IOCTLs to not scary upper layers.mav2017-01-251-0/+5
|
* Regen src.conf.5 after r312730 WITH_REPRODUCIBLE_BUILDemaste2017-01-251-3/+8
| | | | Also pick up r312019
* Add WITH_REPRODUCIBLE_BUILD src.conf(5) knobemaste2017-01-256-4/+32
| | | | | | | | | | | | | | | | MFC r310128: Add WITH_REPRODUCIBLE_BUILD src.conf(5) knob to disable kernel metadata The kernel builds reproducibly, except for the time, date, user, and hostname baked into the kernel (reported at startup and via the kern.version sysctl for uname). Add a build knob to disable the inclusion of this metadata. MFC r310268: Build loaders reproducibly when WITH_REPRODUCIBLE_BUILD When WITH_REPRODUCIBLE_BUILD=yes is set in src.conf(5), eliminate the time, user, and host from the loader's version information. This allows builds to produce bit-for-bit identical output.
* readelf: add PPC64 relocation typesemaste2017-01-251-0/+114
| | | | MFC of r311941, r311942
* MFC r310766,r310767,r310774,r310779:mjg2017-01-241-28/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | cache: drop the NULL check from VP2VNODELOCK Now that negative entries are annotated with a dedicated flag, NULL vnodes are no longer passed. == cache: depessimize hashing macros/inlines All hash sizes are power-of-2, but the compiler does not know that for sure and 'foo % size' forces doing a division. Store the size - 1 and use 'foo & hash' instead which allows mere shift. == cache: move shrink lock init to nchinit This gets rid of unnecesary sysinit usage. While here also rename the lock to be consistent with the rest. == cache: sprinkle __predict_false
* MFC r311004:mjg2017-01-241-3/+5
| | | | | | | | fd: access openfiles once in falloc_noinstall This is similar to what's done with nprocs. Note this is only a band aid.
* MFC r310983:mjg2017-01-241-11/+17
| | | | vfs: switch nodes_created, recycles_count and free_owe_inact to counter(9)
* MFC r310805:mjg2017-01-243-7/+1
| | | | | | Remove cpu_spinwait after seq_consistent. It does not add any benefit as the read routine will do it as necessary.
* MFC r310907:mjg2017-01-241-1/+1
| | | | Use vrefact in vnode_pager_alloc.
* MFC r311886:kib2017-01-241-24/+29
| | | | | | Fix acquisition of nested write compat rtld locks. PR: 215826
* MFC r312341:ae2017-01-241-1/+1
| | | | | | | | | | Initialize IPFW static rules rmlock with RM_RECURSE flag. This lock was replaced from rwlock in r272840. But unlike rwlock, rmlock doesn't allow recursion on rm_rlock(), so at this time fix this with RM_RECURSE flag. Later we need to change ipfw to avoid such recursions. PR: 216171
* MFC r309888:ae2017-01-241-33/+27
| | | | | | | | | Modify IPv6 statistic accounting in ip6_input(). Add rcvif local variable to keep inbound interface pointer. Count ifs6_in_discard errors in all "goto bad" cases. Now it will count errors even if mbuf was freed. Modify all places where m->m_pkthdr.rcvif is used to use local rcvif variable.
* MFC r311911, r311923gonzo2017-01-234-0/+382
| | | | | | | | | | | | | | | | | | | | r311911: [sdhci] Add ACPI platform support for SDHCI driver - Create ACPI version of SDHCI attach/detach/accessors logic. Some platforms (e.g. BayTrail-based Minnowboard) expose SDHCI devices via ACPI, not PCI - Add sdchi_acpi kernel module Reviewed by: ian, imp Differential Revision: https://reviews.freebsd.org/D9112 r311923: Add acpi_if.h and opt_acpi.h to Makefile to unbreak "make depend" with sys/modules/sdhci_acpi X-MFC with: r311911 Reported by: Jenkins
* 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 r310854, r310972jmcneill2017-01-221-0/+3
| | | | | | | | r310854: Add missing reg property to usbphy node. r310972: Fix a typo in the third address of the reg property for the usbphy node.
* MFC r311953 (by cem)bapt2017-01-221-4/+1
| | | | | | | | | | | | pciconf(8): Reallow trailing colon in selectors Reallow device selectors to have a trailing colon, as documented in the manual page. This was broken along with some unrelated cleanups in r295806. PR: 215979 Reported by: David Boyd <David.Boyd49 at twc.com> Sponsored by: Dell EMC Isilon
* 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
|
OpenPOWER on IntegriCloud