summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* MFC r308980:kib2016-11-292-3/+48
| | | | | | Use buffer pager for NFS. MFC note: really do not, by default.
* MFC r308973:kib2016-11-292-11/+2
| | | | Minor cleanup.
* MFC r308969:kib2016-11-291-12/+21
| | | | Restore vnode pager statistic for buffer pagers.
* MFC r308995:kib2016-11-291-2/+2
| | | | Do not dereference bp after bread(9) on error.
* MFC r309006: remove unnecessary vm includes from setproctitleemaste2016-11-291-4/+0
| | | | | vm headers were needed only for the PS_STRINGS fallback, which was removed in r297888.
* MFC r308780asomers2016-11-281-2/+2
| | | | | | | | Fix "camcontrol rescan" with SATA drives behind a SAS controller A bug in CAM's serial number hash logic resulted in SATA drives behind a SAS controller getting removed and readded anytime the drive was rescanned for any reason
* MFC r309194, r309216bapt2016-11-281-0/+1
| | | | | | | | Properly initialize nextp Reported by: Coverity via cem MFC after: 2 days CID: 1365665
* MFC 307756: Define max_align_t for C11.jhb2016-11-282-0/+13
| | | | | | | | | | | libc++'s stddef.h includes an existing definition of max_align_t for C++11, but it is only defined for C++, not for C. In addition, GCC and clang both define an alternate version of max_align_t that uses a union of multiple types rather than a plain long double as in libc++. This adds a __max_align_t to <sys/_types.h> that matches the GCC and clang definition that is mapped to max_align_t in <stddef.h>. PR: 210890
* MFC r308730:hselasky2016-11-281-2/+4
| | | | | | Make sure MAC address is reprogrammed when if_init() callback is invoked. Else promiscious mode must be used to pass traffic. While at it fix a debug print macro.
* MFC r308618:kib2016-11-272-2/+24
| | | | | Provide simple mutual exclusion between mount point update and unmount. In the update path in ffs_mount(), drop vfs_busy() reference around namei().
* MFC r308608:mav2016-11-272-27/+40
| | | | Use providergone method to cover race between destroy and g_access().
* MFC r308579: Do not report error on close even if we have no paths left.mav2016-11-261-1/+1
|
* MFC r307003, r307564: makewhatis: make output reproducibleemaste2016-11-261-13/+25
| | | | | | | | | | | | | | | | | | r307003: Instead: 1) provide fts_open() with a comparison function to process directories and files in a deterministic order 2) in addition to the existing hash, insert pages into a linked list which will be sorted (by virtue of 1) 3) iterate over pages by the list in 2, instead of hash order Idea from: des r307564: makewhatis: avoid skipping another page after one with no mlinks Submitted by: Ingo Schwarze Sponsored by: The FreeBSD Foundation
* MFC r308808, r308809: Lookup locale when print all keywords as well.ume2016-11-261-1/+2
|
* MFC r308580:rstone2016-11-261-8/+13
| | | | | | | | | | | | | | | | | | Don't read if_counters with if_addr_lock held Calling into an ifnet implementation with the if_addr_lock already held can cause a LOR and potentially a deadlock, as ifnet implementations typically can take the if_addr_lock after their own locks during configuration. Refactor a sysctl handler that was violating this to read if_counter data in a temporary buffer before the if_addr_lock is taken, and then copying the data in its final location later, when the if_addr_lock is held. PR: 194109 Reported by: Jean-Sebastien Pedron MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D8498 Reviewed by: sbruno
* MFC r308064:mckusick2016-11-261-10/+12
| | | | | Avoid possible overflow when calclating malloc size for auxillary data structure sizes when mounting and reloading UFS/FFS filesystems.
* MFC 307333: Reprogram I/O APIC interrupt pins when registering an I/O APIC.jhb2016-11-251-2/+7
| | | | | | | | | | | | | | | | All I/O APIC pins are masked when an I/O APIC is first probed. The APIC enumerator (MP Table or MADT) then parses its associated tables to configure individual pins to set custom delivery modes or alternate routing (e.g. routing IRQ 0 to intpin 2). Pins for regular interrupt pins are left masked until the first interrupt is assigned. However, pins with unusual settings (e.g. NMI or SMI) are never assigned an interrupt and thus never re-programmed. The I/O APIC code used to reprogram all interrupt pins during registration but this was lost in r151979. In theory, this is mostly a no-op as the ACPI APIC table does not include a way to enumerate NMI or SMI pins for the I/O APIC, so only systems using an MP Table would be affected.
* MFC r308443, r308459, r308462, r308478, r308786araujo2016-11-255-31/+79
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | r308443: Add -d flag that prints domain only. PR: 212875 Submitted by: Ben RUBSON <ben.rubson@gmail.com> Reviewed by: pi r308459: Fix missing '-' for the flags -s and -d on both manpage and usage. Reported by: garga, bde r308462: Add flag -B which does the same like batch mode but without exiting after print. Also add a new flag -s that add blocks size to statistics. PR: 198347, 212726 Submitted by: Ben RUBSON <ben.rubson@gmail.com> Tested by: pi MFC After: 2 weeks. r308478: We can't use protect(1) inside a jail(8)! To avoid have warning for services that are using oomprotect, oomprotect will only be applied on services that won't run inside jails. Reported by: allanjude MFC after: 2 weeks. r308786: rc.subr: Swap checks so we only fork sysctl if *_oomprotect is set.
* MFC r307969: strings: fix exit status if a file before the last one failsemaste2016-11-251-16/+11
| | | | | | | | | Previously a command like "strings f1 f2 f3" reported the exit status based only on processing the last file. As with GNU strings, report an error exit status if an error was encountered processing any of the files. While here simplify the exit status handling to just success (0) / failure (1).
* MFC r308772: crunchide: report explicit error for combined string tableemaste2016-11-241-0/+4
| | | | | | | | | | | Some tools produce objects with a combined strtab and shstrtab. These objects are not supported by crunchide since it rewrites the symtab and strtab to "hide" symbols. This invalidates section header offsets into a combined strtab/shstrtab. In the future we could support these objects (by ensuring that we retain unmodified section name strings in the output .strtab, and then rewriting each section header's sh_name).
* MFC 308056: Fix formatting of tables.jhb2016-11-231-121/+121
| | | | | | | | | | | Specifically, use .Ta instead of tabs to separate column entries. While here fix a few other things: - Use .Sy for all column headers (previously only the first column header was bold) - Use .Dv to markup constants used for MIB names. - Use "1234" and "4321" for the byte order descriptions without thousands separators. - Mark up header files in the first table with .In.
* MFC 307975: Enable EFER_NXE properly on APs.jhb2016-11-231-10/+10
| | | | | | | | | | | | | | | | | | | | | | | | | EFER_NXE is set in the EFER MSR by initializecpu() and must be set on all CPUs in the system. When PG_NX support was added to PAE on i386, the block to enable EFER_NXE was placed in a section of initializecpu() that only runs if 'cpu == CPU_686'. During early boot, locore does an initial pass to set cpu that sets it to CPU_686 on all CPUs later than a Pentium. Later, printcpuinfo() adjusts the 'cpu' variable on PII and later CPUs to one of CPU_PII, CPU_PIII, or CPU_P4. However, printcpuinfo() is called after initializecpu() on the BSP, so the BSP would enable EFER_NXE and pg_nx. The APs execute initializecpu() much later after printcpuinfo() has run. The end result on a modern CPU was that cpu was set to CPU_PIII when the APs invoked initializecpu(), so they did not enable EFER_NXE. As a result, the APs would fault when trying to access any pages marked with PG_NX set. When booting a 2 CPU PAE kernel in bhyve this manifested as a hang before single user mode. The attempt to execute /bin/init tried to copy out the exec strings (argv, etc.) to a non-executable mapping while running on the AP. The instruction kept faulting due to invalid bits in the PTE in an infinite loop. Fix this by moving the code to enable EFER_NXE out of the switch statement on 'cpu' and always doing it if 'amd_feature' supports AMDID_NX.
* MFC: 307541gnn2016-11-231-0/+15
| | | | | | | | Limit the number of mbufs that can be allocated for IPV6_2292PKTOPTIONS (and IPV6_PKTOPTIONS). PR: 100219 Submitted by: Joseph Kong
* MFC r308733:kib2016-11-231-30/+50
| | | | Move the fast fault path into the separate function.
* MFC r308689:kib2016-11-2320-5/+151
| | | | | | | | | | Pass CPUID[1] %edx (cpu_feature), %ecx (cpu_feature2) and CPUID[7].%ebx (cpu_stdext_feature), %ecx (cpu_stdext_feature2) to the ifunc resolvers on x86. MFC r308925: Adjust r308689 to make rtld compilable with either in-tree or (hopefully) stock gcc 4.2.1 on i386 and other arches.
* MFC r308425: Add support for EIIOE flag in Additional Element Status.mav2016-11-232-9/+21
| | | | | It was added in SES-3 spec, and its support required to properly link the Additional Element Status page data to the original elements.
* MFC r307584asomers2016-11-2212-28/+45
| | | | | | | | | | | | | | Fix C++ includability of crypto headers with static array sizes C99 allows array function parameters to use the static keyword for their sizes. This tells the compiler that the parameter will have at least the specified size, and calling code will fail to compile if that guarantee is not met. However, this syntax is not legal in C++. This commit reverts r300824, which worked around the problem for sys/sys/md5.h only, and introduces a new macro: min_size(). min_size(x) can be used in headers as a static array size, but will still compile in C++ mode.
* MFC 306999: Add a missing word.jhb2016-11-221-1/+1
|
* MFC 308142: Move declarations of invpcid_works and pmap_pcid_enabled to pmap.h.jhb2016-11-222-3/+2
| | | | | | Previously these were only declared under #ifdef SMP in <machine/smp.h>. However, these variables are defind in pmap.c unconditionally, and efirt.c references them unconditionally. This fixes non-SMP kernel builds.
* MFC r308694:markj2016-11-221-10/+11
| | | | | | Plug a lock leak in sysctl_ifmalist(). PR: 214542
* MFC r308957: MFV r308954:delphij2016-11-22183-3780/+7374
| | | | | | ntp 4.2.8p9. Approved by: so
* MFC r308673:ae2016-11-223-25/+20
| | | | | | Add missing support of named lookup tables to the IPv6 code. PR: 214419
* MFC r308688:kib2016-11-221-1/+1
| | | | Assert that there is no unresolved symbols during rtld linking.
* MFC r308687:kib2016-11-221-1/+1
| | | | Update hint to utilize user variable.
* MFC r308642:kib2016-11-211-6/+5
| | | | | | Initialize reserved bytes in struct mq_attr. PR: 214488
* MFC r308089: zfsbootcfg: a simple tool to set next boot (one time)avg2016-11-2115-9/+482
| | | | options for zfsboot
* Zero etherswitch_vlangroup structure before doing partial assignments.loos2016-11-201-2/+4
| | | | Sponsored by: Rubicon Communications, LLC (Netgate)
* MFC r308617:kib2016-11-201-17/+21
| | | | Move common cleanup code into helper.
* MFC r307755: swapoff: Remove only late devices with -aL.jilles2016-11-193-2/+12
| | | | | | | | | | | | | | | Currently, '/etc/rc.d/swaplate stop' removes all swap devices. This can be very slow and may not even be possible if there is a lot of swap space in use. However, removing swap devices is only needed for late swap devices that may depend on daemons that subsequent shutdown steps stop. Normal swap devices such as hard disk partitions will remain available throughout the shutdown process and need not be removed. In swapoff, interpret -aL to remove late swap devices only, and use this in etc/rc.d/swaplate. The meaning of -aL in swapon remains unchanged (add all swap devices, both normal and late). PR: 187081
* MFC r306585: swapon(8): Update to reality: swapoff ignores -L and the latejilles2016-11-191-9/+1
| | | | option in fstab.
* MFC r307752asomers2016-11-183-0/+8
| | | | Close some file descriptor leaks in pw
* MFC r308538:kib2016-11-181-1/+1
| | | | Increase the max allowed size of the microcode update blob for x86.
* MFC r308288:kib2016-11-181-0/+2
| | | | Do not sleep in vm_wait() if pagedaemon did not yet started. Panic instead.
* MFC r308247: MFV r308222: 6051 lzc_receive: allow the caller to read theavg2016-11-172-8/+41
| | | | begin record
* MFC r308218: Add support for microcode update on newer AMD CPUs (10h+)avg2016-11-175-30/+374
|
* MFC r308101: hwpmc: fix a race between amd_stop_pmc and amd_intravg2016-11-171-1/+2
|
* MFC r307195: convert iicsmb to use iicbus_transfer for all operationsavg2016-11-171-168/+142
|
* MFC r308040,308479: nap time between pats is forced to be at most halfavg2016-11-171-9/+14
| | | | of the timeout
* MFC r308237:loos2016-11-171-9/+4
| | | | | | | | | Remove the mbuf tag after use (for reinjected packets). Fixes the packet processing in dummynet l2 rules. Obtained from: pfSense Sponsored by: Rubicon Communications, LLC (Netgate)
* MFC r308464, r308471: Add some device IDs found in my new laptop.mav2016-11-165-0/+16
|
OpenPOWER on IntegriCloud