aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* zfs: g/c unused data_alloc_arenaMateusz Guzik2020-11-101-3/+1
| | | | Notes: svn path=/head/; revision=367568
* Address a mandoc warningMateusz Piotrowski2020-11-101-1/+1
| | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=367567
* Include GID type when deleting GIDs from HW table under RoCE in mlx4ib.Hans Petter Selasky2020-11-101-2/+7
| | | | | | | | | | | | | | Refer to the Linux commit mentioned below for a more detailed description. Linux commit: a18177925c252da7801149abe217c05b80884798 Requested by: Isilon MFC after: 1 week Sponsored by: Mellanox Technologies // NVIDIA Networking Notes: svn path=/head/; revision=367555
* Do not document MOTIFLIB in ports(7)Mateusz Piotrowski2020-11-101-4/+1
| | | | | | | | | | | Perhaps it made sense in 1998 (r32836), but now it feels a bit out of place. We tend to avoid documenting non-essential ports variables in the manual page (we try to document them in the Porter's Handbook instead). MFC after: 1 week Notes: svn path=/head/; revision=367552
* Add an entry for r351863 (honoring ${name}_env in rc(8) scripts)Mateusz Piotrowski2020-11-101-0/+7
| | | | | | | | PR: 239692 Requested by: koobs Notes: svn path=/head/; revision=367551
* Add an entry to RELNOTES about renaming ACPI_DMAR to IOMMUMateusz Piotrowski2020-11-101-0/+5
| | | | | | | | Reviewed by: br (earlier version) Differential Revision: https://reviews.freebsd.org/D26813 Notes: svn path=/head/; revision=367549
* ng_nat: unbreak ABIEugene Grosbein2020-11-101-2/+2
| | | | | | | | | | | | The revision r342168 broke ABI of ng_nat needlessly and the change was merged to stable branches breaking ABI there, too. Unbreak it. PR: 250722 MFC after: 1 week Notes: svn path=/head/; revision=367545
* thread: retire thread_findMateusz Guzik2020-11-102-14/+0
| | | | | | | tdfind should be used instead. Notes: svn path=/head/; revision=367544
* thread: use tdfind in sysctl_kern_proc_kstackMateusz Guzik2020-11-101-2/+8
| | | | | | | | This treads linear scans for locked lookup, but more importantly removes the only consumer of thread_find. Notes: svn path=/head/; revision=367543
* threads: remove the unused TID_BUFFER_SIZE macroMateusz Guzik2020-11-101-2/+0
| | | | Notes: svn path=/head/; revision=367542
* thread: adds newer bits for r367537Mateusz Guzik2020-11-101-3/+3
| | | | | | | The committed patch was an older version. Notes: svn path=/head/; revision=367541
* usb_hub: fix whitespaceBjoern A. Zeeb2020-11-091-1/+1
| | | | | | | | Fix a whitespace "error" introduced in r367435 noticed when preparing the MFC. No functional changes. Notes: svn path=/head/; revision=367539
* arm64: bs_sr_<N> take IIBjoern A. Zeeb2020-11-091-12/+8
| | | | | | | | | | | | In r367327 generic_bs_sr_<n> were derived from mips. Given we are calling generic_bs_w_<n> and no write directly, we do not have to do the address calculations ourselves as eneric_bs_w_<n> will do a str val [bsh, offset]. All we actually have to do is increment offset. MFC after: 3 days Notes: svn path=/head/; revision=367538
* threads: reimplement tid allocation on top of a bitmapMateusz Guzik2020-11-091-35/+34
| | | | | | | | | | | | | | | There are workloads with very bursty tid allocation and since unr tries very hard to have small-sized bitmaps it keeps reallocating memory. Just doing buildkernel gives almost 150k calls to free coming from unr. This also gets rid of the hack which tried to postpone TID reuse. Reviewed by: kib, markj Tested by: pho Differential Revision: https://reviews.freebsd.org/D27101 Notes: svn path=/head/; revision=367537
* threads: introduce a limit for total numberMateusz Guzik2020-11-092-9/+58
| | | | | | | | | | | | The intent is to replace the current id allocation method and a known upper bound will be useful. Reviewed by: kib (previous version), markj (previous version) Tested by: pho Differential Revision: https://reviews.freebsd.org/D27100 Notes: svn path=/head/; revision=367536
* vfs: group mount per-cpu vars into one structMateusz Guzik2020-11-096-110/+144
| | | | | | | | | | | While here move frequently read stuff into the same cacheline. This shrinks struct mount by 64 bytes. Tested by: pho Notes: svn path=/head/; revision=367535
* vmstat: drop the HighUse field from malloc dumpMateusz Guzik2020-11-091-5/+4
| | | | | | | | | | It is hardwired to "-" since its introduction in 2005. Reviewed by: markj Differential Revision: https://reviews.freebsd.org/D27141 Notes: svn path=/head/; revision=367534
* malloc: provide 384 byte zoneMateusz Guzik2020-11-091-0/+1
| | | | | | | | | | | | | | | | | | Total page count after buildworld on ZFS for 384 (if present) and 512 zones: before: 29713 after: 25946 per-zone page use: vm.uma.malloc_384.keg.domain.1.pages: 11621 vm.uma.malloc_384.keg.domain.0.pages: 11597 vm.uma.malloc_512.keg.domain.1.pages: 1280 vm.uma.malloc_512.keg.domain.0.pages: 1448 Reviewed by: markj Differential Revision: https://reviews.freebsd.org/D27145 Notes: svn path=/head/; revision=367533
* malloc: retire mt_stats_zone in favor of pcpu_zone_64Mateusz Guzik2020-11-092-10/+5
| | | | | | | | Reviewed by: markj, imp Differential Revision: https://reviews.freebsd.org/D27142 Notes: svn path=/head/; revision=367532
* RFC 7323 specifies that:Michael Tuexen2020-11-095-46/+98
| | | | | | | | | | | | | | | | | * TCP segments without timestamps should be dropped when support for the timestamp option has been negotiated. * TCP segments with timestamps should be processed normally if support for the timestamp option has not been negotiated. This patch enforces the above. PR: 250499 Reviewed by: gnn, rrs MFC after: 1 week Sponsored by: Netflix, Inc Differential Revision: https://reviews.freebsd.org/D27148 Notes: svn path=/head/; revision=367530
* Bump __FreeBSD_version after linuxkpi changesEmmanuel Vadot2020-11-091-1/+1
| | | | Notes: svn path=/head/; revision=367522
* LinuxKPI: Implement ACPI bits required by drm-kmod in base systemEmmanuel Vadot2020-11-097-0/+482
| | | | | | | | | | | | | | | It includes: ACPI_HANDLE() implementation. AC and VIDEO ACPI events notification support. Replacement of hand-rolled GPLed _DSM method evaluation helpers with in-base ones. Submitted by: wulf Differential Revision: https://reviews.freebsd.org/D26603 Notes: svn path=/head/; revision=367521
* Fix a potential use-after-free bug introduced inMichael Tuexen2020-11-091-3/+3
| | | | | | | | | | https://svnweb.freebsd.org/changeset/base/363046 Thanks to Taylor Brandstetter for finding this issue using fuzz testing and reporting it in https://github.com/sctplab/usrsctp/issues/547 Notes: svn path=/head/; revision=367520
* Make it possible to mount a fuse filesystem, such as squashfuse,Edward Tomasz Napierala2020-11-094-8/+53
| | | | | | | | | | | | from a Linux binary. Should come handy for AppImages. Reviewed by: asomers MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D26959 Notes: svn path=/head/; revision=367517
* Remove newline from bxe description, it's not done elsewhere.Warner Losh2020-11-091-1/+1
| | | | Notes: svn path=/head/; revision=367514
* Add more per-cpu zones.Mateusz Guzik2020-11-092-3/+14
| | | | | | | | | This covers powers of 2 up to 64. Example pending user is ZFS. Notes: svn path=/head/; revision=367503
* cxgbe(4): Allow the PF driver to set a VF's MAC address.Navdeep Parhar2020-11-093-0/+109
| | | | | | | | | | | The MAC address can be set with the optional mac-addr property in the VF section of the iovctl.conf(5) used to instantiate the VFs. MFC after: 2 weeks Sponsored by: Chelsio Communications Notes: svn path=/head/; revision=367502
* vmstat: remove spurious newlines when reporting zonesMateusz Guzik2020-11-091-2/+1
| | | | Notes: svn path=/head/; revision=367501
* procdesc: convert the zone to a malloc typeMateusz Guzik2020-11-091-19/+3
| | | | | | | The object is 128 bytes in size. Notes: svn path=/head/; revision=367500
* bufcache: convert bo_numoutput from long to intMateusz Guzik2020-11-091-1/+1
| | | | | | | | int is wide enough and it plugs a hole in struct vnode, taking it down from 496 to 488 bytes. Notes: svn path=/head/; revision=367499
* kqueue: save space by using only one func pointer for assertionsMateusz Guzik2020-11-096-116/+71
| | | | Notes: svn path=/head/; revision=367498
* cxgbev(4): Use the MAC address set by the the PF if there is one.Navdeep Parhar2020-11-093-1/+60
| | | | | | | | | | | Query the firmware for the MAC address set by the PF for the VF and use it instead of the firmware generated MAC if it's available. MFC after: 2 weeks Sponsored by: Chelsio Communications Notes: svn path=/head/; revision=367497
* [PowerPC] Fix powerpc64le boot after HPT superpages additionBrandon Bergren2020-11-081-7/+9
| | | | | | | | | | | | | | | The HPT is always stored in big-endian, as it is accessed directly by the hardware as well as the kernel. As such, it is necessary to convert values to and from native endian when running on LE. Some unconverted accesses snuck in accidentally with r367417. Apply the appropriate conversions to fix boot hanging on powerpc64le. Sponsored by: Tag1 Consulting, Inc. Notes: svn path=/head/; revision=367496
* cxgbe(4): Add the firmware binaries missing in r367428.Navdeep Parhar2020-11-083-0/+0
| | | | | | | | | Obtained from: Chelsio Communications MFC after: 5 days Sponsored by: Chelsio Communications Notes: svn path=/head/; revision=367495
* Fix definition of rn_addmask()Mitchell Horne2020-11-081-1/+1
| | | | | | | | | | | | Add the missing static keyword present in the declaration. Reviewed by: melifaro Sponsored by: NetApp, Inc. Sponsored by: Klara, Inc. Differential Revision: https://reviews.freebsd.org/D27024 Notes: svn path=/head/; revision=367494
* igmp: convert igmpstat to use PCPU countersMitchell Horne2020-11-082-21/+31
| | | | | | | | | | | | | | | | | | | | Currently there is no locking done to protect this structure. It is likely okay due to the low-volume nature of IGMP, but allows for the possibility of underflow. This appears to be one of the only holdouts of the conversion to counter(9) which was done for most protocol stat structures around 2013. This also updates the visibility of this stats structure so that it can be consumed from elsewhere in the kernel, consistent with the vast majority of VNET_PCPUSTAT structures. Reviewed by: kp Sponsored by: NetApp, Inc. Sponsored by: Klara, Inc. Differential Revision: https://reviews.freebsd.org/D27023 Notes: svn path=/head/; revision=367493
* Prevent premature SACK block transmission during loss recoveryRichard Scheffenegger2020-11-086-31/+74
| | | | | | | | | | | | | | | | Under specific conditions, a window update can be sent with outdated SACK information. Some clients react to this by subsequently delaying loss recovery, making TCP perform very poorly. Reported by: chengc_netapp.com Reviewed by: rrs, jtl MFC after: 2 weeks Sponsored by: NetApp, Inc. Differential Revision: https://reviews.freebsd.org/D24237 Notes: svn path=/head/; revision=367492
* Switch net.add_addr_allfibs default to 0.Alexander V. Chernikov2020-11-083-1/+10
| | | | | | | | | | | | | | | | | | The goal of the fib support is to provide multiple independent routing tables, isolated from each other. net.add_addr_allfibs default tries to shift gears in the opposite direction, unconditionally inserting all addresses to all of the fibs. There are use cases when this is necessary, however this is not a default expected behaviour, especially compared to other implementations. Provide WARNING message for the setups with multiple fibs to notify potential users of the feature. Differential Revision: https://reviews.freebsd.org/D26076 Notes: svn path=/head/; revision=367491
* Temporarily revert setting net.add_addr_allfibs to 0.Alexander V. Chernikov2020-11-081-1/+1
| | | | | | | | It accidentally sweeped in r367486. Revert to allow for proper commit message & warning. Notes: svn path=/head/; revision=367490
* Move syscall_thread_{enter,exit}() into the slow path. This is onlyEdward Tomasz Napierala2020-11-083-30/+26
| | | | | | | | | | | | needed for syscalls from unloadable modules. Reviewed by: kib MFC after: 2 weeks Sponsored by: EPSRC Differential Revision: https://reviews.freebsd.org/D26988 Notes: svn path=/head/; revision=367488
* Check if the ZVOL has been written before calling zil_async_to_sync.Mariusz Zaborski2020-11-081-1/+2
| | | | | | | | | | | | | The ZIL will be opened on the first write, not earlier. Reviewed-by: Ryan Moeller <ryan@iXsystems.com> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Mariusz Zaborski <oshogbo@vexillium.org> OpenZFS Pull Request: https://github.com/openzfs/zfs/pull/11152 PR: 250934 Notes: svn path=/head/; revision=367487
* Fix build broken by r367484: add route_ifaddrs.c.Alexander V. Chernikov2020-11-081-0/+309
| | | | | | | | Pointy hat to: melifaro Reported by: jenkins Notes: svn path=/head/; revision=367486
* Merge commit 354d3106c from llvm git (by Kai Luo):Dimitry Andric2020-11-081-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [PowerPC] Skip combining (uint_to_fp x) if x is not simple type Current powerpc64le backend hits ``` Combining: t7: f64 = uint_to_fp t6 llc: llvm-project/llvm/include/llvm/CodeGen/ValueTypes.h:291: llvm::MVT llvm::EVT::getSimpleVT() const: Assertion `isSimple() && "Expected a SimpleValueType!"' failed. ``` This patch fixes it by skipping combination if `t6` is not simple type. Fixed https://bugs.llvm.org/show_bug.cgi?id=47660. Reviewed By: #powerpc, steven.zhang Differential Revision: https://reviews.llvm.org/D88388 This should fix the llvm assertion mentioned above when building the following ports for powerpc64le: * audio/traverso * databases/percona57-pam-for-mysql * databases/percona57-server * emulators/citra * emulators/citra-qt5 * games/7kaa * graphics/dia * graphics/mandelbulber * graphics/pcl-pointclouds * net-p2p/libtorrent-rasterbar * textproc/htmldoc Requested by: pkubaj MFC after: 3 days Notes: svn path=/head/; revision=367485
* Move all ifaddr route creation business logic to net/route/route_ifaddr.cAlexander V. Chernikov2020-11-083-274/+1
| | | | | | | Differential Revision: https://reviews.freebsd.org/D26318 Notes: svn path=/head/; revision=367484
* - add more linux socket options (sorted by value)Alexander Leidinger2020-11-086-31/+453
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - map those IPv4 / IPv6 socket options which exist in FreeBSD + most of them visually verified to have the same type/layout of arguments + not tested with linux programs to behave as intended - be more human readable for known options which are not handled - be more verbose for unhandled socket message flags we know about - print the jail ID in linux_msg if run in a jail - add possibility to print debug message about known missing parts only once - add multiple levels of sysctl linux.debug: 1: print debug messages, tell about unimplemented stuff (only once) 2: like 1, but also print messages about implemented but not tested stuff (only once) 3+: like 2, but no rate limiting of messages - increase default linux debug level from 1 to 3 We are a lot more verbose in as we need to be (e.g. some of the IP socket options which are the same, and share the same memory layout, and are believed to work). The reason is that we have no good testsuite to test those linux-bits. The LTP or other test suites like the python one, are not fully up to the task we need. As such the excessive messages about emulated but not tested socket options. IMO any MFC (possible, but most probably not by me) should set the default debug level to 1. Discussed with: trasz Notes: svn path=/head/; revision=367481
* loader: cstyle cleanup of bootstrap.h did miss a bitToomas Soome2020-11-081-3/+3
| | | | | | | correct small issues - misplaced comment and typos. Notes: svn path=/head/; revision=367480
* loader: cstyle cleanup of bootstrap.hToomas Soome2020-11-081-119/+133
| | | | | | | No functional changes intended. Notes: svn path=/head/; revision=367479
* Return the same value for smbios.chassis.maker as smbios.system.maker (and ↵Olivier Cochard2020-11-081-1/+1
| | | | | | | | | | | | prevents returning a space character). Reviewed by: grehan Approved by: grehan Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D27123 Notes: svn path=/head/; revision=367478
* imgact_binmisc: limit the extent of match on incoming entriesKyle Evans2020-11-082-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | imgact_binmisc matches magic/mask from imgp->image_header, which is only a single page in size mapped from the first page of an image. One can specify an interpreter that matches on, e.g., --offset 4096 --size 256 to read up to 256 bytes past the mapped first page. The limitation is that we cannot specify a magic string that exceeds a single page, and we can't allow offset + size to exceed a single page either. A static assert has been added in case someone finds it useful to try and expand the size, but it does seem a little unlikely. While this looks kind of exploitable at a sideways squinty-glance, there are a couple of mitigating factors: 1.) imgact_binmisc is not enabled by default, 2.) entries may only be added by the superuser, 3.) trying to exploit this information to read what's mapped past the end would be worse than a root canal or some other relatably painful experience, and 4.) there's no way one could pull this off without it being completely obvious. The first page is mapped out of an sf_buf, the implementation of which (or lack thereof) depends on your platform. MFC after: 1 week Notes: svn path=/head/; revision=367477
* Add collation version support to querylocale(3).Thomas Munro2020-11-0814-22/+119
| | | | | | | | | | | | | | | | | | | | | | | Provide a way to ask for an opaque version string for a locale_t, so that potential changes in sort order can be detected. Similar to ICU's ucol_getVersion() and Windows' GetNLSVersionEx(), this API is intended to allow databases to detect when text order-based indexes might need to be rebuilt. The CLDR version is extracted from CLDR source data by the Makefile under tools/tools/locale, written into the machine-generated Makefile under shared/colldef, passed to localedef -V, and then written into LC_COLLATE file headers. The initial version is 34.0. tools/tools/locale was recently updated to pull down 35.0, but the output hasn't been committed under share/colldef yet, so that will provide the first observable change when it happens. Other versioning schemes are possible in future, because the format is unspecified. Reviewed by: bapt, 0mp, kib, yuripv (albeit a long time ago) Differential Revision: https://reviews.freebsd.org/D17166 Notes: svn path=/head/; revision=367476