summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* MFC r315435:allanjude2017-05-187-10/+115
| | | | | | | | | | | | Add ZFS compressed ARC stats to top(1) MFC r316314: top(1) read the wrong amount of data from sysctl MFC r318448: Explain the new fields in top(1) related to ZFS compressed ARC Remove the laundry field during the merge, does not exist in stable/11
* MFC r318294:gjb2017-05-181-1/+1
| | | | | | | Correct the URL to instructions for updating system sources. PR: 219303 Sponsored by: The FreeBSD Foundation
* MFC 317783sephe2017-05-181-2/+8
| | | | | | | hyperv/kvp: Fix pool direcrory and file permission PR: 209385 Sponsored by: Microsoft
* Document r318402, blacklistd refinement for OpenSSH.gjb2017-05-171-0/+7
| | | | Sponsored by: The FreeBSD Foundation
* MFC r318242: Refine and update blacklist support in sshdlidl2017-05-178-16/+23
| | | | | | | | | | | | Adjust notification points slightly to catch all auth failures, rather than just the ones caused by bad usernames. Modify notification point for bad usernames to send new type of BLACKLIST_BAD_USER. (Support in libblacklist will be forthcoming soon.) Add guards to allow library headers to expose the enum of action values. Reviewed by: des Relnotes: yes Sponsored by: The FreeBSD Foundation
* MFC r318160, 318176: Persistently store NIC's hardware MAC address, and addrpokala2017-05-175-1/+84
| | | | | | | | | | | | | | | | a way to retrive it The MAC address reported by `ifconfig ${nic} ether' does not always match the address in the hardware, as reported by the driver during attach. In particular, NICs which are components of a lagg(4) interface all report the same MAC. When attaching, the NIC driver passes the MAC address it read from the hardware as an argument to ether_ifattach(). Keep a second copy of it, and create ioctl(SIOCGHWADDR) to return it. Teach `ifconfig' to report it along with the active MAC address. PR: 194386
* MFC r317743:araujo2017-05-171-9/+9
| | | | | | | Use nitems() from sys/param.h. Reviewed by: ngie Differential Revision: https://reviews.freebsd.org/D9942
* MFC r317742:araujo2017-05-171-0/+4
| | | | | | | | Free the memory allocated to trackbuf before exiting, it might fix a potential memory leak. Submitted by: trix@juniper.net Differential Revision: https://reviews.freebsd.org/D9856
* MFC r315112, r315196araujo2017-05-173-1/+41
| | | | | | | | | | | | | | | | | | | | | r315112: Add the capability to refresh the gpart(8) label without need a reboot. gpart(8) has functionality to change the label of an GPT partition. This functionality works like it should, however, after a label change the /dev/gpt/ entries remain unchanged. glabel(8) status output remains unchanged. The change only takes effect after a reboot. PR: 162690 Submitted by: sub.mesa@gmail, Ben RUBSON <ben.rubson@gmail.com>, ae Reviewed by: allanjude, bapt, bcr Differential Revision: https://reviews.freebsd.org/D9935 r315196: After r315112 I broke the tests with eli, instead to pass 0, I should pass M_NOWAIT to g_media_changed() that will call g_post_event() with this flag. Reported by: lwhsu, ngie and ae
* MFC 318136sephe2017-05-178-42/+329
| | | | | | | | | | | | | | | | | | | | | | hyperv/vmbus: Reorganize vmbus device tree For GEN1 Hyper-V, vmbus is attached to pcib0, which contains the resources for PCI passthrough and SR-IOV. There is no acpi_syscontainer0 on GEN1 Hyper-V. For GEN2 Hyper-V, vmbus is attached to acpi_syscontainer0, which contains the resources for PCI passthrough and SR-IOV. There is no pcib0 on GEN2 Hyper-V. The ACPI VMBUS device now only holds its _CRS, which is empty as of this commit; its existence is mainly for upward compatibility. Device tree structure is suggested by jhb@. Tested-by: dexuan@ Collabrated-wth: dexuan@ Sponsored by: Microsoft Differential Revision: https://reviews.freebsd.org/D10565
* MFC r318283:cy2017-05-171-1/+1
| | | | | As of r318281 in HEAD (r318390 [in stable/10 & stable/11]), there is no need to put a colon (:) in the message string.
* MFC r318281:cy2017-05-171-1/+1
| | | | | | Separate the ipfilter function/static string from the error with a colon (:) in error messages to assist the user in parsing out the error from where or which object the error message refers to.
* MFC r317784:mjg2017-05-161-5/+2
| | | | | | | cache: stop holding the ncneg_hot lock across purging Only non-hot entries are purged so the lock is not needed in the first place. This saves one lock/unlock pair.
* MFC r318259:dim2017-05-162-2/+2
| | | | | | | | | Silence a -Wunused warning about the junk variable being used to raise an inexact floating point exception. The variable cannot be eliminated, unfortunately, otherwise the desired addition triggering the exception will be emitted neither by clang, nor by gcc. Reviewed by: Steve Kargl, bde
* MFC r318147: Add several new media types to if_media.herj2017-05-162-0/+16
| | | | | | | These include several 25G types (for active direct attach cables and LR modules), and a missing type for 10G active direct attach. Sponsored by: Intel Corporation
* MFC r313497: ixl(4): Update to 1.7.12-k.erj2017-05-1630-681/+2987
| | | | | | | | | | | | | | | | | | | | | | Refresh upstream driver before impending conversion to iflib. Major new features: - Support for Fortville-based 25G adapters - Support for I2C reads/writes (To prevent getting or sending corrupt data, you should set dev.ixl.0.debug.disable_fw_link_management=1 when using I2C [this will disable link!], then set it to 0 when done. The driver implements the SIOCGI2C ioctl, so ifconfig -v works for reading I2C data, but there are read_i2c and write_i2c sysctls under the .debug sysctl tree [the latter being useful for upper page support in QSFP+]). - Addition of an iWARP client interface (so the future iWARP driver for X722 devices can communicate with the base driver). - Add "options IXL_IW" to kernel config to enable this option. Sponsored by: Intel Corporation
* MCF r310418: xen: fix IPI setup with EARLY_AP_STARTUProyger2017-05-164-35/+32
| | | | Sponsored by: Citrix Systems R&D
* MFC r318092:bdrewery2017-05-161-5/+15
| | | | PROGS+META_MODE: Avoid rebuilding common sources when recursing.
* MFC r317585: Propagate IFCAP_LRO from trunk to vlan interface.mav2017-05-161-0/+10
| | | | | False positive here cost nothing, while false negative may lead to some confusions.
* MFC r317547: Allow some control over enabled capabilities for if_vlan.mav2017-05-161-19/+45
| | | | | | | It improves interoperability with if_bridge, which may need to disable some capabilities not supported by other members. IMHO there is still open question about LRO capability, which may need to be disabled on physical interface.
* MFC r317696, r317723, r317836: Introduce sleepable locks into if_lagg.mav2017-05-162-344/+221
| | | | | | | | | | | | | | | | | Before this change if_lagg was using nonsleepable rmlocks to protect its internal state. This patch introduces another sx lock to protect code paths that require sleeping, while still uses old rmlock to protect hot nonsleepable data paths. This change allows to remove taskqueue decoupling used before to change interface addresses without holding the lock. Instead it uses sx lock to protect direct if_ioctl() calls. As another bonus, the new code synchronizes enabled capabilities of member interfaces, and allows to control them with ifconfig laggX, that was impossible before. This part should fix interoperation with if_bridge, that may need to disable some capabilities, such as TXCSUM or LRO, to allow bridging with noncapable interfaces.
* MFC r317659, r317752:mav2017-05-162-10/+14
| | | | | | | Make some UART consoles to not spin wait for data to be sent. At least with Tx FIFO enabled it shows me ~10% reduction of verbose boot time with serial console at 115200 baud.
* MFC 316658:avatar2017-05-152-0/+49
| | | | | | | | | | | Adding SIOCGIFNAME support in Linuxulator. This should silence the console warning associated with linux-opera: linux: pid 23492 (opera): ioctl fd=5, cmd=0x8910 ('\M^I',16) is not implemented linux: pid 23492 (opera): ioctl fd=28, cmd=0x8910 ('\M^I',16) is not implemented ... Reviewed by: kib, marcel, dchagin Tested with: linux-opera-12.16_3
* MFC r317660, r317710brooks2017-05-152-8/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | r317660: Support clnt_raw's use of FD_SETSIZE as a fake file descriptor. Accomplish this by allocating space for it in __svc_xports and allowing it to be registered. The failure to allocate space was causing an out-of-bounds read in svc_getreq_common(). The failure to register caused PR 211804. The bug was found with CHERI bounds checking. PR: 211804 Obtained from: CheriBSD Sponsored by: DARPA, AFRL Reviewed by: ngie Differential Revision: https://reviews.freebsd.org/D10528 r317710: Remove expected failure now that it was fixed in r317660. PR: 211804 Reviewed by: ngie Obtained from: CheriBSD Sponsored by: DARPA, AFRL Differential Revision: https://reviews.freebsd.org/D10576
* MFC r317658:bdrewery2017-05-151-0/+6
| | | | Redo r288270: Hookup mkcsmapper_static and mkesdb_static for 'make clean'
* MFC r317996davidcs2017-05-152-14/+13
| | | | | Fix bug where MTX_DEF lock was held while taskqueue_drain() was invoked. Check IFF_DRV_RUNNING flag is set prior to calling ql_hw_set_multi()
* MFC r318126davidcs2017-05-151-10/+24
| | | | llh_func_filter needs to be configured for 100G
* MFC r318185:ken2017-05-152-1/+3
| | | | | | | | | | | | | Add LTO-8 density codes. lib/libmt/mtlib.c: Add the LTO-8 density code to the density table in libmt. usr.bin/mt/mt.1: Add the LTO-8 density code, tracks, bpmm, and bpi to the density table in the mt(1) man page. Sponsored by: Spectra Logic
* MFC r315685: tighten buffer bounds in imgact_binmisc_populate_interpemaste2017-05-151-1/+1
| | | | | | | | | | | | We must ensure there's space for the terminating null in the temporary buffer in imgact_binmisc_populate_interp(). Note that there's no buffer overflow here because xbe->xbe_interpreter's length and null termination is checked in imgact_binmisc_add_entry() before imgact_binmisc_populate_interp() is called. However, the latter should correctly enforce its own bounds. Sponsored by: The FreeBSD Foundation
* MFC r314054: Exclude -flto when building *genassym.oemaste2017-05-158-11/+11
| | | | | | | | | | | The build process generates *assym.h using nm from *genassym.o (which is in turn created from *genassym.c). When compiling with link-time optimization (LTO) using -flto, .o files are LLVM bitcode, not ELF objects. This is not usable by genassym.sh, so remove -flto from those ${CC} invocations. Sponsored by: The FreeBSD Foundation
* MFC r317376: Add sysutils/tmux to the DVD package setemaste2017-05-151-0/+1
| | | | | | The zsh + tmux combination is commonly wanted. Sponsored by: The FreeBSD Foundation
* Regenerate src.conf.5 after r318286emaste2017-05-151-221/+2
| | | | | | | | r318286 removed the $FreeBSD$ tags copied from the source WITH_/WITHOUT_ description snippets. Regenerate src.conf.5 now so that only relevant changes appear in it when it is next regenerated after an MFC. Sponsored by: The FreeBSD Foundation
* MFC r310271 (gjb): Comment the RCSID (in WITH_REPRODUCIBLE_BUILD)emaste2017-05-151-1/+1
| | | | Sponsored by: The FreeBSD Foundation
* MFC r317156: makeman: add a comment describing purpose and invocationemaste2017-05-151-2/+16
| | | | Sponsored by: The FreeBSD Foundation
* MFC r316706: makeman: don't copy $FreeBSD$ tags from source files into outputemaste2017-05-151-6/+3
| | | | | | | | | | | | | | | | | | | Copying the source VCS ID from WITH_/WITHOUT_* into the generated src.conf.5 is not necessary, as it is generally possible to determine the same information using the VCS to examine commit metadata. The individual source files also match the name of the option recorded in the generated file, so it is clear from where the content originated. The copied IDs generate extraneous, non-content noise in the generated src.conf.5 in some cases, including the first time the file is generated on a stable branch. In addition, the source file $FreeBSD$ tags are not expanded by git or other non-Subversion VCSs, which means that makeman previously could not be used in a non-Subversion working tree. I accept that there's some desire to keep these, but on balance believe there is more benefit in removing them. Sponsored by: The FreeBSD Foundation
* MFC r317912: sh: Fix INTOFF leak after a builtin with different localejilles2017-05-143-1/+7
| | | | | | | | settings. After executing a builtin with different locale settings such as LC_ALL=C true SIGINT handling was left disabled indefinitely.
* MFC r318254:jasone2017-05-141-1/+1
| | | | | | Fix __pthread_mutex_trylock() to call THR_CRITICAL_LEAVE() on failure rather than on success. This regression was introduced by r300043 (Add implementation of robust mutexes...).
* MFC: r317982marius2017-05-142-12/+6
| | | | | | | | | | | | | | | | | | - Also outside of the KOBJOPLOOKUP macro - which in turn is used by the code auto-generated for *.m - kobj_lookup_method(9) is useful; for example in back-ends or base class device drivers in order to determine whether a default method has been overridden. Thus, allow for the kobj_method_t pointer argument - used by KOBJOPLOOKUP in order to update the cache entry - of kobj_lookup_method(9), to be NULL. Actually, that pointer is redundant as it's just set to the same kobj_method_t that the kobj_lookup_method(9) function returns in the first place, but probably it serves to reduce the number of instructions generated for KOBJOPLOOKUP. - For the same reason, move updating kobj_lookup_{hits,misses} (if KOBJ_STATS is defined) from kobj_lookup_method(9) to KOBJOPLOOKUP. As a side-effect, this gets rid of the convoluted approach of always incrementing kobj_lookup_hits in KOBJOPLOOKUP and then in case of a cache miss, decrementing it in kobj_lookup_method(9) again.
* MFC: r317578marius2017-05-141-7/+7
| | | | | | | | | | | Fix a bug introduced as part of r287726; use the right device_t for determining the softc of the bridge in psycho_route_interrupt(). [1] While at it, update the corresponding comment that the code in question is also necessary for U30s in addition to E450s (a fact that has been known for ages). PR: 218478 [1] Submitted by: Yoshihiko Iwama [1]
* MFC: r317343marius2017-05-141-2/+3
| | | | | | In fill_ip6(), the value of the pointer av changes before it is free(3)ed. Thus, introduce a new variable to track the original value.
* MFC r316874: restore ability to shutdown(2) datagram sockets.sobomax2017-05-141-5/+20
|
* MFC r317908:kib2017-05-141-6/+0
| | | | Remove spl() calls from UFS code.
* MFC r316718, r316738: make mksnap_ffs functional in the chroot'ed environment.sobomax2017-05-141-2/+46
|
* MFC r318190:gjb2017-05-141-5/+5
| | | | | | | | | | Update release/scripts/atlas-upload.sh to account for API changes made recently by Atlas Hashicorp. The data returned from GET and POST requests has changed, which caused a number of regex patterns to fail to be properly identified as 'success' or 'failure', which ended up in upload/publish failures. Sponsored by: The FreeBSD Foundation
* MFC: r317576rmacklem2017-05-141-2/+2
| | | | | | | | | | Modify the NFSv4.1/pNFS client to ask for a maximum length of layout. The code specified the length of a layout as INT64_MAX instead of UINT64_MAX. This could result in getting a layout for less than the full file for extremely large files. Although having little practical effect, this patch corrects this in the code. Detected during recent testing of the pNFS server.
* MFC r308945:gjb2017-05-1211-1/+183
| | | | | | | | | | | | | | | | | Set the 'vital' flag on the runtime and jail packages. The default pkg(8) from pkg.freebsd.org requires libjail.so, so mark the jail package as vital along with the runtime package to avoid errors when libjail.so is removed. This is a no-op for systems with WITHOUT_JAIL in src.conf(5) and pkg(8) built from the Ports Collection. In order to make this work without marking packages such as the jail-lib32, for example, the jail.ucl file needed to be split out into separate files similarly to the runtime-*.ucl files. Sponsored by: The FreeBSD Foundation
* MFC 317412,317413: Fixes for info file removal.jhb2017-05-122-11/+4
| | | | | | | | | | | | | | 317412: Add info files for GCC 4.2 to the list of info files to remove. This would only affect upgrades from older versions of non-clang platforms. 317413: Remove info files from optional old files. Info files are now all removed unconditionally after the removal of texinfo.
* MFC 316510: Don't leak a session and lock if a GMAC key has an invalid length.jhb2017-05-121-1/+4
|
* MFC r317845-r317846brooks2017-05-1210-21/+80
| | | | | | | | | | | | | | | | | | | | | | r317845: Provide a freebsd32 implementation of sigqueue() The previous misuse of sys_sigqueue() was sending random register or stack garbage to 64-bit targets. The freebsd32 implementation preserves the sival_int member of value when signaling a 64-bit process. Document the mixed ABI implementation of union sigval and the incompability of sival_ptr with pointer integrity schemes. Reviewed by: kib, wblock Sponsored by: DARPA, AFRL Differential Revision: https://reviews.freebsd.org/D10605 r317846: Regen post r317845. MFC with: r317845 Sponsored by: DARPA, AFRL
* Document r318239, blacklistd updated to 20170503 snapshot.gjb2017-05-121-0/+4
| | | | Sponsored by: The FreeBSD Foundation
OpenPOWER on IntegriCloud