------------------------------------------------------------------------ r364849 | np | 2020-08-26 16:41:46 -0700 (Wed, 26 Aug 2020) | 5 lines MFC r358924: cxgbe(4): Do not display error messages related to the CLIP table if it's not in use by TOE or KTLS. ------------------------------------------------------------------------ r364851 | emaste | 2020-08-26 17:28:41 -0700 (Wed, 26 Aug 2020) | 4 lines MFC r364426: ipfw: style(9) fixes Submitted by: Neel Chauhan ------------------------------------------------------------------------ r364852 | kib | 2020-08-26 17:32:11 -0700 (Wed, 26 Aug 2020) | 3 lines MFC r364423: dl_iterate_phdr(3): provide exclusive locking for callback when statically linked. ------------------------------------------------------------------------ r364865 | avg | 2020-08-27 06:38:20 -0700 (Thu, 27 Aug 2020) | 11 lines MFC r354621-r354623 by imp: scsi_da state machine improvements r354621 Require and enforce that dareprobe() has to be called with the periph lock held. r354622 Update the softc state of the da driver before releasing the CCB. r354623 Add asserts for some state transitions ------------------------------------------------------------------------ r364869 | markj | 2020-08-27 07:50:48 -0700 (Thu, 27 Aug 2020) | 3 lines MFC r364437: Remove non-FreeBSD ifdefs from dt_link.c. ------------------------------------------------------------------------ r364870 | markj | 2020-08-27 07:51:44 -0700 (Thu, 27 Aug 2020) | 3 lines MFC r364410: Remove an unused parameter from map_table(). ------------------------------------------------------------------------ r364878 | vmaffione | 2020-08-27 12:12:39 -0700 (Thu, 27 Aug 2020) | 17 lines MFC r363995 em(4): honor vlanhwtag offload The FreeBSD em driver fails to properly reset the VME flag in the e1000 CTRL register oneg the following ifconfig command ifconfig em1 -vlanhwtag Tested on the e1000 device emulated by QEMU, and on a real NIC (chip=0x10d38086). PR: 236584 Submitted by: murat@sunnyvalley.io Reported by: murat@sunnyvalley.io Differential Revision: https://reviews.freebsd.org/D25286 ------------------------------------------------------------------------ r364880 | trasz | 2020-08-27 12:35:02 -0700 (Thu, 27 Aug 2020) | 9 lines MFC r352836: Move the SysV IPC stuff out of the 'abi' rc script, into a new one: 'sysvipc' - it has nothing to do with ABIs, and I'd like to later rename 'abi' to 'linux', which better describes its purpose and also matches the rcvar name. Sponsored by: The FreeBSD Foundation ------------------------------------------------------------------------ r364881 | trasz | 2020-08-27 12:37:28 -0700 (Thu, 27 Aug 2020) | 12 lines MFC r352999: Rename etc/rc.d/abi to etc/rc.d/linux; after moving out the SysV IPC stuff it's entirely linux-specific. MFC r353054: Add rcvar back to the linux rc script. Without it it was enabled unconditionally. Sponsored by: The FreeBSD Foundation ------------------------------------------------------------------------ r364882 | trasz | 2020-08-27 12:40:33 -0700 (Thu, 27 Aug 2020) | 7 lines MFC r354458: Extend the linux rc script to mount the neccessary file systems, set ELF fallback brand, and load pty(4). Sponsored by: The FreeBSD Foundation ------------------------------------------------------------------------ r364883 | trasz | 2020-08-27 12:41:31 -0700 (Thu, 27 Aug 2020) | 9 lines MFC r354690: Add 'linux_mounts_enable' rc.conf(5) variable, to make it possible to disable mounting Linux-specific filesystems under /compat/linux when 'linux_enable' is set to YES. Relnotes: yes Sponsored by: The FreeBSD Foundation ------------------------------------------------------------------------ r364884 | trasz | 2020-08-27 12:42:52 -0700 (Thu, 27 Aug 2020) | 9 lines MFC r362935: Make the linux rc script use linrdlnk by default. This fixes Linux gettyname(3), with caveats (see PR). PR: kern/240767 Sponsored by: The FreeBSD Foundation ------------------------------------------------------------------------ r364885 | trasz | 2020-08-27 12:44:08 -0700 (Thu, 27 Aug 2020) | 6 lines MFC r362943: Make linux(4) man page also mention /compat/linux/dev. Sponsored by: The FreeBSD Foundation ------------------------------------------------------------------------ r364897 | gjb | 2020-08-27 17:00:37 -0700 (Thu, 27 Aug 2020) | 6 lines Rename stable/12 to 12.2-PRERELEASE, marking the start of the 12.2 release cycle. Approved by: re (implicit) Sponsored by: Rubicon Communications, LLC (netgate.com) ------------------------------------------------------------------------ r364902 | philip | 2020-08-28 01:13:49 -0700 (Fri, 28 Aug 2020) | 11 lines MFC r350079: tzsetup: upgrade to zone1970.tab zone.tab is deprecated. Install zone1970.tab alongside it, and use it for tzsetup(8). This is also useful for other applications that need the modern better maintained file. PR: 243394 Submitted by: tmunro ------------------------------------------------------------------------ r364904 | gbe | 2020-08-28 01:50:07 -0700 (Fri, 28 Aug 2020) | 8 lines MFC r364450: gre(4): Mention sysctl for nesting gre tunnels PR: 228465 Submitted by: Sergey Akhmatov Reviewed by: bcr Approved by: bcr Differential Revision: https://reviews.freebsd.org/D26097 ------------------------------------------------------------------------ r364905 | avg | 2020-08-28 01:52:00 -0700 (Fri, 28 Aug 2020) | 2 lines MFC r354668 by imp: Fix a race between daopen and damediapoll ------------------------------------------------------------------------ r364906 | avg | 2020-08-28 01:54:27 -0700 (Fri, 28 Aug 2020) | 4 lines MFC r358662 by imp: xpt_async is submitting a CCB, not finishing it up, so use xpt_action() instead of xpt_done(). ------------------------------------------------------------------------ r364907 | avg | 2020-08-28 03:01:03 -0700 (Fri, 28 Aug 2020) | 2 lines MFC r358864 by imp: Eliminate xpt_copy_path. ------------------------------------------------------------------------ r364908 | avg | 2020-08-28 03:15:54 -0700 (Fri, 28 Aug 2020) | 2 lines MFC r363905: gpiokeys: add a basic manual page ------------------------------------------------------------------------ r364909 | avg | 2020-08-28 03:17:09 -0700 (Fri, 28 Aug 2020) | 2 lines MFC r363948: ccu_sun8i_r: minor comment update ------------------------------------------------------------------------ r364910 | avg | 2020-08-28 03:18:30 -0700 (Fri, 28 Aug 2020) | 2 lines MFC r364155: hook cp2112.4 to the build ------------------------------------------------------------------------ r364911 | avg | 2020-08-28 03:21:11 -0700 (Fri, 28 Aug 2020) | 2 lines MFC r364154: hook gpiokeys.4 to the build ------------------------------------------------------------------------ r364912 | avg | 2020-08-28 03:27:24 -0700 (Fri, 28 Aug 2020) | 2 lines MFC r363951,r364143,r364144: cp2112: driver for the namesake GPIO and I2C master gadget ------------------------------------------------------------------------ r364913 | avg | 2020-08-28 03:28:52 -0700 (Fri, 28 Aug 2020) | 4 lines MFC r364269 by eugen: Unbreak building cp2112(8) as a module... outside of kernel build environment. ------------------------------------------------------------------------ r364914 | avg | 2020-08-28 03:30:39 -0700 (Fri, 28 Aug 2020) | 2 lines MFC r364344: iicmux: fix a sign error in comparison ------------------------------------------------------------------------ r364915 | avg | 2020-08-28 03:32:03 -0700 (Fri, 28 Aug 2020) | 2 lines MFC r364146: aw_cir: add support for allwinner,sun6i-a31-ir (found, e.g., on h3) ------------------------------------------------------------------------ r364916 | avg | 2020-08-28 03:33:19 -0700 (Fri, 28 Aug 2020) | 2 lines MFC r364147: aw_cir: minor cleanups ------------------------------------------------------------------------ r364917 | avg | 2020-08-28 06:15:13 -0700 (Fri, 28 Aug 2020) | 2 lines MFC r362047,r362048: rework how ZVOLs are updated in response to DSL operations ------------------------------------------------------------------------ r364921 | gjb | 2020-08-28 09:40:38 -0700 (Fri, 28 Aug 2020) | 8 lines MFC r362718 (adrian): [fifolog] wrap the recno when we hit the end of the provided file size. Without this the log just keeps growing to infinity. Reported by: phk Sponsored by: Rubicon Communications, LLC (netgate.com) ------------------------------------------------------------------------ r364934 | jhb | 2020-08-28 12:52:16 -0700 (Fri, 28 Aug 2020) | 2 lines MFC 361613: Permit SO_NO_DDP and SO_NO_OFFLOAD to be read via getsockopt(2). ------------------------------------------------------------------------ r364938 | gonzo | 2020-08-28 13:25:03 -0700 (Fri, 28 Aug 2020) | 23 lines MFC r357250, r363926-r363927 r357250 (by ganbold@): Add USB3 related clock definitions for Rockchip RK3328 SoC. Reviewed by: manu r363926: Add flag for SYSCON-controlled clocks on Rockhip platform Ethernet clocks on RK3328 are controlled by SYSCON registers, so add RK_CLK_COMPOSITE_GRF flag to indicate that clock node should access grf registers instead of CRU's Reviewed by: manu Differential Revision: https://reviews.freebsd.org/D25918 r363927: Add clocks for ethernet controllers on RK3328 Reviewed by: manu Differential Revision: https://reviews.freebsd.org/D25918 ------------------------------------------------------------------------ r364939 | gonzo | 2020-08-28 13:37:57 -0700 (Fri, 28 Aug 2020) | 9 lines MFC r363187: Enable EFI system partition on amd64 and i386 VM images EFI support is a hard requirement for generating Hyper-V Gen2 VM images. Reviewed by: gjb Differential Revision: https://reviews.freebsd.org/D25655 ------------------------------------------------------------------------ r364947 | tuexen | 2020-08-28 23:54:39 -0700 (Fri, 28 Aug 2020) | 3 lines MFC r364937: Fix a regression with the explicit EOR mode I introduced in r364268. ------------------------------------------------------------------------ r364955 | trasz | 2020-08-29 05:54:17 -0700 (Sat, 29 Aug 2020) | 8 lines Drop the "nocover" option from the linux rc script; the option is not yet supported in 12-STABLE. This is a direct commit intended as a temporary workaround. Reported by: scf@ Sponsored by: The FreeBSD Foundation ------------------------------------------------------------------------ r364961 | sjg | 2020-08-29 09:23:00 -0700 (Sat, 29 Aug 2020) | 28 lines MFC loader fixes r361710: stand/uboot: fix setting of gateip.s_addr Missplaced paren. r361933: loader: install allow for more complete device spec in url Rework to simplify and impose sane url syntax. That is we allow for file://[devname[:fstype]]/package r362127: verify_pcr_export: bump kenv_mvallen if needed r362231: make KENV_MVALLEN tunable When doing secure boot, loader wants to export loader.ve.hashed the value of which typically exceeds KENV_MVALLEN. Replace use of KENV_MVALLEN with tunable kenv_mvallen. Add getenv_string_buffer() for the case where a stack buffer cannot be created and use uma_zone_t kenv_zone for suitably sized buffers. r364443: veloader: insist on verifying .4th .lua etc When files are read from .rc or .4th, verify_file is asked to guess the severity (VE_TRY,VE_WANT,VE_MUST) Reviewed by: imp, stevek, kevans ------------------------------------------------------------------------ r364962 | sjg | 2020-08-29 09:27:21 -0700 (Sat, 29 Aug 2020) | 9 lines mac_veriexec_fingerprint_check_vnode: v_writecount > 0 means active writers v_writecount can actually be < 0 for text, so check for v_writecount > 0 MFC of r362125 Reviewed by: stevek ------------------------------------------------------------------------ r364963 | jkim | 2020-08-29 11:11:37 -0700 (Sat, 29 Aug 2020) | 4 lines MFC: r364822, r364823 Fix Clang version detection and regen X86 assembly files. ------------------------------------------------------------------------ r364969 | jamie | 2020-08-29 15:09:36 -0700 (Sat, 29 Aug 2020) | 7 lines Fix a null dereference when debug.disablefullpath=1 and jail created with path=/. PR: 214881 Submitted by: aler (at) playground.ru Reported by: aler (at) playground.ru ------------------------------------------------------------------------ r364972 | markj | 2020-08-29 19:26:43 -0700 (Sat, 29 Aug 2020) | 5 lines MFC r364509: ng_ubt: Add a device ID. PR: 248838 ------------------------------------------------------------------------ r364974 | asomers | 2020-08-30 09:27:58 -0700 (Sun, 30 Aug 2020) | 18 lines MFC r364412: zfs: fix EIO accessing dataset after resuming interrupted receive ZFS unmounts a dataset while receiving into it and remounts it afterwards. But if ZFS is resuming an incomplete receive, it screws up and ends up with a dataset that is mounted, but returns EIO for every access. This commit fixes that condition. While the vulnerable code also exists in OpenZFS, the problem is not reproducible there. Apparently OpenZFS doesn't unmount the destination dataset during receive, like FreeBSD does. PR: 248606 Reviewed by: mmacy Sponsored by: Axcient Differential Revision: https://reviews.freebsd.org/D26034 ------------------------------------------------------------------------ r364981 | mav | 2020-08-30 17:59:02 -0700 (Sun, 30 Aug 2020) | 4 lines MFC r364309: Extend EIIOE field handling according to ses4r5 draft. It should not affect any existing systems. ------------------------------------------------------------------------ r364983 | mckusick | 2020-08-30 22:25:13 -0700 (Sun, 30 Aug 2020) | 4 lines MFC of 364895 Comment on when and why pathnames are deleted from the name cache. ------------------------------------------------------------------------ r364985 | trasz | 2020-08-31 05:14:20 -0700 (Mon, 31 Aug 2020) | 7 lines In 13-CURRENT, the linux rc script uses "nocover" mount option to avoid mounting required filesystems twice. However, this option hasn't been MFC'd. Implement its functionality in a different way, by stating the mount point. Submitted by: sigsys@gmail.com Differential Revision: https://reviews.freebsd.org/D26217 ------------------------------------------------------------------------ r364987 | markj | 2020-08-31 07:23:41 -0700 (Mon, 31 Aug 2020) | 3 lines MFC r364302, r364306: Remove the VM map zone. ------------------------------------------------------------------------ r364988 | markj | 2020-08-31 07:47:23 -0700 (Mon, 31 Aug 2020) | 9 lines Stop accounting for MAX_KMAP when allocating UMA boot pages. With r364987 kernel maps are allocated statically. In head, a different mechanism is used to bootstrap UMA. This is a direct commit to stable/12. Reported by: Jenkins ------------------------------------------------------------------------ r365007 | markj | 2020-08-31 12:59:05 -0700 (Mon, 31 Aug 2020) | 8 lines Revert r364987, r364988. The removal of the kernel_map symbol breaks at least one out-of-tree module, the nvidia binary driver. Revert the removal for now to maintain KBI compatibility. Reported by: np ------------------------------------------------------------------------ r365010 | emaste | 2020-08-31 14:28:09 -0700 (Mon, 31 Aug 2020) | 7 lines MFC r364994: dhclient: improve error handling parsing option 119 Reported by: Shlomi Oberman, JSOF Submitted by: delphij Reviewed by: markj Tested by: markj ------------------------------------------------------------------------ r365034 | trasz | 2020-09-01 05:09:13 -0700 (Tue, 01 Sep 2020) | 8 lines MFC r363304: Add a trivial linux(4) splice(2) implementation, which simply returns EINVAL. Fixes grep (grep-3.1-2build1). PR: 218699 Sponsored by: The FreeBSD Foundation ------------------------------------------------------------------------ r365035 | trasz | 2020-09-01 05:11:59 -0700 (Tue, 01 Sep 2020) | 6 lines MFC r363305: Regen after r363304. Sponsored by: The FreeBSD Foundation ------------------------------------------------------------------------ r365038 | markj | 2020-09-01 06:58:17 -0700 (Tue, 01 Sep 2020) | 5 lines MFC r364779: sdhci(4): Recognize the Texas Instruments PCIxx12 card reader. PR: 248650 ------------------------------------------------------------------------ r365059 | bz | 2020-09-01 12:54:43 -0700 (Tue, 01 Sep 2020) | 12 lines MFC r364018: IPV6_PKTINFO support for v4-mapped IPv6 sockets When using v4-mapped IPv6 sockets with IPV6_PKTINFO we do not respect the given v4-mapped src address on the IPv4 socket. Implement the needed functionality. This allows single-socket UDP applications (such as OpenVPN) to work better on FreeBSD. Requested by: Gert Doering (gert greenie.net), pfsense Tested by: Gert Doering (gert greenie.net) ------------------------------------------------------------------------ r365063 | vmaffione | 2020-09-01 13:45:33 -0700 (Tue, 01 Sep 2020) | 12 lines MFC r364164 iflib: refactor netmap_fl_refill and fix off-by-one issue First, fix the initialization of the fl->ifl_rxd_idxs array, which was affected by an off-by-one bug. Once there, refactor the function to use better names for local variables, optimize the variable assignments, and merge the bus_dmamap_sync() inner loop with the outer one. PR: 248494 ------------------------------------------------------------------------ r365064 | vmaffione | 2020-09-01 13:47:59 -0700 (Tue, 01 Sep 2020) | 12 lines MFC r364165 iflib: netmap: improve rxsync to support IFLIB_HAS_RXCQ For drivers with IFLIB_HAS_RXCQ set, there is a separate completion queue. In this case, the netmap rxsync routine needs to update rxq->ifr_cq_cidx in the same way it is updated by iflib_rxeof(). This improves the situation for vmx(4) and bnxt(4) drivers, which use iflib and have the IFLIB_HAS_RXCQ bit set. PR: 248494 ------------------------------------------------------------------------ r365065 | vmaffione | 2020-09-01 13:50:16 -0700 (Tue, 01 Sep 2020) | 10 lines MFC r364655 iflib: fix isc_rxd_flush call in netmap_fl_refill() The semantic of the pidx argument of isc_rxd_flush() is the last valid index of in the free list, rather than the next index to be published. However, netmap was still using the old convention. While there, also refactor the netmap_fl_refill() to simplify a little bit and add an assertion. ------------------------------------------------------------------------ r365066 | vmaffione | 2020-09-01 13:58:23 -0700 (Tue, 01 Sep 2020) | 14 lines r364770 iflib: netmap: publish all the receive buffer At initialization time, the netmap RX refill function used to prepare the NIC RX ring with N-1 buffers rather than N (with N equal to the number of descriptors in the NIC RX ring). This is not how netmap is supposed to work, as it would keep kring->nr_hwcur not in sync with the NIC "next index to refill" (i.e., fl->ifl_pidx). Instead we prepare N buffers, although we still publish (with isc_rxd_flush()) only the first N-1 buffers, to avoid the NIC producer pointer to overrun the NIC consumer pointer (for NICs where this is a real issue, e.g. Intel ones). ------------------------------------------------------------------------ r365233 | kevans | 2020-09-01 18:35:45 -0700 (Tue, 01 Sep 2020) | 6 lines MFC r364943: carrot: update bundle Stats: - Seven (7) removed - Four (4) added ------------------------------------------------------------------------ r365239 | hselasky | 2020-09-02 03:10:28 -0700 (Wed, 02 Sep 2020) | 7 lines MFC r364347: Check the XHCI endpoint state before issuing XHCI endpoint commands. Differential Revision: https://reviews.freebsd.org/D26064 Reviewed by: kp@ and bz@ Sponsored by: Mellanox Technologies ------------------------------------------------------------------------ r365241 | hselasky | 2020-09-02 03:13:15 -0700 (Wed, 02 Sep 2020) | 6 lines MFC r364374: Print current buffer latency in dmesg for the USB audio driver and not just the maximum. Sponsored by: Mellanox Technologies ------------------------------------------------------------------------ r365243 | hselasky | 2020-09-02 03:16:35 -0700 (Wed, 02 Sep 2020) | 5 lines MFC r364758: Add mlx5en(4) to the list of supported netdump network drivers. Sponsored by: Mellanox Technologies ------------------------------------------------------------------------ r365263 | emaste | 2020-09-02 10:46:56 -0700 (Wed, 02 Sep 2020) | 4 lines MFC r364790: date.1: note possibly surprising behaviour of -j -f PR: 248918 ------------------------------------------------------------------------ r365270 | jhb | 2020-09-02 12:02:48 -0700 (Wed, 02 Sep 2020) | 5 lines MFC 361632: Honor opt_ipsec.h from kernel builds. To make this simpler, set the default contents of opt_ipsec.h for standalone modules in sys/conf/config.mk. ------------------------------------------------------------------------ r365277 | jhb | 2020-09-02 13:36:33 -0700 (Wed, 02 Sep 2020) | 4 lines MFC 361633: Consistently include opt_ipsec.h for consumers of . This fixes ipsec.ko to include all of IPSEC_DEBUG. ------------------------------------------------------------------------ r365281 | jhb | 2020-09-02 14:36:55 -0700 (Wed, 02 Sep 2020) | 23 lines MFC 361638,361712: Only build ipsec modules for kernels with IPSEC_SUPPORT. 361638: Only build ipsec modules if the kernel includes IPSEC_SUPPORT. Honoring the kernel-supplied opt_ipsec.h in r361632 causes builds of ipsec modules to fail if the kernel doesn't include IPSEC_SUPPORT. However, the module can never be loaded into such a kernel, so only build the modules if the kernel includes IPSEC_SUPPORT. 361712: (kevans) modules: don't build ipsec/tcpmd5 if the kernel is configured for IPSEC IPSEC_SUPPORT can currently only cope with either IPSEC || IPSEC_SUPPORT, not both. Refrain from building if IPSEC is set, as the resulting module won't be able to load anyways if it's built into the kernel. KERN_OPTS is safe here; for tied modules, it will reflect the kernel configuration. For untied modules, it will defer to whatever is set in ^/sys/conf/config.mk, which doesn't set IPSEC for modules. The latter situation has some risk to it for uncommon scenarios, but such is the life of untied kernel modules. ------------------------------------------------------------------------ r365292 | rscheff | 2020-09-03 01:38:04 -0700 (Thu, 03 Sep 2020) | 19 lines MFC r364195: Improve SACK support code for RFC6675 and PRR Adding proper accounting of sacked_bytes and (per-ACK) delivered data to the SACK scoreboard. This will allow more aspects of RFC6675 to be implemented as well as Proportional Rate Reduction (RFC6937). Prior to this change, the pipe calculation controlled with net.inet.tcp.rfc6675_pipe was also susceptible to incorrect results when more than 3 (or 4) holes in the sequence space were present, which can no longer all fit into a single ACK's SACK option. Reviewed by: kbowling, rgrimes (mentor) Approved by: rgrimes (blanket) MFC after: 3 weeks Sponsored by: NetApp, Inc. Differential Revision: https://reviews.freebsd.org/D18624 ------------------------------------------------------------------------ r365293 | rscheff | 2020-09-03 01:41:38 -0700 (Thu, 03 Sep 2020) | 17 lines MFC r364196: TCP Cubic: After leaving slowstart fix unintended cwnd jump. Initializing K to zero in D23655 introduced a miscalculation, where cwnd would suddenly jump to cwnd_max instead of gradually increasing, after leaving slow-start. Properly calculating K instead of resetting it to zero resolves this issue. Also making sure, that cwnd is recalculated at the earliest opportunity once slow-start is over. Reported by: chengc_netapp.com Reviewed by: chengc_netapp.com, tuexen (mentor), rgrimes (mentor) Approved by: tuexen (mentor), rgrimes (mentor) MFC after: 3 weeks Sponsored by: NetApp, Inc. Differential Revision: https://reviews.freebsd.org/D25746 ------------------------------------------------------------------------ r365294 | rscheff | 2020-09-03 01:45:21 -0700 (Thu, 03 Sep 2020) | 19 lines MFC r364197: TCP Cubic: Have Fast Convergence Heuristic work for ECN, and align concave region The Cubic concave region was not aligned nicely for the very first exit from slow start, where a 50% cwnd reduction is done instead of the normal 30%. This addresses an issue, where a short line-rate burst could result from that sudden jump of cwnd. In addition, the Fast Convergence Heuristic has been expanded to work also with ECN induced congestion response. Submitted by: chengc_netapp.com Reported by: chengc_netapp.com Reviewed by: tuexen (mentor), rgrimes (mentor) Approved by: tuexen (mentor), rgrimes (mentor) MFC after: 3 weeks Sponsored by: NetApp, Inc. Differential Revision: https://reviews.freebsd.org/D25976 ------------------------------------------------------------------------ r365295 | rscheff | 2020-09-03 02:09:44 -0700 (Thu, 03 Sep 2020) | 13 lines MFC r364354: TCP Cubic: recalculate cwnd for every ACK. Since cubic calculates cwnd based on absolute time, retaining RFC3465 (ABC) once-per-window updates can lead to dramatic changes of cwnd in the convex region. Updating cwnd for each incoming ack minimizes this delta, preventing unintentional line-rate bursts. Reviewed by: chengc_netapp.com, tuexen (mentor) MFC after: 2 weeks Sponsored by: NetApp, Inc. Differential Revision: https://reviews.freebsd.org/D26060 ------------------------------------------------------------------------ r365297 | gbe | 2020-09-03 06:22:09 -0700 (Thu, 03 Sep 2020) | 15 lines MFC r364449, r365004: ls(1): Update POSIX conformance - Update the POSIX references for non-standard ls(1) options - Simplify the STANDARDS section by mention both supported POSIX versions Verified by checking [1]. [1] https://pubs.opengroup.org/onlinepubs/9699919799.2016edition/toc.htm PR: 140435 (based on) Submitted by: Dan Lukes Reviewed by: hrs, bcr Approved by: hrs, bcr Differential Revision: https://reviews.freebsd.org/D26210 ------------------------------------------------------------------------ r365298 | markj | 2020-09-03 06:56:30 -0700 (Thu, 03 Sep 2020) | 5 lines MFC r364873: snd_ich(4): Handle errors from ich_init() properly during resume. PR: 248941 ------------------------------------------------------------------------ r365299 | markj | 2020-09-03 06:56:47 -0700 (Thu, 03 Sep 2020) | 5 lines MFC r364871: asmc(4): Handle errors from asmc_key_read() properly. PR: 248939 ------------------------------------------------------------------------ r365300 | markj | 2020-09-03 06:57:05 -0700 (Thu, 03 Sep 2020) | 3 lines MFC r364876: Fix writing of the final block of encrypted, compressed kernel dumps. ------------------------------------------------------------------------ r365301 | markj | 2020-09-03 06:57:20 -0700 (Thu, 03 Sep 2020) | 5 lines MFC r364872: fdc(4): Handle errors from fdc_in() properly. PR: 248940 ------------------------------------------------------------------------ r365317 | mhorne | 2020-09-03 16:17:25 -0700 (Thu, 03 Sep 2020) | 4 lines MFC r364193: Enable interrupts while handling traps ------------------------------------------------------------------------ r365320 | jamie | 2020-09-03 17:22:24 -0700 (Thu, 03 Sep 2020) | 8 lines MFC r364850: Don't allow jail.conf variables to have the same names as jail parameters. It was already not allowed in many cases, but crashed instead of giving an error. PR: 248444 ------------------------------------------------------------------------ r365321 | jamie | 2020-09-03 17:24:31 -0700 (Thu, 03 Sep 2020) | 7 lines MFC r364970: Add __BEGIN_DECLS to jail.h to keep C++ happy. PR: 238928 Reported by: yuri@ ------------------------------------------------------------------------ r365322 | gonzo | 2020-09-03 17:25:02 -0700 (Thu, 03 Sep 2020) | 6 lines MFC r363122: Assigned clocks: fix off-by-one bug, don't leak allocated memory. MFC after: 1 week ------------------------------------------------------------------------ r365326 | mw | 2020-09-04 04:22:18 -0700 (Fri, 04 Sep 2020) | 7 lines MFC: r346593 Add barrier in buf ring peek function to prevent race in ARM and ARM64. Obtained from: Semihalf Sponsored by: Amazon, Inc. ------------------------------------------------------------------------ r365329 | markj | 2020-09-04 06:17:55 -0700 (Fri, 04 Sep 2020) | 5 lines MFC r365060: qlxgb: Initialize if_mtu before setting max_frame_size. PR: 249050 ------------------------------------------------------------------------ r365339 | erj | 2020-09-04 14:21:23 -0700 (Fri, 04 Sep 2020) | 5 lines MFC r365231: ixl(4): Add support for X710-T*L devices PR: 249058 Sponsored by: Intel Corporation ------------------------------------------------------------------------ r365356 | kevans | 2020-09-04 19:16:10 -0700 (Fri, 04 Sep 2020) | 15 lines MFC r360035-r360037: Split XDR off, minimize ZFS dependency __FreeBSD_version bumped to indicate the change. r360035: Move M_RPC malloc type into XDR. Both RPC and XDR libraries use this type, but since RPC depends on XDR (not vice versa) we need it defined in XDR to make the module loadable without RPC. r360036: Split XDR into separate kernel module. Make krpc depend on xdr. r360037: Make ZFS depend on xdr.ko only. It doesn't need kernel RPC. ------------------------------------------------------------------------ r365357 | kevans | 2020-09-04 19:22:07 -0700 (Fri, 04 Sep 2020) | 15 lines MFC r365248: caroot: properly remove old distrusted roots The proper procedure was not followed in r364943; all of these that were deleted should have instead been moved over to the blacklist so that certctl can DTRT. Users must still `certctl rehash` after this, but this should generally be done by one of mergemaster/etcupdate/freebsd-update/pkgbase already; note that freebsd-update doesn't come into play for this particular update, as these have not yet made it into a release. Future work (after svn -> git) will likely change the script that updatecert invokes to facilitate the process, rather than trusting that kevans or whomever updates in the future will remember. ------------------------------------------------------------------------ r365359 | kib | 2020-09-05 03:12:06 -0700 (Sat, 05 Sep 2020) | 3 lines MFC r361967 (by mjg), r362910 (by mjg), r364495: Fix several issues with process group orphanage. ------------------------------------------------------------------------ r365364 | mr | 2020-09-05 10:02:48 -0700 (Sat, 05 Sep 2020) | 8 lines MFC r363095: Handle device removal and removal+add cases to fix infinity rate. PR: 219829 Submitted by: ota@j.email.ne.jp Reported by: rezo@live.cn Differential Revision: https://reviews.freebsd.org/D25226 ------------------------------------------------------------------------ r365374 | zec | 2020-09-06 03:18:59 -0700 (Sun, 06 Sep 2020) | 10 lines MFC r364973: Driver for 4x10Gb Ethernet reference NIC FPGA design for NetFPGA SUME development board. Submitted by: Denis Salopek Reviewed by: zec, bz (src); rgrimes, bcr (manpages) Sponsored by: Google Summer of Code 2020 Differential Revision: https://reviews.freebsd.org/D26074 ------------------------------------------------------------------------ r365376 | zeising | 2020-09-06 04:23:58 -0700 (Sun, 06 Sep 2020) | 13 lines drm: Update deprecation message Update the deprecation message in the drm1 (aka legacy drm or drm-legacy) drivers to not point towards the drm-legacy-kmod port, as that is being deprecated. This is a direct commit to stable/12 since the drm1 code has been removed from 13 already. Reviewed by: imp Approved by: imp Differential Revision: https://reviews.freebsd.org/D26175 ------------------------------------------------------------------------ r365377 | zeising | 2020-09-06 04:29:06 -0700 (Sun, 06 Sep 2020) | 10 lines MFC: r364737, r365264 and r365287 Together, these three revisions improve the drm2 (aka legacy drm or drm-legacy) drivers to point towards graphics/drm-kmod where relevant, and to remove references to graphics/drm-legacy-kmd as that is being deprecated. Since part of the drm2 drivers are still used on arm, arm is currently excluded from the deprecation message. Approved by: imp, manu (implicit, MFC) ------------------------------------------------------------------------ r365379 | mw | 2020-09-06 07:13:51 -0700 (Sun, 06 Sep 2020) | 37 lines MFC: Merge ENA v2.0.0 driver r348416 Update ENA version to v2.0.0 r348414 Fix ENA manual issues r348413 Improve ENA reset handling r348412 Fix NULL pointer dereference in ena_up() r348411 Unify new line characters in the ENA driver r348410 Fix Tx offloads for fragmented pkt headers in ENA r348409 Split ENA reset routine into restore and destroy stages r348408 Use bitfield for storing global ENA device states r348407 Fix error handling when ENA reset fails r348406 Fill bdf field of the host_info structure in ENA r348405 Add additional doorbells on ENA Tx path r348404 Limit maximum size of Rx refill threshold in ENA r348403 Add support for the LLQv2 and WC in ENA r348402 Lock optimization in ENA r348401 Add tuneable drbr ring size and hw queues depth for ENA r348400 Fix error in validate_tx_req_id() in ENA r348399 Change attach order to prevent crash upon failure in ENA r348398 Change order of ifp release on ENA detach r348397 Check for number of MSI-x upon partial allocation in ENA r348396 Set error value when allocation of IO irq fails in ENA r348395 Set vaddr and paddr as NULL when DMA alloc fails in ENA r348394 Fix DMA synchronization in the ENA driver Tx and Rx paths r348393 Check for missing MSI-x and Tx completions in ENA r348392 Fill number of CPUs field on ENA host_info structure r348391 Print ENA Tx error conditionally r348390 Trigger reset in ENA if there are too many Rx descriptors r348389 Remove RSS support in ENA r348388 Add notification AENQ handler for ENA r348387 Print information when ENA admin error occurs r348386 Do not specify active media type in ENA r348385 Adjust ENA driver to the new ena-com Obtained from: Semihalf Sponsored by: Amazon, Inc. ------------------------------------------------------------------------ r365380 | mw | 2020-09-06 07:23:31 -0700 (Sun, 06 Sep 2020) | 16 lines MFC: ENA netmap support and bug fixes r363638 Fix ENA build when integrated into kernel r354242 Make valdiate_rx_req_id static inline because it uses other static r354225 Update ENA version to v2.1.0 r354224 Add support for ENA NETMAP partial initialization r354223 Add support for ENA NETMAP Tx r354222 Add support for ENA NETMAP Rx r354221 Introduce NETMAP support in ENA r354220 Split Rx/Tx from initialization code in ENA driver r354219 Fix ENA keep-alive timeout due to prolonged reset r354218 Add WC support for arm64 in the ENA driver Obtained from: Semihalf Sponsored by: Amazon, Inc. ------------------------------------------------------------------------ r365381 | mw | 2020-09-06 07:41:35 -0700 (Sun, 06 Sep 2020) | 24 lines MFC: Merge ENA v2.2.0 driver r361530 Update ENA driver version to v2.2.0 r361529 Refactor ena_tx_map_mbuf() function r361528 Fix double-free bug within ena_detach() r361527 Allow disabling meta caching for ENA Tx path r361526 Create ENA IO queues with optional backoff r361525 Add sysctl node for ENA IO queues number adjustment r361524 Fix assumptions about number of IO queues in the ENA r361523 Rework ENA Tx buffer ring size reconfiguration r361521 Rework ENA Rx queue size configuration r361518 Improve indentation in ena_up() and ena_down() r361517 Expose argument names for non static ENA driver functions r361516 Use single global lock in the ENA driver r361515 Add trigger reset function in the ENA driver r361514 Provide ENA driver version in a sysctl node r361513 Remove unused argument from static function in ena.c r361512 Enable Tx drops reporting in the ENA driver r361511 Adjust ENA driver to the new HAL r358289 Rework and simplify Tx DMA mapping in ENA Obtained from: Semihalf Sponsored by: Amazon, Inc. ------------------------------------------------------------------------ r365383 | wulf | 2020-09-06 10:40:35 -0700 (Sun, 06 Sep 2020) | 11 lines MFC r364964: LinuxKPI: Implement ksize() function. In Linux, ksize() gets the actual amount of memory allocated for a given object. This commit adds malloc_usable_size() to FreeBSD KPI which does the same. It also maps LinuxKPI ksize() to newly created function. ksize() function is used by drm-kmod. Reviewed by: hselasky, kib Differential Revision: https://reviews.freebsd.org/D26215 ------------------------------------------------------------------------ r365384 | gonzo | 2020-09-06 11:20:25 -0700 (Sun, 06 Sep 2020) | 10 lines MFC r353419: Provide new KPI for network drivers to access lists of interface addresses. The KPI doesn't reveal neither how addresses are stored, how the access to them is synchronized, neither reveal struct ifaddr and struct ifmaddr. Reviewed by: gallatin, erj, hselasky, philip, stevek Differential Revision: https://reviews.freebsd.org/D21943 ------------------------------------------------------------------------ r365385 | gonzo | 2020-09-06 11:25:50 -0700 (Sun, 06 Sep 2020) | 16 lines MFC r350418 by br: Add glue driver for Altera SOCFPGA Ethernet MAC (EMAC) found in Terasic DE10-Pro (an Intel Stratix 10 GX/SX FPGA Development Kit). The Altera EMAC is an instance of Synopsys DesignWare Gigabit MAC. This driver sets correct clock range for MDIO interface on Intel Stratix 10 platform. This is required due to lack of support for clock manager device for this platform that could tell us the clock frequency value for ethernet clock domain. Sponsored by: DARPA, AFRL ------------------------------------------------------------------------ r365386 | gonzo | 2020-09-06 11:27:36 -0700 (Sun, 06 Sep 2020) | 4 lines MFC r353843 by glebius: Convert to if_foreach_llmaddr() KPI. ------------------------------------------------------------------------ r365387 | gonzo | 2020-09-06 11:48:50 -0700 (Sun, 06 Sep 2020) | 29 lines MFC r360467, r362399, r362405, r362415 r360467 by mmel: Fix style(9). Strip write only variables. Not a functional change. r362399 by mmel: Use naming nomenclature used in DesignWare TRM. Use naming nomenclature used in DesignWare TRM. This driver was written by using Altera (now Intel) documentation for Arria FPGA manual. Unfortunately this manual used very different (and in some cases opposite naming) for registers and descriptor fields. Unfortunately, this makes future expansion extremely hard. Should not been functional change. r362405 by mmel: Finish renaming in if_dwc. By using DWC TRM terminology, normal descriptor format should be named extended and alternate descriptor format should be named normal. Should not been functional change. r362415 by mmel: Improve if_dwc: - refactorize packet receive path. Make sure that we don't leak mbufs and/or that we don't create holes in RX descriptor ring - slightly simplify handling with TX descriptors ------------------------------------------------------------------------ r365388 | gonzo | 2020-09-06 12:03:19 -0700 (Sun, 06 Sep 2020) | 22 lines MFC r362736, r364088 r362736: Configure rx_delay/tx_delay values for RK3399/RK3328 GMAC For 1000Mb mode to work reliably TX/RX delays need to be configured between the TX/RX clock and the respective signals on the PHY to compensate for differing trace lengths on the PCB. Reviewed by: manu r364088: Improve Rockchip's integration of if_dwc - Do not rely on U-Boot for clocks configuration, enable and set frequencies in the driver's attach method. - Adjust MAC settings according to detected linespeed on RK3399 and RK3328. - Add support for RMII PHY mode on RK3328. Reviewed by: manu Differential Revision: https://reviews.freebsd.org/D26006 ------------------------------------------------------------------------ r365390 | gonzo | 2020-09-06 13:03:13 -0700 (Sun, 06 Sep 2020) | 6 lines MFC r364098 by lwhsu: Fix armv{6,7} build after r364088 Sponsored by: The FreeBSD Foundation ------------------------------------------------------------------------ r365392 | avg | 2020-09-06 23:14:42 -0700 (Sun, 06 Sep 2020) | 5 lines MFC r364145: gpiokeys: add evdev support Only linux,code is supported as it maps 1:1 to evdev key codes. No reverse mapping for freebsd,code yet. ------------------------------------------------------------------------ r365393 | avg | 2020-09-06 23:21:01 -0700 (Sun, 06 Sep 2020) | 2 lines MFC r364148: aw_cir: lower activation threshold to support NECx protocol ------------------------------------------------------------------------ r365394 | avg | 2020-09-06 23:22:30 -0700 (Sun, 06 Sep 2020) | 2 lines MFC r364149: aw_cir: in pulse encoding actual length is one greater than value ------------------------------------------------------------------------ r365405 | kib | 2020-09-07 03:34:22 -0700 (Mon, 07 Sep 2020) | 3 lines MFC r364999: mlx5_core: Import PDDR register definitions ------------------------------------------------------------------------ r365406 | kib | 2020-09-07 03:35:22 -0700 (Mon, 07 Sep 2020) | 3 lines MFC r365000: mlx5_core: add mlx5_query_pddr(). ------------------------------------------------------------------------ r365407 | kib | 2020-09-07 03:36:07 -0700 (Mon, 07 Sep 2020) | 3 lines MFC r365001: mlx5en: Implement SIOCGIFDOWNREASON. ------------------------------------------------------------------------ r365408 | kib | 2020-09-07 03:36:53 -0700 (Mon, 07 Sep 2020) | 3 lines MFC r365002: mlx5 sriov: add error message for failed MAC programming on VF. ------------------------------------------------------------------------ r365409 | kib | 2020-09-07 03:37:44 -0700 (Mon, 07 Sep 2020) | 3 lines MFC r365003: mlx5 sriov: Add controls for VFs to set port/node GUIDs. ------------------------------------------------------------------------ r365416 | bz | 2020-09-07 07:22:27 -0700 (Mon, 07 Sep 2020) | 17 lines MFC r364466: After the clang/llvm version 11 import LLD_VERSION is no longer used upstream so Version.inc now only defines LLD_VERSION_STRING. This breaks the WANT_LINKER_VERSION magic and might lead to us building more than needed (e.g., for croos-tools). Change the awk script to parse LLD_VERSION_STRING instead of LLD_VERSION, which not only unbreaks the current situation but should also be backwards compatible as dim points out. Merging this before r364284 will ensure that stable/12 won't break. PR: 248818 Reviewed by: emaste, dim (seems right and the way to go) ------------------------------------------------------------------------ r365417 | gbe | 2020-09-07 07:38:38 -0700 (Mon, 07 Sep 2020) | 7 lines MFC r365008: vtnet(4): improve the wording PR: 247936 Submitted by: PauAmma Reported by: PauAmma Differential Revision: https://reviews.freebsd.org/D26244 ------------------------------------------------------------------------ r365418 | gbe | 2020-09-07 07:40:33 -0700 (Mon, 07 Sep 2020) | 6 lines MFC r365328: fortune(6): Grammar fix for a hint on searching ports PR: 249078 Submitted by: PauAmma Reported by: PauAmma ------------------------------------------------------------------------ r365420 | blackend | 2020-09-07 09:09:37 -0700 (Mon, 07 Sep 2020) | 7 lines MFC r364682: Add missing Korean doc package entry, remove non-existent Serbian doc package entry. Approved by: re (gjb) ------------------------------------------------------------------------ r365421 | blackend | 2020-09-07 09:11:49 -0700 (Mon, 07 Sep 2020) | 4 lines MFC r364684: s/redundacy/redundancy ------------------------------------------------------------------------ r365423 | emaste | 2020-09-07 10:31:58 -0700 (Mon, 07 Sep 2020) | 8 lines TPC rack: use #error rather than syntax error Until the changes to make this a proper dependency are merged, avoid using a syntax error for a user-facing error report. PR: 249037 Suggested by: avg ------------------------------------------------------------------------ r365425 | gonzo | 2020-09-07 11:47:25 -0700 (Mon, 07 Sep 2020) | 8 lines Revert r364939 and add a stable/12 approach for populating the ESP make_esp_file is not available in stable/12 so r364939 broke VM-related targets. Revert offending commit and use pre-r342283 approach to populate ESP partition. PR: 249168 Tested on: VirtualBox, Hyper-V v2 VM ------------------------------------------------------------------------ r365426 | dim | 2020-09-07 12:29:06 -0700 (Mon, 07 Sep 2020) | 6 lines MFC r364081: Follow-up to r358851 (llvm-project 10.0.0-rc3 import), where I added subdirectories for compiler-rt's internal fuzzer, profile and xray headers, but forgot to add installing those headers themselves. ------------------------------------------------------------------------ r365427 | dim | 2020-09-07 12:35:30 -0700 (Mon, 07 Sep 2020) | 32 lines MFC r364732: Merge commit cde8f4c16 from llvm git (by me): Move special va_list handling to kmp_os.h Instead of copying and pasting the same #ifdef expressions in multiple places, define a type and a pair of macros in kmp_os.h, to handle whether va_list is pointer-like or not: * kmp_va_list is the type to use for __kmp_fork_call() * kmp_va_deref() dereferences a va_list, if necessary * kmp_va_addr_of() takes the address of a va_list, if necessary Also add FreeBSD to the list of OSes that has a non pointer-like va_list. This can now be easily extended to other OSes too. Reviewed By: AndreyChurbanov Differential Revision: https://reviews.llvm.org/D86397 This should enable building of LLVM's OpenMP on AArch64. Addition to share/mk will follow in a subsequent commit. PR: 248864 MFC r364733: After r364732, we can now enable MK_OPENMP for aarch64 by default. PR: 248864 ------------------------------------------------------------------------ r365430 | dim | 2020-09-07 13:17:13 -0700 (Mon, 07 Sep 2020) | 12 lines MFC r365429: Merge commit 47b0262d3 from llvm git (by me): Add include to kmp_os.h, to get the va_list type, required after cde8f4c164a2. Sort system includes, while here. The original merged commit works fine by itself on head, but fails to compile on stable branches because stdarg.h is not implicitly pulled in. PR: 248864 ------------------------------------------------------------------------ r365434 | kevans | 2020-09-07 16:20:02 -0700 (Mon, 07 Sep 2020) | 4 lines MFC r364982: ipv6: quit dropping packets looping back on p2p interfaces PR: 247718 ------------------------------------------------------------------------ r365435 | markj | 2020-09-07 16:21:53 -0700 (Mon, 07 Sep 2020) | 5 lines MFC r364993: rtwn(4): Add support for the Belkin N300. PR: 249034 ------------------------------------------------------------------------ r365436 | markj | 2020-09-07 16:22:16 -0700 (Mon, 07 Sep 2020) | 5 lines MFC r364995: ggated(8): Avoid doubly opening the requested disk device. PR: 132845 ------------------------------------------------------------------------ r365443 | grehan | 2020-09-07 20:55:49 -0700 (Mon, 07 Sep 2020) | 5 lines MFC 364339 Allow guest device MMIO access from bootmem memory segments. Differential Revision: https://reviews.freebsd.org/D25955 ------------------------------------------------------------------------ r365448 | rew | 2020-09-08 00:37:45 -0700 (Tue, 08 Sep 2020) | 6 lines MFC r364369: bectl(8): Fix output of 'bectl list' for the 'Mountpoint' column. PR: 241064 ------------------------------------------------------------------------ r365452 | markj | 2020-09-08 05:37:18 -0700 (Tue, 08 Sep 2020) | 3 lines MFC r365047: Correct the D definition for EINTEGRITY. ------------------------------------------------------------------------ r365453 | markj | 2020-09-08 05:37:46 -0700 (Tue, 08 Sep 2020) | 3 lines MFC r365048: Tighten frame pointer checking in DTrace's amd64 stack unwinder. ------------------------------------------------------------------------ r365454 | markj | 2020-09-08 05:38:34 -0700 (Tue, 08 Sep 2020) | 3 lines MFC r365043-r365046: pw: Coverity fixes. ------------------------------------------------------------------------ r365465 | jhb | 2020-09-08 09:43:32 -0700 (Tue, 08 Sep 2020) | 7 lines MFC 354970: Add a kmod.opts.mk. This Makefile sets KERN_OPTS. This permits kernel module Makefiles to use KERN_OPTS to control the value of variables such as SRCS that are used by bsd.kmod.mk for KERN_OPTS values that honor WITH/WITHOUT options for standalone builds. ------------------------------------------------------------------------ r365467 | jhb | 2020-09-08 11:29:20 -0700 (Tue, 08 Sep 2020) | 2 lines MFC 361634: Add opt_ipsec.h to fix standalone builds after r361633. ------------------------------------------------------------------------ r365468 | jhb | 2020-09-08 11:33:41 -0700 (Tue, 08 Sep 2020) | 2 lines Partial MFC 357275: if_vlan grew a dependency on opt_inet6.h in r356993 ------------------------------------------------------------------------ r365469 | jhb | 2020-09-08 11:49:58 -0700 (Tue, 08 Sep 2020) | 10 lines Use kmod.opts.mk in sys/modules/tcp/Makefile to fix standalone builds. This was included in the original commit to head that added use of KERN_OPTS (r361638) but was left out of the MFC since kmod.opts.mk hadn't been MFC'd at the time. It has since been merged. This is a direct commit to stable/11 and stable/12. Reported by: Eugene Grosbein ------------------------------------------------------------------------ r365470 | jhb | 2020-09-08 11:58:38 -0700 (Tue, 08 Sep 2020) | 2 lines MFC 361764: Revise r361712 to disable tcpmd5.ko for 'options TCP_SIGNATURE' ------------------------------------------------------------------------ r365471 | dim | 2020-09-08 13:02:08 -0700 (Tue, 08 Sep 2020) | 29 lines MFC r364753: Add atomic and bswap functions to libcompiler_rt There have been several mentions on our mailing lists about missing atomic functions in our system libraries (e.g. __atomic_load_8 and friends), and recently I saw __bswapdi2 and __bswapsi2 mentioned too. To address this, add implementations for the functions from compiler-rt to the system compiler support libraries, e.g. libcompiler_rt.a and and libgcc_s.so. This also needs a small fixup in compiler-rt's atomic.c, to ensure that 32-bit mips can build correctly. Bump __FreeBSD_version to make it easier for port maintainers to detect when these functions were added. PR: 230888 Differential Revision: https://reviews.freebsd.org/D26159 MFC r364782: After r364753, there should be no need to suppress -Watomic-alignment warnings anymore for compiler-rt's atomic.c. This occurred because the IS_LOCK_FREE_8 macro was not correctly defined to 0 for mips, and this caused the compiler to emit a runtime call to __atomic_is_lock_free(), and that triggers the warning. ------------------------------------------------------------------------ r365472 | dim | 2020-09-08 13:28:39 -0700 (Tue, 08 Sep 2020) | 31 lines Revert r365471 as it is breaking with old gcc on various arches: MFC r364753: Add atomic and bswap functions to libcompiler_rt There have been several mentions on our mailing lists about missing atomic functions in our system libraries (e.g. __atomic_load_8 and friends), and recently I saw __bswapdi2 and __bswapsi2 mentioned too. To address this, add implementations for the functions from compiler-rt to the system compiler support libraries, e.g. libcompiler_rt.a and and libgcc_s.so. This also needs a small fixup in compiler-rt's atomic.c, to ensure that 32-bit mips can build correctly. Bump __FreeBSD_version to make it easier for port maintainers to detect when these functions were added. PR: 230888 Differential Revision: https://reviews.freebsd.org/D26159 MFC r364782: After r364753, there should be no need to suppress -Watomic-alignment warnings anymore for compiler-rt's atomic.c. This occurred because the IS_LOCK_FREE_8 macro was not correctly defined to 0 for mips, and this caused the compiler to emit a runtime call to __atomic_is_lock_free(), and that triggers the warning. ------------------------------------------------------------------------ r365473 | jhb | 2020-09-08 13:51:19 -0700 (Tue, 08 Sep 2020) | 10 lines MFC 359465: Document EINTEGRITY errors for many system calls. EINTEGRITY was previously documented as a UFS-specific error for mount(2). This documents EINTEGRITY as a filesystem-independent error that may be reported by the backing store of a filesystem. While here, document EIO as a filesystem-independent error for both mount(2) and posix_fadvise(2). EIO was previously only documented for UFS for mount(2). ------------------------------------------------------------------------ r365474 | jhb | 2020-09-08 13:53:44 -0700 (Tue, 08 Sep 2020) | 5 lines MFC 359467: Trim some duplicate EIO descriptions. While here, drop an extra conjunction from the list of error conditions for the remaining EIO description in symlink(2). ------------------------------------------------------------------------ r365476 | jhb | 2020-09-08 15:19:06 -0700 (Tue, 08 Sep 2020) | 17 lines MFC 359899: Correct baud rate error calculation. Shifting right by 1 is not the same as dividing by 2 for signed values. In particular, dividing a signed value by 2 gives the integer ceiling of the (e.g. -5 / 2 == -2) whereas shifting right by 1 always gives the floor (-5 >> 1 == -3). An embedded board with a 25 Mhz base clock results in an error of -30.5% when used with a baud rate of 115200. Using division, this truncates to -30% and is permitted. Using the shift, this fails and is rejected causing TIOCSETA requests to fail with EINVAL and breaking getty(8). Using division gives the same error range for both over and under baud rates and also makes the code match the behavior documented in the existing comment about supporting boards with 25 Mhz clocks. ------------------------------------------------------------------------ r365480 | jhb | 2020-09-08 15:50:24 -0700 (Tue, 08 Sep 2020) | 10 lines MFC 359900: Export a sysctl count of RX FIFO overrun events. uart(4) backends currently detect RX FIFO overrun errors and report them to the uart(4) core layer. They are then reported to the generic TTY layer which promptly ignores them. As a result, there is currently no good way to determine if a uart is experiencing RX FIFO overruns. One could add a generic per-tty counter, but there did not appear to be a good way to export those. Instead, add a sysctl under the uart(4) sysctl tree to export the count of overruns. ------------------------------------------------------------------------ r365482 | jhb | 2020-09-08 16:19:59 -0700 (Tue, 08 Sep 2020) | 5 lines MFC 362123: Fix AES-CCM requests with an AAD size smaller than a single block. The amount to copy for the first block is the minimum of the size of the AAD region or the remaining space in the first block. ------------------------------------------------------------------------ r365503 | asomers | 2020-09-09 06:16:20 -0700 (Wed, 09 Sep 2020) | 10 lines MFC r365262: Fix output of nfsstat -cE in json or xml mode Due to a copy/paste error, the "getacl" field was duplicated, but only in XML or JSON mode, not in txt mode. Discussed with: rmacklem Sponsored by: Axcient ------------------------------------------------------------------------ r365519 | brooks | 2020-09-09 14:57:55 -0700 (Wed, 09 Sep 2020) | 17 lines MFC r365279: Remove risky compatability with old kernels The badsys() handler for SIGSYS was added as a transtion aid for kernels lacking sysctl() in 1993. It is unsafe and unsound so remove it rather than running the risk of a privilege-dropping system call being silently omitted. This partially reverts SCCSID 6.12 (Berkeley) 03/03/93 "add code to change the system security level". Reviewed by: mckusick, imp, kevans Obtained from: CheriBSD Sponsored by: DARPA Differential Revision: https://reviews.freebsd.org/D26289 ------------------------------------------------------------------------ r365526 | imp | 2020-09-09 15:22:38 -0700 (Wed, 09 Sep 2020) | 9 lines MFC r360993: r360993 | imp | 2020-05-12 16:44:51 -0600 (Tue, 12 May 2020) | 6 lines Refine the history of uname. It appeared in 4.4BSD. It was not in v7 unix. It was one of the additions in PWB, and appeared in System III and later commercial versions of Unix. The different args to uname weren't aded until System III. Add a quick note to note the late entry into the BSD fork of Unix since PWB otherwise implies a pre-fork date. ------------------------------------------------------------------------ r365527 | imp | 2020-09-09 15:24:09 -0700 (Wed, 09 Sep 2020) | 17 lines MFC r361673: r361673 | imp | 2020-05-31 15:38:33 -0600 (Sun, 31 May 2020) | 14 lines Correct the release date for 2.11BSD 2.11BSD was announced on March 14, 1991 in comp.bugs.2bsd by Steven M. Schultz. The document has a 'revised January 1991' date at the top. Patch/1 in the official repo is dated March 31, 1991, and an identical copy of it was posted to comp.bugs.2bsd on May 5, 1991. Patch 2 in 22 parts was likewise posted May 18, 1991. This makes the Feb 1992 date too late. It's possible it's a typo for Feb 1991 since that lines up with the announcement being 2 weeks later. Without an extant copy of the 2.11 tape, however, it's hard to say for sure. Go with the date we have the most independent, direct evidence for, which is the announcement date. ------------------------------------------------------------------------ r365528 | imp | 2020-09-09 15:29:44 -0700 (Wed, 09 Sep 2020) | 7 lines MFC r361867: r361867 | imp | 2020-06-06 00:21:20 -0600 (Sat, 06 Jun 2020) | 4 lines Document all the sysctl values for the nda devices. Include some minimal documentation on namespace support for nda devices. Fix a few typos and formatting nits to apease igor. ------------------------------------------------------------------------ r365529 | imp | 2020-09-09 15:30:43 -0700 (Wed, 09 Sep 2020) | 7 lines MFC: r361868: r361868 | imp | 2020-06-06 00:49:06 -0600 (Sat, 06 Jun 2020) | 4 lines Fix typo Submitted by: Yuri Pankov ------------------------------------------------------------------------ r365530 | imp | 2020-09-09 15:33:11 -0700 (Wed, 09 Sep 2020) | 6 lines MFC: r361882: r361882 | imp | 2020-06-06 20:40:21 -0600 (Sat, 06 Jun 2020) | 2 lines Mention nda where we mention nvd. ------------------------------------------------------------------------ r365531 | imp | 2020-09-09 15:35:39 -0700 (Wed, 09 Sep 2020) | 17 lines MFC r362420: r362420 | imp | 2020-06-19 22:07:44 -0600 (Fri, 19 Jun 2020) | 13 lines Correct 1BSD release date. The Quarter Century of Unix book said that 1BSD was released March 1979. However, the 1BSD tape image that's on Kirk's historical unix collection has an earlier date. It was common practice, at the time, to create a new copy of the tape from the master system when a new tape was to go out, so several different versions of 1BSD, etc were shipped from Berkerely. The date on the 1BSD tape in the Berkeley archives on Kirk's DVD is dated in January 16 1979 on the label, and has dates as late as Jan 29 (there's an UPDATE file that says this includes updates through this date). Note this date as well. ------------------------------------------------------------------------ r365532 | imp | 2020-09-09 15:38:18 -0700 (Wed, 09 Sep 2020) | 16 lines MFC r362664, r362665: r362664 | imp | 2020-06-26 16:05:23 -0600 (Fri, 26 Jun 2020) | 21 lines Chroot(2) actually appeared in 7th Edition Unix. ... r362665 | imp | 2020-06-26 16:23:15 -0600 (Fri, 26 Jun 2020) | 10 lines Chroot(8) first appeared in 4.3-Reno, not in 4.4 in the BSD world, but in System III in the AT&T world. Examination of the TUHS archives shows this was present in 4.3-Reno and System III. Reviewed by: 0mp@, allanjude@ MFC After: 3 days Differential Revision: https://reviews.freebsd.org/D25479 ------------------------------------------------------------------------ r365533 | imp | 2020-09-09 15:40:14 -0700 (Wed, 09 Sep 2020) | 7 lines MFC r363408: r363408 | imp | 2020-07-21 18:44:47 -0600 (Tue, 21 Jul 2020) | 4 lines getty appears to date from 3rd edition research unix. That's the oldest man page on TUHS and its 'unix 1972' restoration effort has assembler sources that look like simpler version of what's in the 5th edition. ------------------------------------------------------------------------ r365535 | imp | 2020-09-09 15:42:14 -0700 (Wed, 09 Sep 2020) | 6 lines MFC r364291: r364291 | imp | 2020-08-16 17:55:23 -0600 (Sun, 16 Aug 2020) | 33 lines Remove heuristic for dealing with trailing newlines being truncated by mailers. ... ------------------------------------------------------------------------ r365536 | imp | 2020-09-09 15:45:11 -0700 (Wed, 09 Sep 2020) | 31 lines MFC r364335,r364336,r364337,r364351 r364335 | imp | 2020-08-18 00:07:34 -0600 (Tue, 18 Aug 2020) | 6 lines Modernize a bit. Remove PC Card specific information. It's of little value these days and on the way out after most of its drivers have been removed. Use iwn instead of wi device. r364336 | imp | 2020-08-18 00:18:18 -0600 (Tue, 18 Aug 2020) | 9 lines Document that PC Card will likely be removed before 13. This was discussed in arch@ a while ago. Most of the 16-bit drivers that it relied on have been removed. There's only a few other drivers remaining that support it, and those are very rare the days (even the once ubiquitious wi(1) is now quite rare). Indvidual drivers will be handled separately before pccard itself is removed. r364337 | imp | 2020-08-18 00:34:56 -0600 (Tue, 18 Aug 2020) | 2 lines Use better gone_in_dev rather than just gone_in to print the device name. r364351 | imp | 2020-08-18 11:29:01 -0600 (Tue, 18 Aug 2020) | 4 lines bt(4) has already been removed. Add a deprecation notice. MFC After: 1 day ------------------------------------------------------------------------ r365537 | imp | 2020-09-09 15:49:43 -0700 (Wed, 09 Sep 2020) | 52 lines MFC r364359, r364360, r364361, r364362, r364364, r364370 r364359 | imp | 2020-08-18 15:26:39 -0600 (Tue, 18 Aug 2020) | 9 lines Move the possible event types into a column table to make it easier to read. Sort system type alphabetically. Remove some commas that aren't in the devd notification messages. MFC After: 3 days Reviewed by: 0mp (earlier versions), jhb (useful feedback on earlier versions) Differential Revision: https://reviews.freebsd.org/D26105 r364360 | imp | 2020-08-18 15:26:45 -0600 (Tue, 18 Aug 2020) | 4 lines GEOM::rotation_rate changes are also signaled via devctl. MFC After: 3 days r364361 | imp | 2020-08-18 15:26:50 -0600 (Tue, 18 Aug 2020) | 8 lines Document the PMU system The pmu(4) and adb(4) drivers on powerpc generate PMU events. Document them. The allwinner power modules also generate these events. Document those as well. MFC After: 3 days r364362 | imp | 2020-08-18 15:26:54 -0600 (Tue, 18 Aug 2020) | 4 lines Document the AEON subsystem for the Amiga's power button. MFC After: 3 days r364364 | imp | 2020-08-18 15:42:02 -0600 (Tue, 18 Aug 2020) | 5 lines Fix two typos. Submitted by: rpokala@ MFC After: 3 days r364370 | imp | 2020-08-18 20:18:11 -0600 (Tue, 18 Aug 2020) | 8 lines Three typos: Amiga is a proper noun Condition is traditionally spelled starting with 'c' Some, but not all, of the over/under-voltage instances were hyphenated. Since they are all adverb phrases, they all need to be hyphenated. Pointy hat: imp ------------------------------------------------------------------------ r365538 | imp | 2020-09-09 15:51:58 -0700 (Wed, 09 Sep 2020) | 8 lines MFC r364424: r364424 | imp | 2020-08-20 10:52:34 -0600 (Thu, 20 Aug 2020) | 5 lines Fix function name in zone.9 uma_zone_prealloc -> uma_prealloc. There's no uma_zone_prealloc defined and the docs for it describe uma_prealloc exactly. ------------------------------------------------------------------------ r365539 | imp | 2020-09-09 15:54:09 -0700 (Wed, 09 Sep 2020) | 9 lines MFC: 364430: r364430 | imp | 2020-08-20 11:19:40 -0600 (Thu, 20 Aug 2020) | 6 lines Tag pccard drivers with gone in 13. MFC After: 3 days Reviewed by: emaste, brooks, adrian (on twitter) Differential Revision: https://reviews.freebsd.org/D26095 ------------------------------------------------------------------------ r365540 | imp | 2020-09-09 15:59:47 -0700 (Wed, 09 Sep 2020) | 17 lines MFC r364725, r364726 r364725 | imp | 2020-08-24 13:35:15 -0600 (Mon, 24 Aug 2020) | 9 lines Change the resume notification event from 'kern' to 'kernel' We have both a system of 'kern' and of 'kernel'. Prefer the latter and convert this notification to use 'kernel' instead of 'kern'. As a transition period, continue to also generate the 'kern' notification until sometime after FreeBSD 13 is branched. r364726 | imp | 2020-08-24 13:35:27 -0600 (Mon, 24 Aug 2020) | 4 lines Document the kern -> kernel name change for resume events. Relnotes: YES ------------------------------------------------------------------------ r365541 | imp | 2020-09-09 16:01:55 -0700 (Wed, 09 Sep 2020) | 12 lines MFC r364824: r364824 | imp | 2020-08-26 11:06:16 -0600 (Wed, 26 Aug 2020) | 8 lines Make sbuf_setpos match the implementation. sbuf_setpos can only be used to truncate the buffer, never to make it longer. Update the documentation to reflect this. Reviewed By: allanjude, phk Differential Revision: https://reviews.freebsd.org/D26198 ------------------------------------------------------------------------ r365542 | imp | 2020-09-09 16:04:40 -0700 (Wed, 09 Sep 2020) | 13 lines MFC: r365009 r365009 | imp | 2020-08-31 15:04:00 -0600 (Mon, 31 Aug 2020) | 10 lines Add deprecation notice for apm BIOS Add deprecation notice for apm bios, aka the apm(4) device. The apm(8) command will remain, at least for a while, since ACPI emulates the apm ioctl interface. Discussed on: arch@ Relnotes: yes MFC After: 3 days ------------------------------------------------------------------------ r365543 | imp | 2020-09-09 16:05:47 -0700 (Wed, 09 Sep 2020) | 15 lines MFC r365015: r365015 | imp | 2020-08-31 17:31:16 -0600 (Mon, 31 Aug 2020) | 12 lines Warn for the non pccard attachments These devices have non-pccard attachments. Warn for those as well. Both an and wi don't do the modern cyrpto needed to use these cards on secure wifi networks. an needs firmware from Cisco, which I don't think was ever produced. wi could in theory do it with raw frames and on-host encryption, but nobody has written that in the 15 years since WEP was cracked. MFC After: 3 days Noticed by: rgrimes Differential Revision: https://reviews.freebsd.org/D26138 ------------------------------------------------------------------------ r365544 | imp | 2020-09-09 16:06:35 -0700 (Wed, 09 Sep 2020) | 4 lines MFC r365016 | imp | 2020-08-31 17:48:23 -0600 (Mon, 31 Aug 2020) | 2 lines Add documentation for ETHERNET events. ------------------------------------------------------------------------ r365545 | brooks | 2020-09-09 16:11:55 -0700 (Wed, 09 Sep 2020) | 14 lines MFC r365284: Always report ENOSYS in init While rare, encountering an unimplemented system call early in init is catastrophic and difficult to debug. Even after a SIGSYS handler is registered, such configurations are problematic. As such, always report such events for pid 1 (following kern.lognosys if non-zero). Reviewed by: kevans, imp Obtained from: CheriBSD (plus suggestions from kevans) Sponsored by: DARPA Differential Revision: https://reviews.freebsd.org/D26288 ------------------------------------------------------------------------ r365551 | lwhsu | 2020-09-09 21:17:05 -0700 (Wed, 09 Sep 2020) | 11 lines MFC r365403: Slightly improve usb(4) - Mention USB 3.0 - Update links - Fix `mandoc -T lint` warnings Reviewed by: bcr, hselasky Differential Revision: https://reviews.freebsd.org/D26349 ------------------------------------------------------------------------ r365555 | avg | 2020-09-10 02:01:59 -0700 (Thu, 10 Sep 2020) | 2 lines MFC r365289: twsi: no need to compare boolean with boolean constant ------------------------------------------------------------------------ r365556 | avg | 2020-09-10 02:10:33 -0700 (Thu, 10 Sep 2020) | 2 lines MFC r365288: twsi: replace a couple of errno codes with i2c error codes ------------------------------------------------------------------------ r365560 | grehan | 2020-09-10 03:49:59 -0700 (Thu, 10 Sep 2020) | 11 lines MFC r364340, r364343, r364656 r364340 Support guest rdtscp and rdpid instructions on Intel VT-x Follow-on commits: r364343 Export a routine to provide the TSC_AUX MSR value and use this in vmm r364656 assert caller is preventing CPU migration Submitted by: adam_fenn.io Differential Revision: https://reviews.freebsd.org/D26003 ------------------------------------------------------------------------ r365561 | tuexen | 2020-09-10 04:43:23 -0700 (Thu, 10 Sep 2020) | 9 lines MFC r361750: Restrict enabling TCP-FASTOPEN to end-points in CLOSED or LISTEN state Enabling TCP-FASTOPEN on an end-point which is in a state other than CLOSED or LISTEN, is a bug in the application. So it should not work. Also the TCP code does not (and needs not to) handle this. While there, also simplify the setting of the TF_FASTOPEN flag. ------------------------------------------------------------------------ r365562 | tuexen | 2020-09-10 04:45:03 -0700 (Thu, 10 Sep 2020) | 8 lines MFC r364054: Improve the ECN negotiation when the TCP SYN-cache is used by making sure that * ECN is disabled if the client sends an non-ECN-setup SYN segment. * ECN is disabled is the ECN-setup SYN-ACK segment is retransmitted more than net.inet.tcp.ecn.maxretries times. ------------------------------------------------------------------------ r365563 | tuexen | 2020-09-10 04:46:36 -0700 (Thu, 10 Sep 2020) | 9 lines MFC r364089: Fix the following issues related to the TCP SYN-cache: * Let the accepted TCP/IPv4 socket inherit the configured TTL and TOS value. * Let the accepted TCP/IPv6 socket inherit the configured Hop Limit. * Use the configured Hop Limit and Traffic Class when sending IPv6 packets. ------------------------------------------------------------------------ r365564 | tuexen | 2020-09-10 04:55:45 -0700 (Thu, 10 Sep 2020) | 18 lines MFC r361752: We should never allow either the broadcast or IN_ADDR_ANY to be connected to or sent to. This was fond when working with Michael Tuexen and Skyzaller. Skyzaller seems to want to use either of these two addresses to connect to at times. And it really is an error to do so, so lets not allow that behavior. MFC r363256: (Re)-allow 0.0.0.0 to be used as an address in connect() for TCP In r361752 an error handling was introduced for using 0.0.0.0 or 255.255.255.255 as the address in connect() for TCP, since both addresses can't be used. However, the stack maps 0.0.0.0 implicitly to a local address and at least two regressions were reported. Therefore, re-allow the usage of 0.0.0.0. While there, change the error indicated when using 255.255.255.255 from EAFNOSUPPORT to EACCES as mentioned in the man-page of connect(). ------------------------------------------------------------------------ r365565 | tuexen | 2020-09-10 05:01:35 -0700 (Thu, 10 Sep 2020) | 7 lines MFC r361081: Allow only IPv4 addresses in sendto() for TCP on AF_INET sockets. This problem was found by looking at syzkaller reproducers for some other problems. ------------------------------------------------------------------------ r365566 | markj | 2020-09-10 05:41:01 -0700 (Thu, 10 Sep 2020) | 3 lines MFC r364438, r364440, r364483: Enable creation of static userspace probes in incremental builds. ------------------------------------------------------------------------ r365567 | tuexen | 2020-09-10 05:49:16 -0700 (Thu, 10 Sep 2020) | 6 lines MFC 359422: Be a bit more precisly in the description of the sysctl variable net.inet.tcp.pmtud_blackhole_detection. Also remove three entries, which are not sysctl variables but statistic counters for TCP. Thanks to 0mp@ for suggesting an improvement. ------------------------------------------------------------------------ r365568 | tuexen | 2020-09-10 05:52:50 -0700 (Thu, 10 Sep 2020) | 11 lines MFC r359487: Allow the TCP backhole detection to be disabled at all, enabled only for IPv4, enabled only for IPv6, and enabled for IPv4 and IPv6. The current blackhole detection might classify a temporary outage as an MTU issue and reduces permanently the MSS. Since the consequences of such a reduction due to a misclassification are much more drastically for IPv4 than for IPv6, allow the administrator to enable it for IPv6 only. Manually resolve conflict for BBR, which does not exist in stable/12 ------------------------------------------------------------------------ r365569 | tuexen | 2020-09-10 05:54:46 -0700 (Thu, 10 Sep 2020) | 9 lines MFC r359926: Improve the TCP blackhole detection. The principle is to reduce the MSS in two steps and try each candidate two times. However, if two candidates are the same (which is the case in TCP/IPv6), this candidate was tested four times. This patch ensures that each candidate actually reduced the MSS and is only tested 2 times. This reduces the time window of missclassifying a temporary outage as an MTU issue. ------------------------------------------------------------------------ r365570 | tuexen | 2020-09-10 06:15:17 -0700 (Thu, 10 Sep 2020) | 7 lines MFC r358621: When using automatically generated flow labels and using TCP SYN cookies, use the same flow label for the segments sent during the handshake and after the handshake. This fixes a bug by making sure that sc_flowlabel is always stored in network byte order. ------------------------------------------------------------------------ r365571 | tuexen | 2020-09-10 06:17:23 -0700 (Thu, 10 Sep 2020) | 5 lines MFC r357101: Don't delay the ACK for a TCP segment with the CWR flag set. This allows the data sender to increase the CWND faster. ------------------------------------------------------------------------ r365572 | tuexen | 2020-09-10 06:27:53 -0700 (Thu, 10 Sep 2020) | 4 lines MFC r356235: Fix delayed ACK generation for DCTCP. Manually changed to use TF_ECN_SND_ECE. ------------------------------------------------------------------------ r365573 | tuexen | 2020-09-10 06:44:35 -0700 (Thu, 10 Sep 2020) | 4 lines MFC r357114: As a TCP client only enable ECN when the corresponding sysctl variable indicates that ECN should be negotiated for the client side. ------------------------------------------------------------------------ r365585 | tuexen | 2020-09-10 08:58:37 -0700 (Thu, 10 Sep 2020) | 5 lines MFC r357115: Don't set the ECT codepoint on retransmitted packets during SACK loss recovery. This is required by RFC 3168. ------------------------------------------------------------------------ r365586 | tuexen | 2020-09-10 09:44:28 -0700 (Thu, 10 Sep 2020) | 5 lines MFC r357116: Sending CWR after an RTO is according to RFC 3168 generally required and not only for the DCTCP congestion control. ------------------------------------------------------------------------ r365587 | tuexen | 2020-09-10 09:47:08 -0700 (Thu, 10 Sep 2020) | 8 lines MFC r358023: Don't use uninitialised stack memory if the sysctl variable net.inet.tcp.hostcache.enable is set to 0. The bug resulted in using possibly a too small MSS value or wrong initial retransmission timer settings. Possibly the value used for ssthresh was also wrong. ------------------------------------------------------------------------ r365589 | tuexen | 2020-09-10 09:59:54 -0700 (Thu, 10 Sep 2020) | 8 lines MFC r357100: The server side of TCP fast open relies on the delayed ACK timer to allow including user data in the SYN-ACK. When DSACK support was added in r347382, an immediate ACK was sent even for the received SYN with user data. This patch fixes that and allows again to send user data with the SYN-ACK. ------------------------------------------------------------------------ r365590 | tuexen | 2020-09-10 10:03:36 -0700 (Thu, 10 Sep 2020) | 6 lines MFC r357816 (from rrs) This small fix makes it so we properly follow the RFC and only enable ECN when both the CWR and ECT bits our set within the SYN packet. ------------------------------------------------------------------------ r365591 | tuexen | 2020-09-10 10:12:42 -0700 (Thu, 10 Sep 2020) | 8 lines MFC r364754: RFC 3465 defines a limit L used in TCP slow start for limiting the number of acked bytes as described in Section 2.2 of that document. This patch ensures that this limit is not also applied in congestion avoidance. Applying this limit also in congestion avoidance can result in using less bandwidth than allowed. ------------------------------------------------------------------------ r365594 | tuexen | 2020-09-10 10:26:16 -0700 (Thu, 10 Sep 2020) | 5 lines MFC r350973 (from rrs): Place back in the dependency on HPTS via module depends versus a fatal error in compiling. This was taken out by mistake when I mis-merged from the 18q22p2 sources of rack in NF. Opps. ------------------------------------------------------------------------ r365595 | tuexen | 2020-09-10 10:29:20 -0700 (Thu, 10 Sep 2020) | 6 lines MFC r351328 (by rrs): Fix an issue when TSO and Rack play together. Basically an retransmission of the initial SYN (with data) would cause us to strip the SYN and decrement/increase offset/len which then caused us a -1 offset and a panic. ------------------------------------------------------------------------ r365596 | tuexen | 2020-09-10 10:31:34 -0700 (Thu, 10 Sep 2020) | 7 lines MFC r351782: Fix two TCP RACK issues: * Convert the TCP delayed ACK timer from ms to ticks as required. This fixes the timer on platforms with hz != 1000. * Don't delay acknowledgements which report duplicate data using DSACKs. ------------------------------------------------------------------------ r365597 | tuexen | 2020-09-10 10:41:23 -0700 (Thu, 10 Sep 2020) | 5 lines MFC r352661 (from rrs): lets put (void) in a couple of functions to keep older platforms that are stuck with gcc happy (ppc). The changes are needed in both bbr and rack. ------------------------------------------------------------------------ r365598 | tuexen | 2020-09-10 10:44:27 -0700 (Thu, 10 Sep 2020) | 4 lines MFC r353490 (from rrs): if_hw_tsomaxsegsize needs to be initialized to zero, just like in bbr.c and tcp_output.c ------------------------------------------------------------------------ r365601 | tuexen | 2020-09-10 10:49:21 -0700 (Thu, 10 Sep 2020) | 5 lines MFC r356417 (from rrs): This catches rack up in the recent changes to ECN and also commonizes the functions that both the freebsd and rack stack uses. ------------------------------------------------------------------------ r365604 | tuexen | 2020-09-10 11:04:34 -0700 (Thu, 10 Sep 2020) | 6 lines MFC r350061: Fix compilation on platforms using gcc. When compiling RACK on platforms using gcc, a warning that tcp_outflags is defined but not used is issued and terminates compilation on PPC64, for example. So don't indicate that tcp_outflags is used. ------------------------------------------------------------------------ r365608 | bz | 2020-09-10 12:00:17 -0700 (Thu, 10 Sep 2020) | 35 lines MFC r344749-344750,344841-344843,345284,346405,346470,347140-347141,348331, 349593,351868,353506-353507,353809,353853,353858,353860,356852,359063, 359158,360819,360888,360950-360951,360953-360954,360998,361009,361025, 361085,361087,361098,361106-361107,361115,361118,361319-361321,361486, 361560,361566,361626,361636-361637,361687,361726,361737-361738,361768, 361778,361811-361813,361819-361822,361825-361826,361834,361863-361864, 361878,361885-361886,362016,362084-362085,362156-362157,362161-362162, 362210-362213,362216,362256-362257,362671,362815-362816,363325, 363327-363328,364011-364012,364299,364301,364303,364312,364315, 364326-364327,364551,364553,364673,365097,365116,365125-365126, 365130-365131,365198,365419 by adrian(78), bcran(1), bz(13), cem(1), gavin(1), glebius(6), landonf(1), mjg(7) Merge WiFi net80211, drivers, and management in order to support better 11n and upcoming 11ac. This includes an ath(4) update, some run(4) 11n support, 11n for otus(4), A-MPDU, A-MSDU, A-MPDU+A-MSDU and Fast frames options, scanning fixes, enahnced PRIV checks for jails, restored parent device name printing, improvements for upcoming VHT support, lots of under-the-hood infrastructure improvements, new device ID, debug tools updates, some whistespace changes (to make future MFCs easier). This does not include (nost) epoch(9) related changes as too much other infrastructure was not merged for that. Bump __FreeBSD_veresion as this changes the priv(9) names (not know to be used externally), and net80211 structures. Tested on: some ath(4) AP, run(4) STA, and rtwn(4) STA Discussed with: adrian (extremly briefly) Sponsored by: Rubicon Communications, LLC (d/b/a "Netgate") [partially] Relnotes: yes ------------------------------------------------------------------------ r365611 | jhb | 2020-09-10 13:34:44 -0700 (Thu, 10 Sep 2020) | 7 lines MFC 363459: Pass the right size to memcpy() when copying the array of FP registers. The size of the containing structure was passed instead of the size of the array. This happened to be harmless as the extra word copied is one we copy in the next line anyway. ------------------------------------------------------------------------ r365612 | erj | 2020-09-10 13:46:16 -0700 (Thu, 10 Sep 2020) | 9 lines MFC r361541, r362038, r364240 These MFCs add the ice(4) driver to the kernel for Intel 800 Series Ethernet adapters, a couple fixes for the ice_ddp module makefile, and remove some redeclarations, respectively. Relnotes: yes Sponsored by: Intel Corporation ------------------------------------------------------------------------ r365614 | allanjude | 2020-09-10 14:01:22 -0700 (Thu, 10 Sep 2020) | 25 lines MFC r360229, r363255 r360229: Add VIRTIO_BLK_T_DISCARD (TRIM) support to the bhyve virtio-blk backend This will advertise support for TRIM to the guest virtio-blk driver and perform the DIOCGDELETE ioctl on the backing storage if it supports it. Thanks to Jason King and others at Joyent and illumos for expanding on my original patch, adding improvements including better error handling and making sure to following the virtio spec. r363255: Add VIRTIO_BLK_T_DISCARD support to the virtio-blk driver If the hypervisor advertises support for the DISCARD command then the guest can perform TRIM commands, freeing space on the backing store. If VIRTIO_BLK_F_DISCARD is enabled, advertise DISKFLAG_CANDELETE Tested with FreeBSD guests on bhyve and KVM Relnotes: yes Sponsored by: Klara Inc. ------------------------------------------------------------------------ r365619 | gjb | 2020-09-10 17:04:23 -0700 (Thu, 10 Sep 2020) | 6 lines Rename stable/12 to -STABLE, and bump __FreeBSD_version after releng/12.2 had been created. Approved by: re (implicit) Sponsored by: Rubicon Communications, LLC (netgate.com) ------------------------------------------------------------------------ r365627 | kib | 2020-09-11 03:05:44 -0700 (Fri, 11 Sep 2020) | 5 lines MFC r365360, r365370: rtld: Handle ELF dso with program headers outside the first page. PR: 229708 ------------------------------------------------------------------------ r365630 | bz | 2020-09-11 05:36:05 -0700 (Fri, 11 Sep 2020) | 6 lines MFC r342788,354926,364771 (markj, bz) - Capsicumize rtsol(8) and rtsold(8). - Avoid relying on pollution from libcasper.h. - Add script for "M bit". ------------------------------------------------------------------------ r365632 | mav | 2020-09-11 07:00:10 -0700 (Fri, 11 Sep 2020) | 15 lines MFC r342852 (by cem): powerpc: Fix regression introduced in r342771 In r342771, I introduced a regression in Power by abusing the platform smp_topo() method as a shortcut for providing the MI information needed for the stated sysctls. The smp_topo() method was already called later by sched_ule (under the name cpu_topo()), and initializes a static array of scheduler topology information. I had skimmed the smp_topo_foo() functions and assumed they were idempotent; empirically, they are not (or at least, detect re-initialization and panic). Do the cleaner thing I should have done in the first place and add a platform method specifically for core- and thread-count probing. PR: 249250 ------------------------------------------------------------------------ r365647 | erj | 2020-09-11 17:22:02 -0700 (Fri, 11 Sep 2020) | 12 lines MFC r358698 and r364241 r358698: ixl: Add missing conversions from/to LE16 r364241: Remove redeclaration found by gcc build Together, these should allow ixl(4) to work properly on powerpc64 and prevent build warnings there. PR: 249254 Reported by: pkubaj@ MFC after: 3 days ------------------------------------------------------------------------ r365649 | kevans | 2020-09-11 18:47:59 -0700 (Fri, 11 Sep 2020) | 20 lines MFC r365490-r365491: Remove FREEBSD_UPDATE dependency on PORTSNAP r365490: phttpget: move out of portsnap Currently, WITHOUT_PORTSNAP forces WITHOUT_FREEBSD_UPDATE because the latter relies on phttpget, which lives inside the portsnap build bits. Remove the dependency between these two options by moving phttpget out into ^/libexec and building/installing it if either WITH_PORTSNAP or WITH_FREEBSD_UPDATE. Future work could remove the conditional if it's decided that users will use it independently of either the current in-base consumers. r365491: opts: FREEBSD_UPDATE no longer relies on PORTSNAP phttpget is no longer tied to the portsnap build as of r365490. ------------------------------------------------------------------------ r365650 | kevans | 2020-09-11 18:54:47 -0700 (Fri, 11 Sep 2020) | 6 lines Add missing WITHOUT_CAROOT description This should have been MFC'd as part of r353800, but was not because caroot had not been MFC'd at that time. As such, this is a direct commit to stable/12. ------------------------------------------------------------------------ r365651 | kevans | 2020-09-11 18:55:07 -0700 (Fri, 11 Sep 2020) | 2 lines Regen src.conf(5) after r365649 ------------------------------------------------------------------------ r365653 | kib | 2020-09-12 02:44:50 -0700 (Sat, 12 Sep 2020) | 5 lines MFC r365368: rtld: do not process absent dynamic. PR: 249121 ------------------------------------------------------------------------ r365654 | kib | 2020-09-12 02:46:14 -0700 (Sat, 12 Sep 2020) | 5 lines MFC r365369: rtld: do not refuse to relocate objects without dynamic symtabs. PR: 249121 ------------------------------------------------------------------------ r365659 | kp | 2020-09-12 05:45:31 -0700 (Sat, 12 Sep 2020) | 17 lines MFC r365457: net: mitigate vnet / epair cleanup races There's a race where dying vnets move their interfaces back to their original vnet, and if_epair cleanup (where deleting one interface also deletes the other end of the epair). This is commonly triggered by the pf tests, but also by cleanup of vnet jails. As we've not yet been able to fix the root cause of the issue work around the panic by not dereferencing a NULL softc in epair_qflush() and by not re-attaching DYING interfaces. This isn't a full fix, but makes a very common panic far less likely. PR: 244703, 238870 ------------------------------------------------------------------------ r365661 | dim | 2020-09-12 09:33:05 -0700 (Sat, 12 Sep 2020) | 43 lines MFC r364753: Add atomic and bswap functions to libcompiler_rt There have been several mentions on our mailing lists about missing atomic functions in our system libraries (e.g. __atomic_load_8 and friends), and recently I saw __bswapdi2 and __bswapsi2 mentioned too. To address this, add implementations for the functions from compiler-rt to the system compiler support libraries, e.g. libcompiler_rt.a and and libgcc_s.so. This also needs a small fixup in compiler-rt's atomic.c, to ensure that 32-bit mips can build correctly. Bump __FreeBSD_version to make it easier for port maintainers to detect when these functions were added. Differential Revision: https://reviews.freebsd.org/D26159 MFC r364782: After r364753, there should be no need to suppress -Watomic-alignment warnings anymore for compiler-rt's atomic.c. This occurred because the IS_LOCK_FREE_8 macro was not correctly defined to 0 for mips, and this caused the compiler to emit a runtime call to __atomic_is_lock_free(), and that triggers the warning. MFC r365509: Follow-up r364753 by enabling compiler-rt's atomic implementation only for clang, as it uses clang specific builtins, and does not compile correctly with gcc. Note that gcc packages usually come with their own libatomic, providing these primitives. MFC r365588: Follow-up r364753 by only using arm's stdatomic.c implementation, as it already covers the functions in compiler-rt's atomic.c, leading to conflicts when linking. PR: 230888 ------------------------------------------------------------------------ r365662 | dim | 2020-09-12 09:50:04 -0700 (Sat, 12 Sep 2020) | 24 lines MFC r365371: Turn MALLOC_PRODUCTION into a regular src.conf(5) option For historical reasons, defining MALLOC_PRODUCTION in /etc/make.conf has been used to turn off potentially expensive debug checks and statistics gathering in the implementation of malloc(3). It seems more consistent to turn this into a regular src.conf(5) option, e.g. WITH_MALLOC_PRODUCTION / WITHOUT_MALLOC_PRODUCTION. This can then be toggled similar to any other source build option, and turned on or off by default for e.g. stable branches. Reviewed by: imp, #manpages Differential Revision: https://reviews.freebsd.org/D26337 MFC r365373: Follow-up r365371 by removing sentences which indicate the state of the MK_MALLOC_PRODUCTION option on -CURRENT. Also, for the sake of backwards compatibility, support the old way of enabling 'production malloc', e.g. by adding a define in make.conf(5). ------------------------------------------------------------------------ r365667 | eugen | 2020-09-12 11:40:39 -0700 (Sat, 12 Sep 2020) | 7 lines MFC r365477: geom_part: extend kern.geom.part.check_integrity to work on GPT In short, this change allows accessing partition and recovering secondary GPT in case it is unaccessible but primary table is fine. Reported by: Alex Korchmar ------------------------------------------------------------------------ r365671 | dim | 2020-09-12 12:40:04 -0700 (Sat, 12 Sep 2020) | 8 lines Follow-up r365662 (MFC of r365371 and r365373) by correctly setting WITH_MALLOC_PRODUCTION for stable branches. Also add a note to UPDATING, to inform users about the new setting. Direct commit to stable/{11,12} as this does not apply to head. Noticed by: imp, Ronald Klop ------------------------------------------------------------------------ r365672 | dim | 2020-09-12 13:20:55 -0700 (Sat, 12 Sep 2020) | 8 lines Follow-up r365662 (MFC of r365371 and r365373) by also removing the header hack from jemalloc_FreeBSD.h, which rendered any make.conf MALLOC_PRODUCTION or src.conf WITH/WITHOUT_MALLOC_PRODUCTION irrelevant. Direct commit to stable/{11,12} as this does not apply to head. Noticed by: kevans ------------------------------------------------------------------------ r365681 | kevans | 2020-09-12 18:09:22 -0700 (Sat, 12 Sep 2020) | 18 lines MFC r365500: certctl: fix hashed link generation with duplicate subjects Currently, certctl rehash will just keep clobbering .0 rather than incrementing the suffix upon encountering a duplicate. Do this, and do it for blacklisted certs as well. This also improves the situation with the blacklist to be a little less flakey, comparing cert fingerprints for all certs with a matching subject hash in the blacklist to determine if the cert we're looking at can be installed. Future work needs to completely revamp the blacklist to align more with how it's described in PR 246614. In particular, /etc/ssl/blacklisted should go away to avoid potential confusion -- OpenSSL will not read it, it's basically certctl internal. PR: 246614 ------------------------------------------------------------------------ r365682 | kevans | 2020-09-12 18:44:31 -0700 (Sat, 12 Sep 2020) | 15 lines MFC r365506 getlogin_r: fix the type of len getlogin_r is specified by POSIX to to take a size_t len, not int. Fix our version to do the same, bump the symbol version due to ABI change and provide compat. This was reported to break compilation of Ruby 2.8. Some discussion about the necessity of the ABI compat did take place in the review. While many 64-bit platforms would likely be passing it in a 64-bit register and zero-extended and thus, not notice ABI breakage, some do sign-extend (e.g. mips). PR: 247102 ------------------------------------------------------------------------ r365689 | allanjude | 2020-09-13 09:28:25 -0700 (Sun, 13 Sep 2020) | 40 lines MFOpenZFS: Introduce read/write kstats per dataset The following patch introduces a few statistics on reads and writes grouped by dataset. These statistics are implemented as kstats (backed by aggregate sums for performance) and can be retrieved by using the dataset objset ID number. The motivation for this change is to provide some preliminary analytics on dataset usage/performance. Reviewed-by: Richard Elling Reviewed-by: Brian Behlendorf Reviewed by: Matthew Ahrens Signed-off-by: Serapheim Dimitropoulos openzfs/zfs@a448a2557ec4938ed6944c7766fe0b8e6e5f6456 Also contains parts of: MFOpenZFS: Connect dataset_kstats for FreeBSD Example output: kstat.zfs/mypool.dataset.objset-0x10b.nread: 150528 kstat.zfs/mypool.dataset.objset-0x10b.reads: 48 kstat.zfs/mypool.dataset.objset-0x10b.nwritten: 134217728 kstat.zfs/mypool.dataset.objset-0x10b.writes: 1024 kstat.zfs/mypool.dataset.objset-0x10b.dataset_name: mypool/datasetname Reviewed-by: Ryan Moeller Reviewed by: Sean Eric Fagan Reviewed-by: Serapheim Dimitropoulos Reviewed-by: Brian Behlendorf Signed-off-by: Allan Jude openzfs/zfs@4547fc4e071ceb1818b3a46c3035b923e06e5390 This is a direct commit to stable/12 because they do not exist in illumos upstream ZFS and needed to be heavily modified to work in stable/12 Relnotes: yes Sponsored by: Klara Inc. ------------------------------------------------------------------------ r365704 | emaste | 2020-09-13 18:20:57 -0700 (Sun, 13 Sep 2020) | 5 lines MFC r365422: ntp: whitespace and typo fix in conf file PR: 248942 Submitted by: Jose Luis Duran (whitespace), igor (typo) ------------------------------------------------------------------------ r365714 | kib | 2020-09-14 03:49:38 -0700 (Mon, 14 Sep 2020) | 5 lines MFC r365432: rtld: pass argc/argv/env to dso inits. PR: 249162 ------------------------------------------------------------------------ r365715 | kib | 2020-09-14 04:01:46 -0700 (Mon, 14 Sep 2020) | 3 lines MFC r365433: imgact_elf.c: unify check for phdr fitting into the first page. ------------------------------------------------------------------------ r365718 | markj | 2020-09-14 05:22:19 -0700 (Mon, 14 Sep 2020) | 3 lines MFC r365437: vm_object_split(): Handle orig_object type changes. ------------------------------------------------------------------------ r365730 | jmg | 2020-09-14 12:39:43 -0700 (Mon, 14 Sep 2020) | 2 lines MFC r365623: Don't clear reserved bits per RealTek ------------------------------------------------------------------------ r365731 | erj | 2020-09-14 14:33:11 -0700 (Mon, 14 Sep 2020) | 8 lines ice: MFC commits for update to 0.26.16 These include r365332, r365550, and r365617, which update both the ice_ddp package and the ice(4) driver itself. Relnotes: yes Sponsored by: Intel Corporation ------------------------------------------------------------------------ r365740 | avg | 2020-09-14 22:46:51 -0700 (Mon, 14 Sep 2020) | 2 lines MFC r365446: mmc_da: fix a typo and a too long line ------------------------------------------------------------------------ r365741 | avg | 2020-09-14 22:48:55 -0700 (Mon, 14 Sep 2020) | 2 lines MFC r365445: mmc_da: make sure that part_index is not used uninitialized in sddastart ------------------------------------------------------------------------ r365742 | avg | 2020-09-14 22:51:03 -0700 (Mon, 14 Sep 2020) | 2 lines MFC r365447: mmc_da: universally use uint8_t for the partition index ------------------------------------------------------------------------ r365744 | lwhsu | 2020-09-14 23:14:00 -0700 (Mon, 14 Sep 2020) | 8 lines MFC r365606: urndis(4): Add support of Inseego/Novatel Wireless MiFi 8800/8000 PR: 245152 Submitted by: rootless@gmail.com Reviewed by: hselasky ------------------------------------------------------------------------ r365745 | ae | 2020-09-15 01:52:36 -0700 (Tue, 15 Sep 2020) | 14 lines MFC r365449: Add a few features to rcorder: o Enhance dependency loop logging: print full chain instead of the last link competing the loop; o Add -g option to generate dependency graph suitable for GraphViz visualization, loops and other graph generation issues are highlighted automatically; o Add -p option that enables grouping items that can be processed in parallel. Submitted by: Boris Lytochkin Differential Revision: https://reviews.freebsd.org/D25389 ------------------------------------------------------------------------ r365747 | gbe | 2020-09-15 02:27:01 -0700 (Tue, 15 Sep 2020) | 7 lines MFC r365458: sort(1): Remove duplicate option check Reviewed by: lwhsu, emaste Approved by: emaste Obtained from: DragonFlyBSD Differential Revision: https://reviews.freebsd.org/D23892 ------------------------------------------------------------------------ r365767 | kib | 2020-09-15 13:25:30 -0700 (Tue, 15 Sep 2020) | 5 lines MFC r365766: bhyve: intercept AMD SVM instructions. CVE: CVE-2020-7467 ------------------------------------------------------------------------ r365772 | markj | 2020-09-15 13:55:13 -0700 (Tue, 15 Sep 2020) | 6 lines MFC r365771: ftpd: Exit during authentication if an error occurs after chroot(). admbug: 969 Security: CVE-2020-7468 ------------------------------------------------------------------------ r365777 | emaste | 2020-09-15 14:28:47 -0700 (Tue, 15 Sep 2020) | 6 lines MFC r365775: bhyve: do not permit write access to VMCB / VMCS Reported by: Patrick Mooney Submitted by: jhb Security: CVE-2020-24718 ------------------------------------------------------------------------ r365792 | kib | 2020-09-16 00:53:15 -0700 (Wed, 16 Sep 2020) | 3 lines MFC r365510: uipc_shm.c: Move comment where it belongs. ------------------------------------------------------------------------ r365794 | markj | 2020-09-16 06:45:53 -0700 (Wed, 16 Sep 2020) | 3 lines MFC r365502: ggate: Fix ggated/ggatec debug print of offsets. ------------------------------------------------------------------------ r365795 | markj | 2020-09-16 06:46:58 -0700 (Wed, 16 Sep 2020) | 3 lines MFC r365265: Add the MEM_EXTRACT_PADDR ioctl to /dev/mem. ------------------------------------------------------------------------ r365797 | markj | 2020-09-16 07:12:57 -0700 (Wed, 16 Sep 2020) | 6 lines Add a mem(4) ioctl stub for sparc64. This is a direct commit to stable/12. Reported by: Jenkins ------------------------------------------------------------------------ r365798 | kib | 2020-09-16 07:14:26 -0700 (Wed, 16 Sep 2020) | 3 lines MFC r365484: Add interruptible variant of vm_wait(9), vm_wait_intr(9). ------------------------------------------------------------------------ r365799 | kib | 2020-09-16 07:16:09 -0700 (Wed, 16 Sep 2020) | 3 lines MFC r365485: Convert allocations of the phys pager to vm_pager_allocate(). ------------------------------------------------------------------------ r365800 | kib | 2020-09-16 07:20:45 -0700 (Wed, 16 Sep 2020) | 3 lines MFC r365486: Add kern_mmap_racct_check(), a helper to verify limits in vm_mmap*(). ------------------------------------------------------------------------ r365803 | kib | 2020-09-16 08:38:22 -0700 (Wed, 16 Sep 2020) | 3 lines MFC r365488: Allow consumer to customize physical pager. ------------------------------------------------------------------------ r365804 | kib | 2020-09-16 08:42:58 -0700 (Wed, 16 Sep 2020) | 3 lines MFC r365513: Prepare to handle non-trivial errors from vm_map_delete(). ------------------------------------------------------------------------ r365805 | kib | 2020-09-16 08:45:35 -0700 (Wed, 16 Sep 2020) | 3 lines MFC r365516: Add vm_map_find_aligned(9). ------------------------------------------------------------------------ r365806 | kib | 2020-09-16 08:48:32 -0700 (Wed, 16 Sep 2020) | 3 lines MFC r365515: Move MAP_32BIT_MAX_ADDR definition to sys/mman.h. ------------------------------------------------------------------------ r365808 | allanjude | 2020-09-16 13:58:24 -0700 (Wed, 16 Sep 2020) | 10 lines Connect new ZFS source file to the kernel build This was missed in r365689 This causes compile issues when building ZFS into the kernel PR: 249311 MFC-with: r365689 Sponsored by: Klara Inc. ------------------------------------------------------------------------ r365816 | kevans | 2020-09-16 15:36:03 -0700 (Wed, 16 Sep 2020) | 90 lines MFC outstanding crunchgen work: r350152, r364166, r364174, r364234, r364646-r364647, r365605, r365705 r350152: Remove obsolete RELEASE_CRUNCH Remove documentation of RELEASE_CRUNCH here. It's obsolete and no longer a good example. r364166: Fix crunchgen usage of mkstemp() On Glibc systems mkstemp can only be used once with the same template string since it will be modified in-place and no longer contain any 'X' chars. It is fine to reuse the same file here but we need to be explicit and use open() instead of mkstemp() on the second use. While touching this file also avoid a hardcoded /bin/pwd since that may not work when building on non-FreeBSD systems. r364174: Use env pwd instead of pwd in crunchgen.c In r364166 I changed /bin/pwd to pwd, but pwd can be shell builtin that may not correctly return a real path. To ensure that all symlinks are resolved use `env pwd -P` instead (the -P flag is part of POSIX so should be supported everywhere). r364234: crunchgen: use pwd -P without env The -P flag is required by POSIX so we don't have to care whether pwd is a shell builtin or not. This also allows removing pwd from the list of bootstrap tools since all shells we care about for building have a builtin pwd command. This effectively reverts r364190. r364646: Re-indent crunched_main.c in preparation for D25998 r364647: Correctly determine the real executable in crunched binaries This should fix cases like su setting argv[0] to _su for /bin/sh. Previously cheribsdbox (a crunched tool we use in CheriBSD to reduce the size of our minimal disk images to allow loading them onto FPGAs without waiting forever for the transfer) would complain about _su not being compiled in, but now that we also look at AT_EXECPATH it correctly invokes the sh tool. Note: we use use AT_EXECPATH instead of the KERN_PROC_PATHNAME sysctl to get the crunchgen binary name since it seems like KERN_PROC_PATHNAME just returns the last cached path for a given hardlink. When using `su`, instead of invoking /bin/csh this would invoke the last used hardlink to cheribsdbox. This caused weird test failures when running tests due to `id` being executed instead of `echo`: $ id # id is a hardlink to /bin/cheribsdbox $ su postgres -c 'echo 1' # su is also a hardlink uid=1001(postgres) gid=1001(postgres) groups=1001(postgres) r365605: crunchgen(8): fix crunched application build with WARNS=6 This was revealed by the rescue build with a patch I'm working on to default WARNS=6 everywhere. The issues resolved were: - Missing prototype for _crunched_${ident}_stub in the *_stub.c generated bits - Missing prototype for crunched_main - Incomplete prototype for _crunched_${ident}_stub in the generated parts of crunched_main - Literal strings in the stub table must drop const qualifier, unless we const'ify name - f field in struct stub didn't have a proper prototype Most of these issues are minor formalities and easily addressed. I note that if my patch to eventually raise WARNS for the rescue build lands, we'll need to bump the __FreeBSD_version requirement for bootstrapping crunchgen and wipe out the rescue .OBJDIR if it's stale, which we should be able to detect pretty easily from a couple of the issues that have been fixed here. r365705: __FreeBSD_version bump for r365605 (crunchgen producing WARNS-clean) The change in D26397 will need a __FreeBSD_version to base off of for bootstrapping crunchgen, to avoid avoidable build failures just because the host has an outdated crunchgen. ------------------------------------------------------------------------ r365817 | kevans | 2020-09-16 15:37:44 -0700 (Wed, 16 Sep 2020) | 6 lines Record merge of r364190 This added the pwd binary to those symlinked in $WORLDTMP/legacy, but it was effectively reverted by a commit that was MFC'd in r365816. Just record the merge. ------------------------------------------------------------------------ r365819 | jhb | 2020-09-16 15:55:27 -0700 (Wed, 16 Sep 2020) | 10 lines MFC 365276: Compute the correct size of the string to move forward. Previously this was counting the amount of spare room at the start of the buffer that the string needed to move forward and passing that as the number of bytes to copy to memmove rather than the length of the string to be copied. In the strfmon test in the test suite this caused the memmove to overflow the allocated buffer by one byte which CHERI caught. ------------------------------------------------------------------------ r365820 | kevans | 2020-09-16 16:14:22 -0700 (Wed, 16 Sep 2020) | 60 lines MFC r365493-r365494, r365600, r365602, r365637: various WARNS fixes r365493: libc/resolv: attempt to fix the test under WARNS=6 In a side-change that I'm working on to start defaulting src builds to WARNS=6 where WARNS isn't otherwise specified, GCC6 (and clang, to a lesser extent) pointed out a number of issues with the resolv tests: - Global method variable that gets shadowed in run_tests() - Signed/unsigned comparison between i in run_tests() and hosts->sl_cur The shadowed variable looks like it might actually be bogus as written, as we pass it to RUN_TESTS -> run_tests, but other parts use the global method instead. This change is mainly geared towards correcting that by removing the global and plumbing the method through from run_tests -> run into the new thread. For the signed/unsigned comparison, there's no compelling reason to not just switch i/nthreads/nhosts to size_t. The review also included a change to the load() function that was better addressed by jhb in r365302. r365494: libc tests: dynthr_mod: fix some WARNS issues This is being addressed as part of a side-patch I'm working on that builds all the things with WARNS=6, instead of relying on it being supplied in just shallow parts of the build with higher-level Makefile.inc. Provide a prototype for mod_main and annotate the thread function argument as unused. r365600: MFV r365599: import fix for a libexecinfo warning at higher WARNS v1.17 of this file included a fix that I just submitted upstream to fix a warning about prevent_inline with external linkage not having been previously declared. r365602: librt: tests: fix minor issues with higher WARNS got_sigalrm is a global with external linkage and must therefore have a previous extern declaration. There's no reason to maintain the status quo there, so just make it static. The result var is unused. This part of the test has not been upstreamed, presumably because it exists solely for sem_clockwait_np. We should perhaps consider moving it into its own test file outside of ^/contrib/netbsd-tests, but this can happen later. r365637: MFV r365636: libarchive: import fix for WARNS=6 builds in testing bits Two more cases of explicitly marking globals for internal linkage where they need not be shared. Committed upstream as of a38e62314a1f. ------------------------------------------------------------------------ r365821 | kevans | 2020-09-16 16:17:15 -0700 (Wed, 16 Sep 2020) | 8 lines MFC r365631: Only set WARNS if not defined This would allow interested parties to do experimental runs with an environment set appropriately to raise all the warnings throughout the build; e.g. env WARNS=6 NO_WERROR=yes buildworld. Not currently touching the numerous instances in ^/tools. ------------------------------------------------------------------------ r365838 | gjb | 2020-09-17 09:09:38 -0700 (Thu, 17 Sep 2020) | 12 lines MFC r365646, r365720: r365646: Enclose BRANCH_OVERRIDE in quotes in order to fix an issue with freebsd-update(8) builds, where BRANCH is suffixed with -p0 for builds. r365720 (gordon): Partially revert r346018 and use the if/then construct instead of shell. Sponsored by: Rubicon Communications, LLC (netgate.com) ------------------------------------------------------------------------ r365860 | allanjude | 2020-09-17 14:51:05 -0700 (Thu, 17 Sep 2020) | 10 lines Update naming of per-dataset counters introduced in r365689 Upstream OpenZFS is changing the structure of the sysctl mibs to avoid having a / in the element name. Chase this change here to avoid introducing a new sysctl that will change named between 12.2 and 13.0 MFC-with: 365689 Relnotes: yes (fix example) Sponsored by: Klara Inc. ------------------------------------------------------------------------ r365862 | kib | 2020-09-17 15:27:07 -0700 (Thu, 17 Sep 2020) | 5 lines MFC r360219: Make nfslockd depend on xdr. PR: 249378 ------------------------------------------------------------------------ r365891 | kevans | 2020-09-18 15:24:51 -0700 (Fri, 18 Sep 2020) | 10 lines MFC r365756: certctl: fix unprivileged mode The first issue was lack of quoting around INSTALLFLAGS, which set it incorrectly and produced an error on -M. The second issue was that we weren't actually doing the install in unprivileged mode, making it effectively useless. This was designed to pass through the proper metalog/unpriv flags to install(1), so just let it happen. ------------------------------------------------------------------------ r365908 | kib | 2020-09-19 11:02:55 -0700 (Sat, 19 Sep 2020) | 3 lines MFC r365809: Style. ------------------------------------------------------------------------ r365909 | asomers | 2020-09-19 11:25:52 -0700 (Sat, 19 Sep 2020) | 10 lines MFC r363361: tests/sys/opencrypto: use python3 python2 will be EOL soon Reviewed by: lwhsu, jmg Sponsored by: Axcient Differential Revision: https://reviews.freebsd.org/D25682 ------------------------------------------------------------------------ r365911 | asomers | 2020-09-19 12:48:15 -0700 (Sat, 19 Sep 2020) | 28 lines MFC r365391, r365415 r365391: nsswitch.conf(5): recommend placing cache after files When cache precedes files, and nscd is configured to allow negative caching, commands like "pw groupadd" can fail. The sequence of events looks like: 1. A command like pkg(8) looks up the group, and finds it absent. 2. pkg invokes pw(8) to add the group 3. pkg queries the group, but nscd says it doesn't exist, since it has a negative cache entry for that group. See also: https://lists.freebsd.org/pipermail/freebsd-current/2012-January/031595.html Reviewed by: bcr (manpages) Sponsored by: Axcient Differential Revision: https://reviews.freebsd.org/D26184 r365415: nsswitch.conf.5: style fixes Fix some whitespace, and remove the .Tn macro Reported by: mandoc, igor Reviewed by: bcr (manpages) Differential Revision: https://reviews.freebsd.org/D26345 ------------------------------------------------------------------------ r365913 | bapt | 2020-09-19 13:06:30 -0700 (Sat, 19 Sep 2020) | 4 lines MFC r360775: Fix indentation of the Kitty entry ------------------------------------------------------------------------ r365914 | bapt | 2020-09-19 13:15:51 -0700 (Sat, 19 Sep 2020) | 42 lines MFC r361688-r361690, r365041 r361688: Restore compatibility with GNU diff regarding --label Various options to "diff(1)" show filenames, and traditionally make use of the "--label" parameter, if set. Restore this behaviour in BSD diff. While here add a regression test PR: 244533 Submitted by: Jamie Landeg-Jones r361689: diff: restore compatibility with GNU diff regarding -N option When -N is used the missing files are treated as empty. PR: 233402 Submitted by: Fehmi Noyan Isi Reported by: Roman Neuhauser Differential Revision: D25081 r361690: Document long version of -b option PR: 234195 Submitted by: Fehmi Noyan Isi Reported by: Andras Farkas r365041: diff: always properly kill pr(1) When diff is invoked with -l it will spawn the pr(1) program. In some circumpstances the pr(1) was not properly killed when diff program exits. Submitted by: Bret Ketchum Differential Revision: https://reviews.freebsd.org/D26232 ------------------------------------------------------------------------ r365915 | bapt | 2020-09-19 13:17:08 -0700 (Sat, 19 Sep 2020) | 8 lines MFC r361361, r365791 r361361: Update pciids to 2020.05.22 r365791: Update to 2020.08.19 ------------------------------------------------------------------------ r365920 | eugen | 2020-09-19 22:23:16 -0700 (Sat, 19 Sep 2020) | 16 lines MFC r365830: make it possible recovering broken GPT after some LBAs cut off If pre-formatted device has GPT and a partition covering last available LBAs and the device is attached using a bridge reducing amount of LBAs, then it could be not enough forcing GEOM to use primary GPT. Also, we should make it possible to recover GPT and this requires either deleting or resizing the partition. This change enables "gpart delete" and "gpart resize" commands on corrupted GPT with following "gpart recover". It still does not allow modifying corrupted GPT without preliminary setting sysctl kern.geom.part.check_integrity=0 Reported by: Alex Korchmar ------------------------------------------------------------------------ r365924 | kib | 2020-09-20 02:47:28 -0700 (Sun, 20 Sep 2020) | 5 lines MFC r365863: State kgssapi dependency on xdr. PR: 249378 ------------------------------------------------------------------------ r365928 | markj | 2020-09-20 09:49:48 -0700 (Sun, 20 Sep 2020) | 3 lines MFC r365841: Increase the default vm.max_user_wired value. ------------------------------------------------------------------------ r365934 | rmacklem | 2020-09-20 17:50:32 -0700 (Sun, 20 Sep 2020) | 33 lines MFC: r365703 Fix a case where the NFSv4.0 server might crash if delegations are enabled. asomers@ reported a crash on an NFSv4.0 server with a backtrace of: kdb_backtrace vpanic panic nfsrv_docallback nfsrv_checkgetattr nfsrvd_getattr nfsrvd_dorpc nfssvc_program svc_run_internal svc_thread_start fork_exit fork_trampoline where the panic message was "docallb", which indicates that a callback was attempted when the ClientID is unconfirmed. This would not normally occur, but it is possible to have an unconfirmed ClientID structure with delegation structure(s) chained off it if the client were to issue a SetClientID with the same "id" but different "verifier" after acquiring delegations on the previously confirmed ClientID. The bug appears to be that nfsrv_checkgetattr() failed to check for this uncommon case of an unconfirmed ClientID with a delegation structure that no longer refers to a delegation the client knows about. This patch adds a check for this case, handling it as if no delegation exists, which is the case when the above occurs. Although difficult to reproduce, this change should avoid the panic(). PR: 249127 ------------------------------------------------------------------------ r365937 | np | 2020-09-21 01:16:42 -0700 (Mon, 21 Sep 2020) | 12 lines MFC r365861 and r365872. r365861: cxgbe(4): Update T4/5/6 firmwares to 1.25.0.0. r365872: cxgbe(4): add the firmware binaries instead of the empty files that were added in r365861. Obtained from: Chelsio Communications Sponsored by: Chelsio Communications ------------------------------------------------------------------------ r365942 | avg | 2020-09-21 02:50:57 -0700 (Mon, 21 Sep 2020) | 14 lines MFC r363887 (by manu), r365395: allwinner: clk: Fix nm clock calculation r363887: Use the right factor when finding the best frequency and compare the absolute value of the result. Submitted by: kibab r365395: aw_clk_nm: fix incorrect use of abs() abs() takes a (signed) int as input. Instead, it was used with unsigned 64-bit integers. So, add and use a new helper function to calculate a difference between two uint64_t-s. ------------------------------------------------------------------------ r365959 | hselasky | 2020-09-21 11:18:53 -0700 (Mon, 21 Sep 2020) | 8 lines MFC r365719: Poll statistics more frequently in mlx5en(4). This makes traffic steering algorithms more accurate. Submitted by: gallatin @ Sponsored by: Mellanox Technologies // NVIDIA Networking ------------------------------------------------------------------------ r365962 | hselasky | 2020-09-21 11:21:59 -0700 (Mon, 21 Sep 2020) | 32 lines MFC r365237: Micro optimise _callout_stop_safe() by removing dead code. The CS_DRAIN flag cannot be set at the same time like the async-drain function pointer is set. These are orthogonal features. Assert this at the beginning of the function. Before: if (flags & CS_DRAIN) { /* FALLTHROUGH */ } else if (xxx) { return yyy; } if (drain) { zzz = drain; } After: if (flags & CS_DRAIN) { /* FALLTHROUGH */ } else if (xxx) { return yyy; } else { if (drain) { zzz = drain; } } Reviewed by: markj@ Tested by: callout_test Differential Revision: https://reviews.freebsd.org/D26285 Sponsored by: Mellanox Technologies // NVIDIA Networking ------------------------------------------------------------------------ r365963 | hselasky | 2020-09-21 11:24:28 -0700 (Mon, 21 Sep 2020) | 7 lines MFC r365238: Assert that cc_exec_drain(cc, direct) is NULL before assigning a new value. Suggested by: markj@ Tested by: callout_test Sponsored by: Mellanox Technologies // NVIDIA Networking ------------------------------------------------------------------------ r365964 | hselasky | 2020-09-21 11:27:44 -0700 (Mon, 21 Sep 2020) | 7 lines MFC r364932: Allow slow USB devices to be given more time to return their USB descriptors, like Logitech HD Pro Webcam C920. PR: 248926 Sponsored by: Mellanox Technologies ------------------------------------------------------------------------ r365971 | mckusick | 2020-09-21 12:25:41 -0700 (Mon, 21 Sep 2020) | 6 lines MFC of 365700 Switch to more appropriate libufs interfaces in newfs. Sponsored by: Netflix ------------------------------------------------------------------------ r365979 | markj | 2020-09-21 15:22:06 -0700 (Mon, 21 Sep 2020) | 7 lines Mark sysctls added in r365689 as MPSAFE. This is a direct commit to stable/12. Reviewed by: allanjude Differential Revision: https://reviews.freebsd.org/D26507 ------------------------------------------------------------------------ r365983 | erj | 2020-09-21 15:52:57 -0700 (Mon, 21 Sep 2020) | 9 lines MFC r365774 and r365776 These two commits fix issues in em(4)/igb(4): - Fix define and includes with RSS option enabled - Properly retain promisc flag in init PR: 249191, 248869 MFC after: 1 day ------------------------------------------------------------------------ r365986 | kevans | 2020-09-21 18:58:18 -0700 (Mon, 21 Sep 2020) | 6 lines MFC r365896: caroot: update base store Count: - Two (2) removed - Three (3) added ------------------------------------------------------------------------ r365987 | kevans | 2020-09-21 19:14:55 -0700 (Mon, 21 Sep 2020) | 40 lines MFC r365829, r365837, r365852: certctl rehash upon install/distribute r365829: installworld: run `certctl rehash` after installation completes This was originally introduced back in r360833, and subsequently reverted because it was broken for -DNO_ROOT builds and it may not have been the correct place for it. While debatably this may still not be 'the correct place,' it's much cleaner than scattering rehashes all throughout the tree. brooks has fixed the issue with -DNO_ROOT by properly writing to the METALOG in r361397. Do note that this is different than what was originally committed; brooks had revisions in D24932 that made it actually use the revised unprivileged mode and write to METALOG, along with being a little more friendly to foreign crossbuilds and just using the certctl in-tree. With this change, I believe we should now have a populated /etc/ssl/certs in the VM images. r365837: Promote the installworld `certctl rehash` to distributeworld Contrary to my belief, installworld is not sufficient for getting certs installed into VM images. Promote the rehash to both installworld and distributeworld (notably: not stageworld) and rehash the base distdir so we end up with /etc/ssl/certs populated in the base dist archive. A future commit will remove the rehash from bsdinstall, which doesn't really need to happen if they're installed into base.txz. While here, fix a minor typo: s/CERTCLTFLAGS/CERTCTLFLAGS/ r365852: Revert r361257: bsdinstall: do a `certctl rehash` upon installation [...] As of r365829, any given base distribution set will now include the /etc/ssl symlinks that this rehash would've otherwise installed. This extra step is no longer required. ------------------------------------------------------------------------ r365990 | kevans | 2020-09-21 19:22:37 -0700 (Mon, 21 Sep 2020) | 6 lines Record-only MFC of r365018 MFC r365018: Makefile.inc1: comment .endif to ease finding matching .if This was effectively merged back in r365987 and r365988. ------------------------------------------------------------------------ r365994 | markj | 2020-09-22 05:14:46 -0700 (Tue, 22 Sep 2020) | 3 lines MFC r365749: Fix some posixshmcontrol nits. ------------------------------------------------------------------------ r365996 | mhorne | 2020-09-22 07:15:06 -0700 (Tue, 22 Sep 2020) | 10 lines MFC r365304, r365459 r365304: arm64: update the set of HWCAP definitions r365459: arm64: fix incorrect HWCAP definitions Sponsored by: The FreeBSD Foundation ------------------------------------------------------------------------ r365999 | mhorne | 2020-09-22 07:29:19 -0700 (Tue, 22 Sep 2020) | 4 lines Add some missing mergeinfo This should have been included when MFC'ing r362788 and r364193. ------------------------------------------------------------------------ r366000 | ian | 2020-09-22 07:59:05 -0700 (Tue, 22 Sep 2020) | 9 lines MFC r365729: Add product ID strings for a couple Microchip usb hubs. Also, update the vendor ID string to say just "Microchip Technology" -- the buyout of Standard Microsystems happened in 2012 and the SMC/SMSC names are pretty much retired at this point. PR: 241406 ------------------------------------------------------------------------ r366006 | gbe | 2020-09-22 10:28:32 -0700 (Tue, 22 Sep 2020) | 4 lines MFC r365857: pwmbus(9): some markup fixes - whitespace at end of input line ------------------------------------------------------------------------ r366007 | gbe | 2020-09-22 10:29:44 -0700 (Tue, 22 Sep 2020) | 2 lines MFC r365854: VOP_INACTIVE(9): Remove trailing whitespace ------------------------------------------------------------------------ r366008 | gbe | 2020-09-22 10:30:53 -0700 (Tue, 22 Sep 2020) | 5 lines MFC r365853: domainset(9): Some markup fixes - new sentence, new line - whitespace at end of input line ------------------------------------------------------------------------ r366009 | cperciva | 2020-09-22 11:18:57 -0700 (Tue, 22 Sep 2020) | 5 lines Revert r361645. The current quarterly ports branch contains ebsnvme-id, so packages are now available for all architectures. (Direct commit to stable/12 since r361645 never happened in HEAD.) ------------------------------------------------------------------------ r366010 | lwhsu | 2020-09-22 13:04:57 -0700 (Tue, 22 Sep 2020) | 12 lines MFC r346623 (by ngie): Chase PEP-3110 Replace `except Environment, e:` with `except Environment as e` for compatibility between python 2.x and python 3.x. While here, fix a bad indentation change from r346620 by reindenting the code properly. Sponsored by: The FreeBSD Foundation ------------------------------------------------------------------------ r366013 | vmaffione | 2020-09-22 14:16:03 -0700 (Tue, 22 Sep 2020) | 26 lines MFC r364936, r365023 lib: add libnetmap This changeset introduces the new libnetmap library for writing netmap applications. Before libnetmap, applications could either use the kernel API directly (e.g. NIOCREGIF/NIOCCTRL) or the simple header-only-library netmap_user.h (e.g. nm_open(), nm_close(), nm_mmap() etc.) The new library offers more functionalities than netmap_user.h: - Support for complex netmap options, such as external memory allocators or per-buffer offsets. This opens the way to future extensions. - More flexibility in the netmap port bind options, such as non-numeric names for pipes, or the ability to specify the netmap allocator that must be used for a given port. - Automatic tracking of the netmap memory regions in use across the open ports. At the moment there is no man page, but the libnetmap.h header file has in-depth documentation. Reviewed by: hrs Differential Revision: https://reviews.freebsd.org/D26171 ------------------------------------------------------------------------ r366014 | vmaffione | 2020-09-22 14:43:43 -0700 (Tue, 22 Sep 2020) | 40 lines MFC r365061 iflib: leave only 1 receive descriptor unused The pidx argument of isc_rxd_flush() indicates which is the last valid receive descriptor to be used by the NIC. However, current code has multiple issues: - Intel drivers write pidx to their RDT register, which means that NICs will only use the descriptors up to pidx-1 (modulo ring size N), and won't actually use the one pointed by pidx. This does not break reception, but it is anyway confusing and suboptimal (the NIC will actually see only N-2 descriptors as available, rather than N-1). Other drivers (if_vmx, if_bnxt, if_mgb) adhere to this semantic. - The semantic used by Intel (RDT is one descriptor past the last valid one) is used by most (if not all) NICs, and it is also used on the TX side (also in iflib). Since iflib is not currently using this semantic for RX, it must decrement fl->ifl_pidx (modulo N) before calling isc_rxd_flush(), and then the per-driver callback implementation must increment the index again (to match the real semantic). This is confusing and suboptimal. - The iflib refill function is also called at initialization. However, in case the ring size is smaller than 128 (e.g. if_mgb), the refill function will actually prepare all the receive descriptors (N), without leaving one unused, as most of NICs assume (e.g. to avoid RDT to overrun RDH). I can speculate that the code looks like this right now because this issue showed up during testing (e.g. with if_mgb), and it was easy to workaround by decrementing pidx before isc_rxd_flush(). The goal of this change is to simplify the code (removing a bunch of instructions from the RX fast path), and to make the semantic of isc_rxd_flush() consistent across drivers. To achieve this, we: - change the semantics of the pidx argument to the usual one (that is the index one past the last valid one), so that both iflib and drivers avoid the decrement/increment dance. - fix the initialization code to prepare at most N-1 descriptors. Reviewed by: markj Differential Revision: https://reviews.freebsd.org/D26191 ------------------------------------------------------------------------ r366028 | cperciva | 2020-09-22 16:13:29 -0700 (Tue, 22 Sep 2020) | 2 lines MFC r365696: Spawn the DHCPv6 client in EC2 instances via rtsold. ------------------------------------------------------------------------ r366050 | rmacklem | 2020-09-22 18:49:50 -0700 (Tue, 22 Sep 2020) | 15 lines MFC: r365789 Fix a LOR between the NFS server and server side krpc. Recent testing of the NFS-over-TLS code found a LOR between the mutex lock used for sessions and the sleep lock used for server side krpc socket structures. The code in nfsrv_checksequence() would call SVC_RELEASE() with the mutex held. Normally this is ok, since all that happens is SVC_RELEASE() decrements a reference count. However, if the socket has just been shut down, SVC_RELEASE() drops the reference count to 0 and acquires a sleep lock during destruction of the server side krpc structure. This patch fixes the problem by moving the SVC_RELEASE() call in nfsrv_checksequence() down a few lines to below where the mutex is released. ------------------------------------------------------------------------ r366067 | lwhsu | 2020-09-23 02:58:48 -0700 (Wed, 23 Sep 2020) | 7 lines MFC r365444: Add support to BELKIN B2B128 USB3 Ethernet Adapter to axge(4) Github PR: https://github.com/freebsd/freebsd/pull/439 Submitted by: https://github.com/jdpc86 ------------------------------------------------------------------------ r366073 | lwhsu | 2020-09-23 05:11:14 -0700 (Wed, 23 Sep 2020) | 68 lines MFC r347996, r348024, r348031, r348042 (by ngie) r347996: Replace uses of `foo.(de|en)code('hex')` with `binascii.(un)?hexlify(foo)` Python 3 no longer doesn't support encoding/decoding hexadecimal numbers using the `str.format` method. The backwards compatible new method (using the binascii module/methods) is a comparable means of converting to/from hexadecimal format. In short, the functional change is the following: * `foo.decode('hex')` -> `binascii.unhexlify(foo)` * `foo.encode('hex')` -> `binascii.hexlify(foo)` While here, move the dpkt import in `cryptodev.py` down per PEP8, so it comes after the standard library provided imports. PR: 237403 r348024: Followup to r347996 Replace uses of `foo.encode("hex")` with `binascii.hexlify(foo)` for forwards compatibility between python 2.x and python 3. PR: 237403 r348031: Squash deprecation warning related to array.array(..).tostring() In version 3.2+, `array.array(..).tostring()` was renamed to `array.array(..).tobytes()`. Conditionally call `array.array(..).tobytes()` if the python version is 3.2+. PR: 237403 r348042: Fix encoding issues with python 3 In python 3, the default encoding was switched from ascii character sets to unicode character sets in order to support internationalization by default. Some interfaces, like ioctls and packets, however, specify data in terms of non-unicode encodings formats, either in host endian (`fcntl.ioctl`) or network endian (`dpkt`) byte order/format. This change alters assumptions made by previous code where it was all data objects were assumed to be basestrings, when they should have been treated as byte arrays. In order to achieve this the following are done: * str objects with encodings needing to be encoded as ascii byte arrays are done so via `.encode("ascii")`. In order for this to work on python 3 in a type agnostic way (as it anecdotally varied depending on the caller), call `.encode("ascii")` only on str objects with python 3 to cast them to ascii byte arrays in a helper function name `str_to_ascii(..)`. * `dpkt.Packet` objects needing to be passed in to `fcntl.ioctl(..)` are done so by casting them to byte arrays via `bytes()`, which calls `dpkt.Packet__str__` under the covers and does the necessary str to byte array conversion needed for the `dpkt` APIs and `struct` module. In order to accomodate this change, apply the necessary typecasting for the byte array literal in order to search `fop.name` for nul bytes. This resolves all remaining python 2.x and python 3.x compatibility issues on amd64. More work needs to be done for the tests to function with i386, in general (this is a legacy issue). PR: 237403 Tested with: python 2.7.16 (amd64), python 3.6.8 (amd64) ------------------------------------------------------------------------ r366076 | cy | 2020-09-23 07:36:38 -0700 (Wed, 23 Sep 2020) | 6 lines MFC r364720: Update sqlite to 3.33.0 (3330000). Release announcement at https://www.sqlite.org/releaselog/3_33_0.html. ------------------------------------------------------------------------ r366079 | kib | 2020-09-23 10:11:06 -0700 (Wed, 23 Sep 2020) | 3 lines MFC r365811: Improve ddb 'show pgrpdump' command. ------------------------------------------------------------------------ r366080 | kib | 2020-09-23 10:12:59 -0700 (Wed, 23 Sep 2020) | 4 lines MFC r365812: proc_realparent: if p_oppid does not match pid of the current parent for non-orphaned process, return reaper instead of init. ------------------------------------------------------------------------ r366081 | kib | 2020-09-23 10:20:04 -0700 (Wed, 23 Sep 2020) | 3 lines MFC r365813: Assert that P_TREE_GRPEXITED is set only once. ------------------------------------------------------------------------ r366082 | kib | 2020-09-23 10:25:04 -0700 (Wed, 23 Sep 2020) | 3 lines MFC r365814: Fix fixjobc+orhpanage. ------------------------------------------------------------------------ r366083 | kib | 2020-09-23 10:26:53 -0700 (Wed, 23 Sep 2020) | 3 lines MFC r365815, r365826: Add check_pgrp_jobc() calls into process exit path. ------------------------------------------------------------------------ r366092 | gbe | 2020-09-23 12:40:03 -0700 (Wed, 23 Sep 2020) | 5 lines MFC r365858: man(9): Some markup fixes - whitespace at end of input line - skipping paragraph macro: Pp after Sh ------------------------------------------------------------------------ r366094 | jhb | 2020-09-23 14:57:29 -0700 (Wed, 23 Sep 2020) | 7 lines MFC 365278: Don't assume objects in program sections have a size of a pointer. The size of the object at 'addr' is unknown and might be smaller than the size of a pointer (e.g. some x86 instructions are smaller than a pointer). Instead, just check that the address is in the bounds of the program header. ------------------------------------------------------------------------ r366095 | cy | 2020-09-23 15:36:38 -0700 (Wed, 23 Sep 2020) | 10 lines MFC r364721-r364722 r364721: MFV 364468: Update unbound 1.10.1 --> 1.11.0. r364722: Update unbound version number. ------------------------------------------------------------------------ r366117 | rmacklem | 2020-09-24 08:34:47 -0700 (Thu, 24 Sep 2020) | 14 lines MFC: r365895 Fix a LOR between the NFS server and server side krpc. Recent testing of the NFS-over-TLS code found a LOR between the mutex lock used for sessions and the sleep lock used for server side krpc socket structures in nfsrv_checksequence(). This was fixed by r365789. A similar bug exists in nfsrv_bindconnsess(), where SVC_RELEASE() is called while mutexes are held. This patch applies a fix similar to r365789, moving the SVC_RELEASE() call down to after the mutexes are released. This patch fixes the problem by moving the SVC_RELEASE() call in nfsrv_bindconnsess() down a few lines to below where the mutexes are released. ------------------------------------------------------------------------ r366130 | vmaffione | 2020-09-24 13:01:31 -0700 (Thu, 24 Sep 2020) | 9 lines MFC r366011 libnetmap: fix cast from uint64_t to void* We use uintptr_t as an intermediate cast to avoid compiler warnings on 32 bit architectures. Reported by: adrian ------------------------------------------------------------------------ r366151 | rscheff | 2020-09-25 03:49:26 -0700 (Fri, 25 Sep 2020) | 14 lines MFC r365546: cc_mod: remove unused CCF_DELACK definition During the DCTCP improvements, use of CCF_DELACK was removed. This change is just to rename the unused flag bit to prevent use of it, without also re-implementing the tcp_input and tcp_output interfaces. No functional change. Reviewed by: chengc_netapp.com,tuexen MFC after: 2 weeks Sponsored by: NetApp, Inc. Differential Revision: https://reviews.freebsd.org/D26181 ------------------------------------------------------------------------ r366152 | rscheff | 2020-09-25 03:57:11 -0700 (Fri, 25 Sep 2020) | 13 lines MFC r365547: Add -z "TOS" option to ping6, to test DSCP/ECN values ping has the option to add the (deprecated) TOS byte using the -z option. Adding the same option, with the same (deprecated) Traffic Class Byte (nowadays actually DSCP and ECN fields) to ping6 to validate proper QoS processing in network switches. Reviewed by: tuexen MFC after: 2 weeks Sponsored by: NetApp, Inc. Differential Revision: https://reviews.freebsd.org/D26384 ------------------------------------------------------------------------ r366153 | kib | 2020-09-25 05:54:42 -0700 (Fri, 25 Sep 2020) | 3 lines MFC r365880: Add pargs, penv, pwdx commands and aliases to procstat(1). ------------------------------------------------------------------------ r366154 | markj | 2020-09-25 06:24:29 -0700 (Fri, 25 Sep 2020) | 5 lines MFC r366005: udf: Validate the full file entry length PR: 248613 ------------------------------------------------------------------------ r366157 | markj | 2020-09-25 06:53:32 -0700 (Fri, 25 Sep 2020) | 5 lines MFC r365889: Install library symlinks atomically. PR: 233769 ------------------------------------------------------------------------ r366158 | markj | 2020-09-25 06:59:50 -0700 (Fri, 25 Sep 2020) | 3 lines MFC r365879, r365976: Assert we are not traversing through superpages in the arm64 pmap. ------------------------------------------------------------------------ r366163 | mckusick | 2020-09-25 10:14:35 -0700 (Fri, 25 Sep 2020) | 6 lines MFC of 365992 Update check-hash when doing large filesystem expansions. Sponsored by: Netflix ------------------------------------------------------------------------ r366166 | gjb | 2020-09-25 11:21:50 -0700 (Fri, 25 Sep 2020) | 4 lines Record missing svn:mergeinfo for r366163. Sponsored by: Rubicon Communications, LLC (netgate.com) ------------------------------------------------------------------------ r366174 | jhb | 2020-09-25 14:18:43 -0700 (Fri, 25 Sep 2020) | 5 lines MFC 365013: Suppress -Wempty-body warnings in GCC 6.x and later. libc++ in LLVM 11 uses an empty else clause in include/c++/v1/__thread_support which triggers this warning. ------------------------------------------------------------------------ r366176 | jkim | 2020-09-25 14:58:43 -0700 (Fri, 25 Sep 2020) | 4 lines MFC: r366004 Merge OpenSSL 1.1.1h. ------------------------------------------------------------------------ r366178 | cperciva | 2020-09-25 17:40:56 -0700 (Fri, 25 Sep 2020) | 5 lines MFC r365898: Move finalize_components_config from get_params to cmd_*. This eliminates spurious emails from `freebsd-update cron` when the src component is listed in freebsd-update.conf but is not present. ------------------------------------------------------------------------ r366179 | cperciva | 2020-09-25 17:58:27 -0700 (Fri, 25 Sep 2020) | 25 lines MFC r360483,360484: Make nvmecontrol work with nda like it does with nvd, and associated bits. This commit changes the size of 'struct ccb_pathinq_settings_nvme', which would normally risk breaking kernel ABI; however, that structure is only ever used as part of a union with larger structures -- so nothing really changes size. r360483: Return the nvmeX device associated with the ndaX device. Add the nvmeX device to the XPT_PATH_INQ nvme specific information. while one could figure this out by looking up the domain:bus:slot:function, it's a lot easier to have the SIM set it directly since the sim knows this. r360484: Implement the NVME_GET_NSID and NVME_PASSTHROUGH_CMD ioctls With these two ioctls implemented in the nda driver, nvmecontrol now works with nda just like it does with nvd. It eliminates the need to jump through odd hoops to get this data. Discussed with: imp ------------------------------------------------------------------------ r366180 | asomers | 2020-09-25 19:50:28 -0700 (Fri, 25 Sep 2020) | 31 lines zfs: Fix resuming receive stream to dataset with mounted clone My fix for bug 248606 (zfs receive: Input/output error accessing dataset after resuming interrupted receive), r364412, introduced a regression: attempting to resume a receive into a dataset with a mounted clone would fail if that clone were in-use. This change reverts r364412 and fixes it in a better way. Background: When ZFS receives a stream, it may decide to unmount and remount the destination and all of its children. However, ever since resumable send/receive was implemented, ZFS has skipped the unmount/remount step when resuming a stream. I don't know why. That let to bug 248606. When resuming the stream, ZFS didn't unmount and remount the destination, leaving a destroyed dataset mounted. My original fix was to always unmount and remount when resuming a receive, but that caused other problems, like bug 249579. A better solution is to unmount and remount when resuming a receive of a stream that would've unmounted and remounted when it was new. Direct commit to stable/12 because head has moved to OpenZFS. The bug exists there, too, but a change to the OpenZFS code can't be merged to the old ZFS code. PR: 249579 Reviewed by: mmacy MFC after: 1 week Sponsored by: Axcient ------------------------------------------------------------------------ r366182 | hselasky | 2020-09-26 01:44:16 -0700 (Sat, 26 Sep 2020) | 8 lines MFC r365918: Fix for use of the XHCI driver on Cortex-A72 by adding a missing cache flush operation before writing to the XHCI_ERSTBA_LO/HI register(s). PR: 237666 Discussed with: Mark Millard Sponsored by: Mellanox Technologies // Nvidia ------------------------------------------------------------------------ r366184 | gjb | 2020-09-26 07:43:53 -0700 (Sat, 26 Sep 2020) | 6 lines Revert r366166, which records svn:mergeinfo for the wrong revision in question. Pointyhat: gjb (myself) Sponsored by: Rubicon Communications, LLC (netgate.com) ------------------------------------------------------------------------ r366185 | gjb | 2020-09-26 07:44:58 -0700 (Sat, 26 Sep 2020) | 4 lines Record svn:mergeinfo for r365992. Sponsored by: Rubicon Communications, LLC (netgate.com) ------------------------------------------------------------------------ r366190 | asomers | 2020-09-26 19:59:28 -0700 (Sat, 26 Sep 2020) | 23 lines MFC r366121: fusefs: fix mmap'd writes in direct_io mode If a FUSE server returns FOPEN_DIRECT_IO in response to FUSE_OPEN, that instructs the kernel to bypass the page cache for that file. This feature is also known by libfuse's name: "direct_io". However, when accessing a file via mmap, there is no possible way to bypass the cache completely. This change fixes a deadlock that would happen when an mmap'd write tried to invalidate a portion of the cache, wrongly assuming that a write couldn't possibly come from cache if direct_io were set. Arguably, we could instead disable mmap for files with FOPEN_DIRECT_IO set. But allowing it is less likely to cause user complaints, and is more in keeping with the spirit of open(2), where O_DIRECT instructs the kernel to "reduce", not "eliminate" cache effects. PR: 247276 Reported by: trapexit@spawn.link Reviewed by: cem Differential Revision: https://reviews.freebsd.org/D26485 ------------------------------------------------------------------------ r366191 | gbe | 2020-09-27 01:39:38 -0700 (Sun, 27 Sep 2020) | 4 lines MFC r365905: diskless(8): Correct Sections out of conventional order error Event: September 2020 Bugathon ------------------------------------------------------------------------ r366208 | emaste | 2020-09-27 15:48:43 -0700 (Sun, 27 Sep 2020) | 10 lines MFC r356615: src.opts.mk: force KERBEROS_SUPPORT off where KERBEROS forced off Explicitly setting WITHOUT_KERBEROS implies WITHOUT_KERBEROS_SUPPORT, but previously other cases that forced KERBEROS off (such as WITHOUT_CRYPT) did not also set KERBEROS_SUPPORT off. Because the _SUPPORT dependent options (KERBEROS/KERBEROS_SUPPORT) are processed before other dependencies (CRYPT/KERBEROS) it's not easy to make this happen automatically. Instead just explicitly set KERBEROS_SUPPORT off where we set KERBEROS off. ------------------------------------------------------------------------ r366209 | emaste | 2020-09-27 15:50:01 -0700 (Sun, 27 Sep 2020) | 2 lines MFC r356323: src.opts.mk: SVNLITE requires FILE ------------------------------------------------------------------------ r366218 | se | 2020-09-28 00:59:50 -0700 (Mon, 28 Sep 2020) | 7 lines MFC r366100: Add build options WITH/WITHOUT_GH_BC. The update to the man-page cannot be merged, since the default value of this option differs between -CURRENT and 12-STABLE. ------------------------------------------------------------------------ r366220 | markj | 2020-09-28 04:46:03 -0700 (Mon, 28 Sep 2020) | 5 lines MFC r366167: ng_l2tp: Fix callout synchronization in the rexmit timeout handler PR: 241133 ------------------------------------------------------------------------ r366222 | markj | 2020-09-28 04:52:09 -0700 (Mon, 28 Sep 2020) | 3 lines MFC r365907: Address compiler warnings in C code used by the DTrace test suite. ------------------------------------------------------------------------ r366224 | 0mp | 2020-09-28 06:52:18 -0700 (Mon, 28 Sep 2020) | 14 lines MFC 364454, 364453: I. Reference spi(8) from spigen.4 II. Clean up spi.8 - Remove trailing whitespace - Address igor and mandoc warnings - Sort options - Use macros consistently (e.g., Fl for flags, Dq for quoting, Bd for code blocks) - Add a history section - Fix incorrect use of macros in various places ------------------------------------------------------------------------ r366233 | 0mp | 2020-09-28 15:10:08 -0700 (Mon, 28 Sep 2020) | 7 lines MFC r364342: Use complete OIDs to avoid confusion Submitted by: otis_sk.freebsd.org Differential Revision: https://reviews.freebsd.org/D26098 ------------------------------------------------------------------------ r366235 | 0mp | 2020-09-28 15:13:07 -0700 (Mon, 28 Sep 2020) | 4 lines MFC r364387: Cross-reference development.7 and tests.7 ------------------------------------------------------------------------ r366238 | rmacklem | 2020-09-28 18:52:53 -0700 (Mon, 28 Sep 2020) | 23 lines MFC: r366189 Bjorn reported a problem where the Linux NFSv4.1 client is using an open_to_lock_owner4 when that lock_owner4 has already been created by a previous open_to_lock_owner4. This caused the NFS server to reply NFSERR_INVAL. For NFSv4.0, this is an error, although the updated NFSv4.0 RFC7530 notes that the correct error reply is NFSERR_BADSEQID (RFC3530 did not specify what error to return). For NFSv4.1, it is not obvious whether or not this is allowed by RFC5661, but the NFSv4.1 server can handle this case without error. This patch changes the NFSv4.1 (and NFSv4.2) server to handle multiple uses of the same lock_owner in open_to_lock_owner so that it now correctly interoperates with the Linux NFS client. It also changes the error returned for NFSv4.0 to be NFSERR_BADSEQID. Thanks go to Bjorn for diagnosing this and testing the patch. He also provided a program that I could use to reproduce the problem. PR: 249567 Reported by: bf@cebitec.uni-bielefeld.de ------------------------------------------------------------------------ r366239 | markj | 2020-09-28 18:54:04 -0700 (Mon, 28 Sep 2020) | 3 lines MFC r366002: tftpd: Check for errors from chdir() ------------------------------------------------------------------------ r366240 | markj | 2020-09-28 18:56:21 -0700 (Mon, 28 Sep 2020) | 3 lines MFC r366003: ftpd: Add missing braces around a statfd check ------------------------------------------------------------------------ r366255 | dab | 2020-09-29 07:59:41 -0700 (Tue, 29 Sep 2020) | 6 lines MFC r365946: Add an ioctl to get an NVMe device's maximum transfer size Sponsored by: Dell EMC Isilon ------------------------------------------------------------------------ r366258 | zeising | 2020-09-29 08:37:33 -0700 (Tue, 29 Sep 2020) | 7 lines MFC r366186: bsdconfig, bsdinstall: Prune dead mirrors Prune dead mirrors from the list of mirrors in bsdconfig and bsdinstall. All these return NXDOMAIN when trying to resolve them. Approved by: emaste ------------------------------------------------------------------------ r366261 | dab | 2020-09-29 09:38:56 -0700 (Tue, 29 Sep 2020) | 18 lines MFC r365948: Honor the FWUG value of some drives in nvmecontrol nvmecontrol tries to upload firmware in chunks as large as it thinks the device permits. It fails to take into account the FWUG value used by some drives to advertise the size and alignment limits for firmware chunks. - Use the firwmare update granularity value from the identify-controller response to set the max transfer size. - If the granularity is not reported or not restricted, fall back to the previously existing logic that calculates the max transfer size based on MDTS. - Add firmware update granularity to the identify-controller output. Sponsored by: Dell EMC Isilon ------------------------------------------------------------------------ r366262 | dab | 2020-09-29 10:09:43 -0700 (Tue, 29 Sep 2020) | 6 lines MFC r365967: Whitespace fix after r365948 Sponsored by: Dell EMC Isilon ------------------------------------------------------------------------ r366272 | np | 2020-09-29 16:35:46 -0700 (Tue, 29 Sep 2020) | 14 lines MFC r349533 (by jhb@). Note that this does not add any functionality as IFCAP_NOMAP doesn't exist on 12. This is mainly an attempt to get t4_sge.c closer to what's in head (to help with other MFCs). r349533: Add support for IFCAP_NOMAP to cxgbe(4). Since cxgbe(4) uses sglist instead of bus_dma, this required updates to the code that generates scatter/gather lists for packets. Also, unmapped mbufs are always sent via DMA and never as immediate data in the payload of a work request. ------------------------------------------------------------------------ r366274 | np | 2020-09-29 17:13:19 -0700 (Tue, 29 Sep 2020) | 4 lines MFC r365991: cxgbe(4): add counters for mbuf pullups and defrags. ------------------------------------------------------------------------ r366276 | kevans | 2020-09-29 17:53:55 -0700 (Tue, 29 Sep 2020) | 4 lines MFC r365954: xargs: add some long options for GNU compatibility These are low-effort to add, so let's just do it. ------------------------------------------------------------------------ r366277 | kevans | 2020-09-29 17:56:08 -0700 (Tue, 29 Sep 2020) | 22 lines MFC r366059-r366060: cp(1): tests r366059: cp: add some basic tests There are some tests available in the NetBSD test suite, but we don't currently pass all of those; further investigation will go into that. For now, just add a basic test as well as a test that copies from /dev/null to a file. The /dev/null test confirms that the file gets created if it's empty, then that it truncates the file if it's non-empty. This matches some usage that was previously employed in the build and was replaced in r366042 by a simpler shell construct. I will also plan on coming back to expand these in due time. r366060: cp: tests: fix weird 20 insertion This slipped in at the last moment. =( ------------------------------------------------------------------------ r366280 | kib | 2020-09-29 19:25:05 -0700 (Tue, 29 Sep 2020) | 3 lines MFC r366085, r366113: Do not leak oldvmspace if image activation failed ------------------------------------------------------------------------ r366282 | cy | 2020-09-29 20:38:13 -0700 (Tue, 29 Sep 2020) | 4 lines MFC r366204: Remove extraneous bracket. ------------------------------------------------------------------------ r366289 | kib | 2020-09-30 06:21:17 -0700 (Wed, 30 Sep 2020) | 3 lines MFC r357530: Remove unneeded assert for curproc. Simplify. ------------------------------------------------------------------------ r366290 | markj | 2020-09-30 06:33:28 -0700 (Wed, 30 Sep 2020) | 3 lines MFC r366091: Flag vm_reserv and vm_phys sysctls as MPSAFE. ------------------------------------------------------------------------ r366297 | jhb | 2020-09-30 11:09:50 -0700 (Wed, 30 Sep 2020) | 8 lines MFC 366175: Revert most of r360179. I had failed to notice that sgsendccb() was using cam_periph_mapmem() and thus was not passing down user pointers directly to drivers. In practice this broke requests submitted from userland. PR: 249395 ------------------------------------------------------------------------ r366298 | emaste | 2020-09-30 12:23:25 -0700 (Wed, 30 Sep 2020) | 8 lines MFC r363563: chio: avoid out of bounds read ch_ces is alloacated with space for total_elem entries. CID: 1418536 Reported by: Coverity Scan Sponsored by: The FreeBSD Foundation ------------------------------------------------------------------------ r366299 | emaste | 2020-09-30 13:57:01 -0700 (Wed, 30 Sep 2020) | 6 lines MFC r359067: -F is GNU diff specific, not implemented in BSD diff. PR: 239519 Reported by: kouya@ryuhoku.jp [in -CURRENT] MFC after: 3 days ------------------------------------------------------------------------ r366305 | delphij | 2020-09-30 20:08:23 -0700 (Wed, 30 Sep 2020) | 3 lines MFC r366064, r366065, r366215: sbin/fsck_msdosfs: Fix an integer overflow on 32-bit platforms ------------------------------------------------------------------------ r366319 | tuexen | 2020-10-01 09:09:23 -0700 (Thu, 01 Oct 2020) | 4 lines MFC r365685: Add a -t option to traceroute6 to control the traffic class used when sending probe packets. ------------------------------------------------------------------------ r366320 | tuexen | 2020-10-01 09:11:08 -0700 (Thu, 01 Oct 2020) | 4 lines MFC r365686: Export the name of the congestion control. This will be used by sockstat and netstat. ------------------------------------------------------------------------ r366321 | tuexen | 2020-10-01 09:14:00 -0700 (Thu, 01 Oct 2020) | 5 lines MFC r365687: Add a -C option to sockstat to display the congestion control for TCP connections. ------------------------------------------------------------------------ r366322 | tuexen | 2020-10-01 09:18:49 -0700 (Thu, 01 Oct 2020) | 4 lines MFC r365688: Add a -C option to netstat to display the congestion control for TCP connections. ------------------------------------------------------------------------ r366323 | tuexen | 2020-10-01 09:22:34 -0700 (Thu, 01 Oct 2020) | 3 lines MFC r366114: Whitespace changes. ------------------------------------------------------------------------ r366324 | tuexen | 2020-10-01 09:23:35 -0700 (Thu, 01 Oct 2020) | 10 lines MFC r366198: Improve the handling of receiving unordered and unreliable user messages using DATA chunks. Don't use fsn_included when not being sure that it is set to an appropriate value. If the default is used, which is -1, this can result in SCTP associaitons not making any user visible progress. Thanks to Yutaka Takeda for reporting this issue for the the userland stack in https://github.com/pion/sctp/issues/138. ------------------------------------------------------------------------ r366325 | tuexen | 2020-10-01 09:24:28 -0700 (Thu, 01 Oct 2020) | 4 lines MFC r366199: Cleanup, no functional change intended. ------------------------------------------------------------------------ r366326 | tuexen | 2020-10-01 09:25:35 -0700 (Thu, 01 Oct 2020) | 3 lines MFC r366226: Minor cleanup. ------------------------------------------------------------------------ r366329 | tuexen | 2020-10-01 09:53:16 -0700 (Thu, 01 Oct 2020) | 9 lines MFC r366248: Improve the input validation and processing of cookies. This avoids setting the association in an inconsistent state, which could result in a use-after-free situation. This can be triggered by a malicious peer, if the peer can modify the cookie without the local endpoint recognizing it. Thanks to Ned Williamson for reporting the issue. ------------------------------------------------------------------------ r366341 | asomers | 2020-10-01 12:55:52 -0700 (Thu, 01 Oct 2020) | 15 lines zfs: fix "zfs receive" of interrupted stream without "-F" after r366180 The OpenZFS test suite revealed a regression with the changes made by r366180 and r364974: "zfs recv" resuming and interrupted stream without -F would refuse to run, complaining that "dataset exists". Direct commit to stable/12 because head has moved to the OpenZFS code base. Upstream issue: https://github.com/openzfs/zfs/issues/10995 Reviewed by: mmacy MFC after: 3 days MFC-with: 366180 Sponsored by: Axcient ------------------------------------------------------------------------ r366356 | kib | 2020-10-02 03:03:17 -0700 (Fri, 02 Oct 2020) | 3 lines MFC r366237: procstat: Fix regression after 365880. ------------------------------------------------------------------------ r366357 | avg | 2020-10-02 05:46:28 -0700 (Fri, 02 Oct 2020) | 2 lines MFC r365290: move definition of hw.i2c sysctl node from iicbb to iicbus ------------------------------------------------------------------------ r366358 | avg | 2020-10-02 05:48:07 -0700 (Fri, 02 Oct 2020) | 2 lines MFC r365396: twsi: use tsleep instead of pause for better responsiveness ------------------------------------------------------------------------ r366359 | avg | 2020-10-02 05:49:27 -0700 (Fri, 02 Oct 2020) | 2 lines MFC r366143: pwm(8): do not exit with failure after successfully reading configuration ------------------------------------------------------------------------ r366360 | mhorne | 2020-10-02 06:31:20 -0700 (Fri, 02 Oct 2020) | 3 lines MFC r366271: arm64: set the correct HWCAP ------------------------------------------------------------------------ r366361 | mhorne | 2020-10-02 06:36:29 -0700 (Fri, 02 Oct 2020) | 2 lines Add the mergeinfo for r366271 ------------------------------------------------------------------------ r366385 | jhibbits | 2020-10-02 19:26:38 -0700 (Fri, 02 Oct 2020) | 9 lines MFC r366162,r366169,r366188 Fix compat32 on mips64: * Elf32_Auxinfo is broken, using pointers in the union, which are 64-bits not 32. * freebsd32_sysarch() doesn't update the 'user local' register when handling MIPS_SET_TLS, leading to a NULL pointer dereference in the 32-bit application. ------------------------------------------------------------------------ r366395 | kevans | 2020-10-03 06:27:57 -0700 (Sat, 03 Oct 2020) | 4 lines MFC r361254: Fix Typo in ng_hci_le_connection_complete_ep struct. PR: 246538 ------------------------------------------------------------------------ r366399 | gbe | 2020-10-03 07:45:17 -0700 (Sat, 03 Oct 2020) | 8 lines MFC r365640: Improvements for the src.conf(5) and build(7) man pages PR: 203863 (based on) Submitted by: Russell Haley Reviewed by: bcr, imp Approved by: imp Differential Revision: https://reviews.freebsd.org/D26343 ------------------------------------------------------------------------ r366400 | gbe | 2020-10-03 07:51:15 -0700 (Sat, 03 Oct 2020) | 7 lines MFC r365903: src.conf(5): Fix some mandoc issues in source files - new sentence, new line - blank line in fill mode Event: September 2020 Bugathon ------------------------------------------------------------------------ r366401 | gbe | 2020-10-03 08:06:47 -0700 (Sat, 03 Oct 2020) | 4 lines MFC r365904: crypto(7): Correct Sections out of conventional order error Event: September 2020 Bugathon ------------------------------------------------------------------------ r366418 | kib | 2020-10-03 17:40:28 -0700 (Sat, 03 Oct 2020) | 3 lines MFC r366210: Consistently use __FBSDID("FreeBSD") for ids in usr.bin/procstat. ------------------------------------------------------------------------ r366420 | cy | 2020-10-03 20:31:35 -0700 (Sat, 03 Oct 2020) | 5 lines MFC r366202: Continuing the effort started in r343701, #ifdef cleanup, remove never to be used again checks. ------------------------------------------------------------------------ r366421 | cy | 2020-10-03 20:33:05 -0700 (Sat, 03 Oct 2020) | 4 lines MFC r366203: Remove Linux and IRIX specific files. ------------------------------------------------------------------------ r366422 | imp | 2020-10-03 23:12:52 -0700 (Sat, 03 Oct 2020) | 10 lines MFC: r366228 Report the kernel console on the boot screen Report what console the boot loader is telling the kernel to use: o Dual (Serial Primary) o Dual (Video Primary) o Serial o Video and allow toggling between them. ------------------------------------------------------------------------ r366423 | imp | 2020-10-03 23:14:51 -0700 (Sat, 03 Oct 2020) | 13 lines MFC: r366229 For mulitcons boot, report it and which console is primary Until we can do proper /etc/rc output on both consoles in multicons boot (or all of them if we ever generalize), report when we are booting multicons. Also report the primary console. This will be a big hint why output stops after this line (though some slow USB discovery still happens after mountroot / init starts). Reviewed by: scottl@, tsoome@ Differential Revision: https://reviews.freebsd.org/D26574 ------------------------------------------------------------------------ r366427 | markj | 2020-10-04 09:27:49 -0700 (Sun, 04 Oct 2020) | 3 lines MFC r366347: Remove svn:executable from a couple of vmm(4) source files. ------------------------------------------------------------------------ r366434 | kevans | 2020-10-04 12:59:12 -0700 (Sun, 04 Oct 2020) | 6 lines MFC r362421: raspberry pi 4: cpufreq support The submitter notes that the bcm2835_cpufreq driver really just needs the rpi4 compat string added to it; powerd subsequently works and the dev.cpu.0 sysctl values look sane and can be successfully manipulated. ------------------------------------------------------------------------ r366436 | 0mp | 2020-10-04 18:26:34 -0700 (Sun, 04 Oct 2020) | 9 lines MFC r366364: Correct the documented size of kern.msgbufsize The correct value is 96KB after r226090. PR: 249971 Submitted by: johannes@jo-t.de ------------------------------------------------------------------------ r366438 | np | 2020-10-04 22:36:01 -0700 (Sun, 04 Oct 2020) | 4 lines MFC r366384: cxgbe(4): set up the firmware flowc for the tid before send_abort_rpl. ------------------------------------------------------------------------ r366439 | np | 2020-10-04 23:38:56 -0700 (Sun, 04 Oct 2020) | 15 lines MFC r365867: mbuf checksum flags and fields to support tunneling protocols. These are being added to support VXLAN but will work for GENEVE as well. ENCAP_RSVD1 will likely become ENCAP_GENEVE in the future. The size of struct mbuf does not change and that means this change can be MFC'd. If size wasn't a constraint a cleaner way may have been to add inner_csum_flags and inner_csum_data to go with csum_flags and csum_data. Reviewed by: kib@ Sponsored by: Chelsio Communications Differential Revision: https://reviews.freebsd.org/D25873 ------------------------------------------------------------------------ r366441 | np | 2020-10-05 00:26:06 -0700 (Mon, 05 Oct 2020) | 9 lines MFC r365868: Add two new ifnet capabilities for hw checksumming and TSO for VXLAN traffic. These are similar to the existing VLAN capabilities. Reviewed by: kib@ Sponsored by: Chelsio Communications ------------------------------------------------------------------------ r366442 | np | 2020-10-05 01:51:03 -0700 (Mon, 05 Oct 2020) | 12 lines MFC r365871. This needs a couple other revisions which aren't in stable/12 yet to actually work but is being committed out of order to ease other cxgbe MFCs. r365871: cxgbe(4): add support for stateless offloads for VXLAN traffic. Hardware assistance includes checksumming (tx and rx), TSO, and RSS on the inner traffic in a VXLAN tunnel. Sponsored by: Chelsio Communications ------------------------------------------------------------------------ r366443 | np | 2020-10-05 02:03:17 -0700 (Mon, 05 Oct 2020) | 10 lines MFC r365993: cxgbe(4): let the PF driver use VM work requests for transmit. This allows the PF interfaces to communicate with the VF interfaces over the internal switch in the ASIC. Fix the GL limits for VM work requests while here. Sponsored by: Chelsio Communications ------------------------------------------------------------------------ r366452 | dim | 2020-10-05 11:08:52 -0700 (Mon, 05 Oct 2020) | 24 lines Merge commit 0fac1c191 from llvm git (by Craig Topper): [X86] Allow Yz inline assembly constraint to choose ymm0 or zmm0 when avx/avx512 are enabled and type is 256 or 512 bits gcc supports selecting ymm0/zmm0 for the Yz constraint when used with 256 or 512 bit vector types. Fixes PR45806 Differential Revision: https://reviews.llvm.org/D79448 This should fix 'fatal error: error in backend: Cannot select' errors if assertions are disabled, or 'Assertion failed: (isVector() && "Invalid vector type!"), function getVectorNumElements, file /usr/src/contrib/llvm-project/llvm/include/llvm/CodeGen/ValueTypes.h, line 276.', when building the audio/lsp-plugins-lv2 port. Direct commit to stable/{11,12} since head has clang 11.0.0, which already includes this fix. Reported by: yuri PR: 232911 ------------------------------------------------------------------------ r366455 | np | 2020-10-05 11:45:32 -0700 (Mon, 05 Oct 2020) | 16 lines MFC r366242: cxgbe(4): fixes for netmap operation with only some queues active. - Only active netmap receive queues should be in the RSS lookup table. - The RSS table should be restored for NIC operation when the last active netmap queue is switched off, not the first one. - Support repeated netmap ON/OFF on a subset of the queues. This works whether the the queues being enabled and disabled are the only ones active or not. Some kring indexes have to be reset in the driver for the second case. Sponsored by: Chelsio Communications ------------------------------------------------------------------------ r366457 | np | 2020-10-05 11:47:12 -0700 (Mon, 05 Oct 2020) | 7 lines MFC r366244: cxgbe(4): display an error message when netmap cannot be enabled because the interface is down. Sponsored by: Chelsio Communications ------------------------------------------------------------------------ r366458 | np | 2020-10-05 11:49:55 -0700 (Mon, 05 Oct 2020) | 7 lines MFC r366245: cxgbe(4): adjust the doorbell threshold for netmap freelists to match the maximum burst size used when fetching descriptors from the list. Sponsored by: Chelsio Communications ------------------------------------------------------------------------ r366459 | np | 2020-10-05 11:59:10 -0700 (Mon, 05 Oct 2020) | 4 lines MFC r366246: Remove duplicate line. ------------------------------------------------------------------------ r366460 | np | 2020-10-05 12:22:28 -0700 (Mon, 05 Oct 2020) | 10 lines MFC r366247: cxgbe(4): Avoid unnecessary work in the firmware during netmap tx. Bind the netmap tx queues to a special '0xff' scheduling class which makes the firmware skip some processing related to rate limiting on the outgoing traffic. Future firmwares will do this automatically. Sponsored by: Chelsio Communications ------------------------------------------------------------------------ r366463 | np | 2020-10-05 12:45:11 -0700 (Mon, 05 Oct 2020) | 11 lines MFC r366354: cxgbe(4): validate largest_rx_cluster and safest_rx_cluster. These tunables can only be set to a valid cluster size (2K, 4K, 9K, or 16K) as documented in the man page. Anything else could lead to a panic on interface up. Reported by: mav@ Sponsored by: Chelsio Communications ------------------------------------------------------------------------ r366473 | kib | 2020-10-06 02:28:24 -0700 (Tue, 06 Oct 2020) | 3 lines MFC r366415: Move ctx_switch_xsave declaration to amd64 md_var.h. ------------------------------------------------------------------------ r366488 | markj | 2020-10-06 07:03:59 -0700 (Tue, 06 Oct 2020) | 3 lines MFC r365759-r365765, r365788: Simplify unix domain socket locking. ------------------------------------------------------------------------ r366495 | vmaffione | 2020-10-06 12:10:32 -0700 (Tue, 06 Oct 2020) | 6 lines MFC r366387 netmap: pkt-gen: minor corrections to documentation Submitted by: Brian Poole ------------------------------------------------------------------------ r366496 | vmaffione | 2020-10-06 12:11:55 -0700 (Tue, 06 Oct 2020) | 6 lines MFC r366388 netmap: fix constness warnings generated by "-Wcast-qual" Submitted by: milosz.kaniewski@gmail.com ------------------------------------------------------------------------ r366497 | vmaffione | 2020-10-06 12:12:43 -0700 (Tue, 06 Oct 2020) | 8 lines MFC r366389 netmap: minor documentation fix Also update date of pkt-gen.8 (not done in r366387). Submitted by: milosz.kaniewski@gmail.com ------------------------------------------------------------------------ r366498 | vmaffione | 2020-10-06 12:14:03 -0700 (Tue, 06 Oct 2020) | 6 lines MFC r366393 netmap: tools: fix several compiler warnings MFC after: 1 week ------------------------------------------------------------------------ r366499 | vmaffione | 2020-10-06 12:15:11 -0700 (Tue, 06 Oct 2020) | 6 lines MFC r366394 netmap: tools: extend CFLAGS after including bsd.prog.mk MFC after: 1 week ------------------------------------------------------------------------ r366513 | kib | 2020-10-07 03:43:29 -0700 (Wed, 07 Oct 2020) | 3 lines MFC r366300: pciconf: print PCIe CTL max read request. ------------------------------------------------------------------------ r366531 | cy | 2020-10-07 21:00:31 -0700 (Wed, 07 Oct 2020) | 5 lines MFC r366287: Continued ipfilter #ifdef cleanup. The r343701 log entry contains a complete description. ------------------------------------------------------------------------ r366538 | kevans | 2020-10-08 05:56:23 -0700 (Thu, 08 Oct 2020) | 17 lines MFC r366466: crunchgen: fix MK_AUTO_OBJ logic after r364166 r364166 converted echo -n `/bin/pwd` to a raw pwd invocation, leaving a trailing newline at the end of path. This caused a later stat() of it to erroneously fail and the fallback to MK_AUTO_OBJ=no logic proceeded as unexpected. Harry Schmalzbauer bissected the resulting build failure he experienced (stable/12 host, -HEAD build) down to r365887. This change is mostly unrelated, except it switches the build to bootstrapped crunchgen - clue! I then bissected recent crunchgen changes going back a bit since we wouldn't observe the failure immediately with -CURRENT in most configurations, which landed me on r364166. After many intense head-scratching minutes and printf debugging, I realized that the newline was the difference. This is where our tale ends. ------------------------------------------------------------------------ r366563 | pfg | 2020-10-08 22:28:32 -0700 (Thu, 08 Oct 2020) | 5 lines MFC r366501: ext2fs: minor typo. Obtained from: Dragonfly ------------------------------------------------------------------------ r366564 | rscheff | 2020-10-09 02:33:45 -0700 (Fri, 09 Oct 2020) | 15 lines MFC r366149: TCP newreno: improve after_idle ssthresh Adjust ssthresh in after_idle to the maximum of the prior ssthresh, or 3/4 of the prior cwnd. See RFC2861 section 2 for an in depth explanation for the rationale around this. As newreno is the default "fall-through" reaction, most tcp variants will benefit from this. Reviewed by: tuexen MFC after: 2 weeks Sponsored by: NetApp, Inc. Differential Revision: https://reviews.freebsd.org/D22438 ------------------------------------------------------------------------ r366565 | rscheff | 2020-10-09 02:37:43 -0700 (Fri, 09 Oct 2020) | 17 lines MFC r366150: TCP: send full initial window when timestamps are in use The fastpath in tcp_output tries to send out full segments, and avoid sending partial segments by comparing against the static t_maxseg variable. That value does not consider tcp options like timestamps, while the initial window calculation is using the correct dynamic tcp_maxseg() function. Due to this interaction, the last, full size segment is considered too short and not sent out immediately. Reported by: tuexen MFC after: 2 weeks Sponsored by: NetApp, Inc. Differential Revision: https://reviews.freebsd.org/D26478 ------------------------------------------------------------------------ r366581 | emaste | 2020-10-09 11:30:49 -0700 (Fri, 09 Oct 2020) | 4 lines MFC r365847: makefs: connect cd9660 El Torito EFI boot image system type Sponsored by: The FreeBSD Foundation ------------------------------------------------------------------------ r366588 | imp | 2020-10-09 14:01:53 -0700 (Fri, 09 Oct 2020) | 17 lines MFC: r366216 imp Fix video on PCI heuristic The video on PCI heuristic was broken. It was supposed to infer a video device when the last element of the path was a PCI DEVICE PATH node. However, the last node in the device path is an END node, so this heuristic never fired. This leads, among other things, to bhyve only producing output in the serial connection once we leave the boot loader. This restores the dual headed boot on bhyve + UEFI (as we did in 11.2), but will favor serial in the absence of other config which may be a change from 11.2. MFC After: 3 days Differential Revision: https://reviews.freebsd.org/D26572 ------------------------------------------------------------------------ r366590 | allanjude | 2020-10-09 15:42:04 -0700 (Fri, 09 Oct 2020) | 9 lines MFC r364787: ZFS: whitelist zstd and encryption in the loader Please note that neither zstd nor encryption is supported by the loader at this instant. This change makes it safe to use those features in one's root pool, but not in one's root dataset. ------------------------------------------------------------------------ r366591 | allanjude | 2020-10-09 15:50:16 -0700 (Fri, 09 Oct 2020) | 2 lines Revert r366590 that contains garbage ------------------------------------------------------------------------ r366592 | allanjude | 2020-10-09 15:59:27 -0700 (Fri, 09 Oct 2020) | 2 lines Clean up the mess I made with r366590 and r366591 ------------------------------------------------------------------------ r366593 | allanjude | 2020-10-09 16:02:09 -0700 (Fri, 09 Oct 2020) | 9 lines MFC r364787: ZFS: whitelist zstd and encryption in the loader Please note that neither zstd nor encryption is supported by the loader at this instant. This change makes it safe to use those features in one's root pool, but not in one's root dataset. ------------------------------------------------------------------------ r366602 | gbe | 2020-10-10 02:40:03 -0700 (Sat, 10 Oct 2020) | 5 lines MFC r366414: cpuset(1): Fix some issues reported by mandoc - whitespace at end of input line - new sentence, new line ------------------------------------------------------------------------ r366603 | gbe | 2020-10-10 02:41:20 -0700 (Sat, 10 Oct 2020) | 4 lines MFC r366406: camcontrol(8): Bugfixes for some issues reported by mandoc - new sentence, new line ------------------------------------------------------------------------ r366604 | gbe | 2020-10-10 02:42:24 -0700 (Sat, 10 Oct 2020) | 4 lines MFC r366409: veriexec(8): Bugfix for an issue reported by mandoc - consider using OS macro: Nx ------------------------------------------------------------------------ r366605 | gbe | 2020-10-10 02:43:35 -0700 (Sat, 10 Oct 2020) | 4 lines MFC 366404: cp(1): Bugfixes for some issues reported by mandoc - no blank before trailing delimiter ------------------------------------------------------------------------ r366606 | gbe | 2020-10-10 02:44:56 -0700 (Sat, 10 Oct 2020) | 4 lines MFC r366411: gvinum(8): Fix an issue reported by mandoc - new sentence, new line ------------------------------------------------------------------------ r366607 | gbe | 2020-10-10 02:50:09 -0700 (Sat, 10 Oct 2020) | 8 lines MFC r366408, r366410, r366405 fsdb(8): Fix an issue reported by mandoc mdmfs(8): Fix an issue reported by mandoc devd.conf(5): Bugfix for an issue reported by mandoc - whitespace at end of input line ------------------------------------------------------------------------ r366608 | gbe | 2020-10-10 02:52:41 -0700 (Sat, 10 Oct 2020) | 8 lines MFC r366407, r366403 ls(1): Bugfix for an issue reported by mandoc dhclient(8): Bugfixes for some issues reported by mandoc - no blank before trailing delimiter - new sentence, new line ------------------------------------------------------------------------ r366612 | kib | 2020-10-10 06:33:57 -0700 (Sat, 10 Oct 2020) | 3 lines MFC r366514: Fix typo. ------------------------------------------------------------------------ r366614 | kib | 2020-10-10 06:46:48 -0700 (Sat, 10 Oct 2020) | 5 lines MFC r366417: amd64: Store full 64bit of FIP/FDP for 64bit processes when using XSAVE. PR: 250043 ------------------------------------------------------------------------ r366624 | philip | 2020-10-11 02:04:56 -0700 (Sun, 11 Oct 2020) | 2 lines MFC r366529: Import tzdata 2020b ------------------------------------------------------------------------ r366627 | rscheff | 2020-10-11 06:39:04 -0700 (Sun, 11 Oct 2020) | 12 lines MFC r366206: Add DSCP support for network QoS to iscsi target. In order to prioritize iSCSI traffic across a network, DSCP can be used. In order not to rely on "ipfw setdscp" or in-network reclassification, this adds the dscp value directly to the portal group (where TCP sessions are accepted). Reviewed by: mav, trasz MFC after: 2 weeks Sponsored by: NetApp, Inc. Differential Revision: https://reviews.freebsd.org/D26385 ------------------------------------------------------------------------ r366630 | gbe | 2020-10-12 01:43:21 -0700 (Mon, 12 Oct 2020) | 4 lines MFC r366613: ls(1): Use \& as an escape character for the ',' option Reported by: karels@, xtouqh at hotmail dot com ------------------------------------------------------------------------ r366637 | avg | 2020-10-12 03:51:34 -0700 (Mon, 12 Oct 2020) | 7 lines MFC r365398,r365399: Allwinner USB DRD support (musb_otg) Allwinner USB DRD is based on the Mentor USB OTG controller, with a different register layout and a few missing registers. The code is by Andrew Turner (andrew). ------------------------------------------------------------------------ r366638 | avg | 2020-10-12 03:53:35 -0700 (Mon, 12 Oct 2020) | 2 lines MFC r365400: musb/allwinner: apply register filter in awusbdrd_bs_r_2() as well ------------------------------------------------------------------------ r366639 | avg | 2020-10-12 03:55:03 -0700 (Mon, 12 Oct 2020) | 2 lines MFC r366137: aw_pwm: trivially add H3 support ------------------------------------------------------------------------ r366640 | avg | 2020-10-12 03:57:59 -0700 (Mon, 12 Oct 2020) | 2 lines MFC r366139: aw_pwm: fix selection of the prescaler ------------------------------------------------------------------------ r366641 | avg | 2020-10-12 04:01:54 -0700 (Mon, 12 Oct 2020) | 2 lines MFC r366141: aw_pwm: ensure sane configuration, just in case ------------------------------------------------------------------------ r366642 | avg | 2020-10-12 04:03:26 -0700 (Mon, 12 Oct 2020) | 11 lines MFC r366142: aw_pwm: add a check and some comments related to long periods The hardware supports periods as long as 196 seconds[*] when using the maximal prescaling of 72000 and maximum cycle count of 2^16. But the code becomes incorrect when the period length approaches 1 second. That's because of things like NS_PER_SEC / period. [*] At the same time I must note that the KPI provides for maximum period of about 4 seconds (2^32 nanoseconds). ------------------------------------------------------------------------ r366643 | avg | 2020-10-12 04:04:52 -0700 (Mon, 12 Oct 2020) | 2 lines MFC r366144: pwm(8): fix potential duty overflow, use unsigneds for period and duty ------------------------------------------------------------------------ r366645 | avg | 2020-10-12 04:34:09 -0700 (Mon, 12 Oct 2020) | 16 lines MFC r363021 by manu: twsi: Fix for > Allwinner A20 Every revision of twsi after the A20 have a bug where we need to write again the control register after each interrupts. We also need to add some delay before writing to this register, a simple read of the same register does the job so do that. Also fix the case when we have finish sending all the bytes, it only worked for 1 byte transfer (the same kind that we do for talking to the PMIC on A20 boards). While here add more debug messages and rework some of them. This was tested by talking to a AT23C32 eeprom and a DS3231 RTC from an H3 and A20 board. PR: 247576 ------------------------------------------------------------------------ r366646 | avg | 2020-10-12 04:40:43 -0700 (Mon, 12 Oct 2020) | 11 lines MFC r365397: twsi: some variants clear interrupt flag by writing 0, others by writing 1 Make that distinction more explicit and regular in the code. The difference in behavior is documented in the respective datasheets. Previously, the code handled the distinction by writing the control register multiple times where at least one write was zero and another was one. This can be considered a follow-up to r363021 (MFC-ed as r366645). ------------------------------------------------------------------------ r366649 | markj | 2020-10-12 09:44:05 -0700 (Mon, 12 Oct 2020) | 5 lines MFC r366464: re(4): Add a 8168-compatible device ID PR: 250037 ------------------------------------------------------------------------ r366650 | markj | 2020-10-12 09:45:07 -0700 (Mon, 12 Oct 2020) | 3 lines MFC r366450: Remove sysctl_kern_consmute() ------------------------------------------------------------------------ r366651 | freqlabs | 2020-10-12 10:43:38 -0700 (Mon, 12 Oct 2020) | 10 lines MFC r366433 Explicit CTLFLAG_DYN not needed Dynamically created OIDs automatically get this flag set. Reviewed by: jhb Sponsored by: iXsystems, Inc. Differential Revision: https://reviews.freebsd.org/D26561 ------------------------------------------------------------------------ r366675 | mav | 2020-10-13 10:50:01 -0700 (Tue, 13 Oct 2020) | 6 lines MFC r355083 (by rlibby): sysctl: wire old buf before output with sysctl lock Several sysctl sysctls output to a user buffer while holding a non-sleepable lock that protects the sysctl topology. They need to wire the output buffer, or else they may try to sleep on a page fault. ------------------------------------------------------------------------ r366705 | emaste | 2020-10-14 08:26:19 -0700 (Wed, 14 Oct 2020) | 5 lines MFC r366313: Add cd device to arm64 GENERIC Big-iron arm64 machines might have a CD, possibly provided by some IPMI emulation. ------------------------------------------------------------------------ r366714 | kib | 2020-10-14 17:50:26 -0700 (Wed, 14 Oct 2020) | 3 lines MFC r366551: Do not leak B_BARRIER. ------------------------------------------------------------------------ r366745 | avg | 2020-10-15 23:40:59 -0700 (Thu, 15 Oct 2020) | 5 lines MFC r366138: aw_pwm: remove the busy bit check The bit seems to always be set on my hardware, H3. However, programming the hardware seems to work just fine. ------------------------------------------------------------------------ r366746 | avg | 2020-10-15 23:42:25 -0700 (Thu, 15 Oct 2020) | 5 lines MFC r366140: aw_pwm: fix programming of the period The programmed value is biased by one: 0 means 1 cycle, 1 means 2 cycles, etc. ------------------------------------------------------------------------ r366747 | ae | 2020-10-16 01:56:20 -0700 (Fri, 16 Oct 2020) | 10 lines MFC r366568: Fix EINVAL message when CPU binding information is requested for IRQ. `cpuset -g -x N` along with requested information always prints message `cpuset: getdomain: Invalid argument'. The EINVAL is returned from kern_cpuset_getdomain(), since it doesn't expect CPU_LEVEL_WHICH and CPU_WHICH_IRQ parameters. To fix the error, do not call cpuset_getdomain() when `-x' is specified. ------------------------------------------------------------------------ r366762 | markj | 2020-10-16 06:34:56 -0700 (Fri, 16 Oct 2020) | 3 lines MFC r366367: Simplify the check for non-dumpable VM object types ------------------------------------------------------------------------ r366786 | gbe | 2020-10-17 02:45:05 -0700 (Sat, 17 Oct 2020) | 2 lines MFC r366616: cxgbetool(8): Remove dublicate word 'whether' ------------------------------------------------------------------------ r366787 | gbe | 2020-10-17 02:47:56 -0700 (Sat, 17 Oct 2020) | 4 lines MFC r366609: dtrace_audit(4): Fix a typo - asynchonously -> asynchronously ------------------------------------------------------------------------ r366788 | gbe | 2020-10-17 02:48:56 -0700 (Sat, 17 Oct 2020) | 2 lines MFC r366617: pnfsdsfile(8): Remove dublicate word 'the' ------------------------------------------------------------------------ r366789 | gbe | 2020-10-17 02:50:12 -0700 (Sat, 17 Oct 2020) | 4 lines MFC r366610: sigevent(3): Fix a typo - asychronous -> asynchronous ------------------------------------------------------------------------ r366790 | gbe | 2020-10-17 02:51:17 -0700 (Sat, 17 Oct 2020) | 4 lines MFC r366611: cpuset(1): Fix a typo - 'at at' -> 'at a' ------------------------------------------------------------------------ r366801 | philip | 2020-10-17 18:09:55 -0700 (Sat, 17 Oct 2020) | 2 lines MFC r366779: Import tzdata 2020c ------------------------------------------------------------------------ r366803 | mav | 2020-10-17 18:13:41 -0700 (Sat, 17 Oct 2020) | 2 lines MFC r366730: Fix nvmecontrol logpage -i parameter. ------------------------------------------------------------------------ r366816 | melifaro | 2020-10-18 13:54:15 -0700 (Sun, 18 Oct 2020) | 5 lines MFC r363173: [ipfw] quieten maybe-uninitialized errors in ipfw. PR: 250434 Reported by: brndr ------------------------------------------------------------------------ r366826 | avg | 2020-10-18 23:44:07 -0700 (Sun, 18 Oct 2020) | 2 lines MFC r365401: musb/allwinner: add H3 support ------------------------------------------------------------------------ r366827 | avg | 2020-10-19 00:03:04 -0700 (Mon, 19 Oct 2020) | 16 lines MFC r365402: musb/allwinner: add support for configuring phy as well as device mode At least on Orange Pi PC Plus even the host mode does not work without enabling the phy and setting it to the host mode. The driver will now parse dr_mode property and will try to configure itself and the phy accordingly. OTG mode is not supported yet, so it is treated as the device / peripheral mode. The phy is enabled -- powered on -- only for the host mode. The device mode requires support from a phy driver, e.g., aw_usbphy on Allwinner platform. aw_usbphy does not support the device mode, so it cannnot work yet. ------------------------------------------------------------------------ r366856 | mav | 2020-10-19 13:37:04 -0700 (Mon, 19 Oct 2020) | 5 lines MFC r352212 (by imp): Assume all the short args have optional args so allocate space for the ':'. It's slightly wasteful, but much easier (and the savings in bytes at runtime would be tiny, but the code to do it larger). ------------------------------------------------------------------------ r366858 | mav | 2020-10-19 13:39:00 -0700 (Mon, 19 Oct 2020) | 5 lines MFC r352665 (by imp): After my comnd changes, the number of threads and size weren't set. In addition, the flags are optional, but were made to be mandatory. Set these things, as well as santiy check the specified size. ------------------------------------------------------------------------ r366859 | mav | 2020-10-19 13:40:03 -0700 (Mon, 19 Oct 2020) | 6 lines MFC r352671 (by imp): Size is unsigned, so remove the test entirely. The kernel won't crash if you have a bad value and I'd rather not have nvmecontrol know the internal details about how the nvme driver limits the transfer size. ------------------------------------------------------------------------ r366860 | mav | 2020-10-19 13:42:01 -0700 (Mon, 19 Oct 2020) | 9 lines MFC r360546, r360547 (by imp): Various improvements to this man page: o Be consistent about device-id and namespace-id o Use consistent arg markup for these o document you can use disk names too o document nsid command better o document the idenntify command o add a couple of examples. ------------------------------------------------------------------------ r366864 | mhorne | 2020-10-19 15:27:21 -0700 (Mon, 19 Oct 2020) | 8 lines MFC r365884: arm64: generate ISO release images This was modified slightly to cope with how ESP partitions are generated in stable/12. Sponsored by: The FreeBSD Foundation ------------------------------------------------------------------------ r366867 | mav | 2020-10-19 19:28:07 -0700 (Mon, 19 Oct 2020) | 2 lines MFC r366689: Fix sbuf_finish() error code check in user-space. ------------------------------------------------------------------------ r366872 | hselasky | 2020-10-20 01:08:08 -0700 (Tue, 20 Oct 2020) | 5 lines MFC r365236: Add small tool to invoke kernel test framework tests. Sponsored by: Mellanox Technologies // NVIDIA Networking ------------------------------------------------------------------------ r366873 | hselasky | 2020-10-20 01:11:34 -0700 (Tue, 20 Oct 2020) | 8 lines MFC r365958: Add example to ng_bpf(4) showing how ng_bpf(4) can be used to prevent spoofing. Differential Revision: https://reviews.freebsd.org/D26488 Reviewed by: pi, bcr (manpages) Submitted by: lutz_donnerhacke.de (Lutz Donnerhacke) Sponsored by: Mellanox Technologies // NVIDIA Networking ------------------------------------------------------------------------ r366874 | hselasky | 2020-10-20 01:12:35 -0700 (Tue, 20 Oct 2020) | 7 lines MFC r365966: Add support for Winbond USB CDC modem device found in Tenma power supply. PR: 249384 Submitted by: darius@dons.net.au Sponsored by: Mellanox Technologies // NVIDIA Networking ------------------------------------------------------------------------ r366876 | hselasky | 2020-10-20 01:14:06 -0700 (Tue, 20 Oct 2020) | 8 lines MFC r366431: Add support for Google Cr50 (GSC) Closed Case Debugging UART interfaces to the USB generic serial port driver, ugensa. Differential Revision: https://reviews.freebsd.org/D21863 Submitted by: greg_unrelenting.technology (Greg V) Sponsored by: Mellanox Technologies // NVIDIA Networking ------------------------------------------------------------------------ r366878 | hselasky | 2020-10-20 01:17:47 -0700 (Tue, 20 Oct 2020) | 8 lines MFC r366432: Populate the acquire context field of a ww_mutex in the LinuxKPI. Bump the FreeBSD version to force recompilation of external kernel modules. Differential Revision: https://reviews.freebsd.org/D26657 Submitted by: greg_unrelenting.technology (Greg V) Sponsored by: Mellanox Technologies // NVIDIA Networking ------------------------------------------------------------------------ r366880 | hselasky | 2020-10-20 01:25:02 -0700 (Tue, 20 Oct 2020) | 10 lines MFC r366518: Properly cleanup driver during remove_one() in mlx5core. Cleanup all host resources, SYSCTLs, MSIX vectors and memory used by the host and only leave the device allocated memory behind, if any, because it may still be in use, when the PCI remove function is called. Else future probe calls may fail due to SYSCTLs already existing. Sponsored by: Mellanox Technologies // NVIDIA Networking ------------------------------------------------------------------------ r366882 | hselasky | 2020-10-20 01:29:28 -0700 (Tue, 20 Oct 2020) | 6 lines MFC r366533: Allow evdev's rcpt_mask and sysmouse_t_axis parameters to be specified in /boot/loader.conf . Sponsored by: Mellanox Technologies // NVIDIA Networking ------------------------------------------------------------------------ r366884 | hselasky | 2020-10-20 01:31:20 -0700 (Tue, 20 Oct 2020) | 7 lines MFC r366535: The ethernet header structure is read-only. Add const keyword. (This is a diff reduction towards D26254) Sponsored by: Mellanox Technologies // NVIDIA Networking ------------------------------------------------------------------------ r366886 | hselasky | 2020-10-20 01:33:11 -0700 (Tue, 20 Oct 2020) | 5 lines MFC r366536: Try a bit harder to get the USB device descriptor in case the initial read fails. Sponsored by: Mellanox Technologies // NVIDIA Networking ------------------------------------------------------------------------ r366888 | hselasky | 2020-10-20 01:35:16 -0700 (Tue, 20 Oct 2020) | 9 lines MFC r366669: Implement more RCU list functions in the LinuxKPI. This also fixes a bug in the existing list_add_rcu() where the prev->prev pointer was updated to the new element instead of next->prev. Currently this function is not widely used. Sponsored by: Mellanox Technologies // NVIDIA Networking ------------------------------------------------------------------------ r366891 | gbe | 2020-10-20 02:51:41 -0700 (Tue, 20 Oct 2020) | 8 lines MFC r366481: intro(3): Update the list of included libraries - Extend the list of main libraries of section 3 - Extend the library functions that are included in the libc Submitted by: Naga Chaitanya Vellanki Differential Revision: https://reviews.freebsd.org/D26476 ------------------------------------------------------------------------ r366892 | ae | 2020-10-20 04:40:37 -0700 (Tue, 20 Oct 2020) | 10 lines MFC r366681: Add IPv4 fragments reassembling to NAT64LSN. NAT64LSN requires the presence of upper level protocol header in a IPv4 datagram to find corresponding state to make translation. Now it will be handled automatically by nat64lsn instance. Obtained from: Yandex LLC Sponsored by: Yandex LLC ------------------------------------------------------------------------ r366893 | ae | 2020-10-20 04:44:54 -0700 (Tue, 20 Oct 2020) | 11 lines MFC r366682: Join to AllHosts multicast group again when adding an existing IPv4 address. When SIOCAIFADDR ioctl configures an IPv4 address that is already exist, it removes old ifaddr. When this IPv4 address is only one configured on the interface, this also leads to leaving from AllHosts multicast group. Then an address is added again, but due to the bug, this doesn't lead to joining to AllHosts multicast group. Submitted by: yannis.planus_alstomgroup.com ------------------------------------------------------------------------ r366905 | mav | 2020-10-20 17:46:53 -0700 (Tue, 20 Oct 2020) | 6 lines MFC r366707: Use RTD3 Entry Latency value as shutdown timeout. This field was not in specs when the driver was written, but now there are SSDs with the reported latency of 10s, where hardcoded value of 5s seems to be not enough sometimes, causing shutdown timeout messages. ------------------------------------------------------------------------ r366909 | kib | 2020-10-21 08:04:12 -0700 (Wed, 21 Oct 2020) | 3 lines MFC r366712: Limit workaround for errata E400 to appropriate AMD cpus. ------------------------------------------------------------------------ r366910 | kib | 2020-10-21 08:06:44 -0700 (Wed, 21 Oct 2020) | 3 lines MFC r366713, r366843 (by jhb): Fix for mis-interpretation of PCB_KERNFPU. ------------------------------------------------------------------------ r366912 | brooks | 2020-10-21 09:04:57 -0700 (Wed, 21 Oct 2020) | 15 lines MFC r366671: libgssapi: modernize static string array use Use designated initializers to document positions in the arrays rather than requiring counting. Use nitems() rather than rolling it by hand to count elements. Also, passify a Clang 12 warning about suspcious string concatenation within an array initializer by adding parentheses. Reviewed by: emaste Sponsored by: DARPA Differential Revision: https://reviews.freebsd.org/D26592 ------------------------------------------------------------------------ r366937 | kib | 2020-10-22 08:23:41 -0700 (Thu, 22 Oct 2020) | 6 lines MFC r339748, r340343, r340347, r341256, r366015-r366023, r366549: O_BENEATH and related features. Sponsored by: The FreeBSD Foundation Tested by: pho ------------------------------------------------------------------------ r366938 | brooks | 2020-10-22 09:27:24 -0700 (Thu, 22 Oct 2020) | 13 lines MFC r366731: physio: Don't store user addresses in bio_data Only assign the address from the iovec to bio_data if it is a kernel address. This was the single place where bio_data stored (however briefly) a userspace pointer. Reviewed by: imp, markj Obtained from: CheriBSD Sponsored by: DARPA Differential Revision: https://reviews.freebsd.org/D26783 ------------------------------------------------------------------------ r366942 | mw | 2020-10-22 10:31:41 -0700 (Thu, 22 Oct 2020) | 26 lines MFC r362574 Fix AccessWidth and BitWidth parsing in SPCR table The ACPI Specification defines a Generic Address Structure (GAS), which is used to describe UART controller register layout in the SPCR table. The driver responsible for parsing it (uart_cpu_acpi) wrongly associates the Access Size field to the uart_bas's regshft and the register BitWidth to the regiowidth - according to the definitions it should be opposite. This problem remained hidden most likely because the majority of platforms use 32-bit registers (BitWidth) which are accessed with the according size (Dword). However on Marvell Armada 8k / Cn913x platforms, the 32-bit registers should be accessed with Byte granulity, which unveiled the issue. This patch fixes above by proper values assignment and slightly improved parsing. Note that handling of the AccessWidth set to EFI_ACPI_6_0_UNDEFINED is needed to work around a buggy SPCR table on EC2 x86 "bare metal" instances. Reviewed by: manu, imp, cperciva, greg_unrelenting.technology Obtained from: Semihalf ------------------------------------------------------------------------