------------------------------------------------------------------------ r366956 | philip | 2020-10-22 18:06:33 -0700 (Thu, 22 Oct 2020) | 2 lines MFC r366921: Import tzdata 2020d ------------------------------------------------------------------------ r366964 | kib | 2020-10-23 03:24:37 -0700 (Fri, 23 Oct 2020) | 4 lines MFC r366768: amd64 pmap.h: explicitly provide constants values instead of relying on some more advanced C features. ------------------------------------------------------------------------ r366965 | freqlabs | 2020-10-23 03:48:14 -0700 (Fri, 23 Oct 2020) | 21 lines MFC r366771: bhyve: Update TX descriptor base address and host mapping on change bhyve sometimes segfaults when using an e1000 NIC with a Windows guest. We are only updating our tdba and cached host mapping when the low address register is written and when tx is set enabled, but not when the high address or length registers are written. It is observed that Windows 10 is occasionally enabling tx first then writing the registers in the order low, high, len. This leaves us with a bogus base address and mapping, which causes a segfault later when we try to copy from a descriptor that has unpredictable garbage in a pointer. Updating the address and mapping when any of those registers change seems to fix that particular issue. Reviewed by: mav, grehan (bhyve) Sponsored by: iXsystems, Inc. Differential Revision: https://reviews.freebsd.org/D26798 ------------------------------------------------------------------------ r366971 | markj | 2020-10-23 07:47:32 -0700 (Fri, 23 Oct 2020) | 5 lines MFC r366375: newlocale(3): Fix a memory leak. PR: 249416 ------------------------------------------------------------------------ r367015 | rscheff | 2020-10-24 10:47:43 -0700 (Sat, 24 Oct 2020) | 16 lines MFC r366566;r366567: Extend netstat to display TCP stack and detailed congestion state Upstreaming the "-c" option used to show detailed per-connection congestion control state for TCP sessions. This is one summary patch, which adds the relevant variables into xtcpcb. As previous "spare" space is used, these changes are ABI compatible (an older version of netstat will simply not show the newly available data from newer kernels, and a newer version of netstat will only show zeroed data querying older kernels. Reviewed by: tuexen MFC after: 2 weeks Sponsored by: NetApp, Inc. Differential Revision: https://reviews.freebsd.org/D26518 ------------------------------------------------------------------------ r367017 | rscheff | 2020-10-24 13:23:20 -0700 (Sat, 24 Oct 2020) | 15 lines MFC r366569: Add IP(V6)_VLAN_PCP to set 802.1 priority per-flow. This adds a new IP_PROTO / IPV6_PROTO setsockopt (getsockopt) option IP(V6)_VLAN_PCP, which can be set to -1 (interface default), or explicitly to any priority between 0 and 7. Note that for untagged traffic, explicitly adding a priority will insert a special 801.1Q vlan header with vlan ID = 0 to carry the priority setting Reviewed by: gallatin, rrs MFC after: 2 weeks Sponsored by: NetApp, Inc. Differential Revision: https://reviews.freebsd.org/D26409 ------------------------------------------------------------------------ r367018 | rscheff | 2020-10-24 13:48:35 -0700 (Sat, 24 Oct 2020) | 14 lines MFC r366570: Stop sending tiny new data segments during SACK recovery Consider the currently in-use TCP options when calculating the amount of new data to be injected during SACK loss recovery. That addresses the effect that very small (new) segments could be injected on partial ACKs while still performing a SACK loss recovery. Reported by: Liang Tian Reviewed by: tuexen, chengc_netapp.com MFC after: 2 weeks Sponsored by: NetApp, Inc. Differential Revision: https://reviews.freebsd.org/D26446 ------------------------------------------------------------------------ r367019 | rscheff | 2020-10-24 13:52:05 -0700 (Sat, 24 Oct 2020) | 12 lines MFC r366573: Add DSCP support for network QoS to iscsi initiator. Allow the DSCP codepoint also to be configurable for the traffic in the direction from the initiator to the target, such that writes and any requests are also treated in the appropriate QoS class. Reviewed by: mav MFC after: 2 weeks Sponsored by: NetApp, Inc. Differential Revision: https://reviews.freebsd.org/D26714 ------------------------------------------------------------------------ r367036 | vmaffione | 2020-10-25 00:48:07 -0700 (Sun, 25 Oct 2020) | 8 lines MFC r366952 netmap: fix mutex double unlock bug https://github.com/luigirizzo/netmap/pull/733 Submitted by: brian90013 ------------------------------------------------------------------------ r367046 | rpokala | 2020-10-25 16:25:53 -0700 (Sun, 25 Oct 2020) | 15 lines MFC r366686: Allow IP over IB to work with multiple FIBs. Call M_SETFIB() to make sure the IPoIB packet is directed to the correct interface-specific FIB. This was sufficient to allow general-purpose routing using the default FIB, and a separate FIB for routing between IPoIB on ib0 and IPoEthernet on mce0. Reviewed by: hselasky Obtained from: Anmol Kumar Sponsored by: Panasas Differential Revision: https://reviews.freebsd.org/D26733 ------------------------------------------------------------------------ r367049 | cy | 2020-10-25 18:18:15 -0700 (Sun, 25 Oct 2020) | 11 lines MFC r366857: Destroy cloned interfaces at netif stop, netif restart and shutdown. This is especially important during shutdown because a child interface of lagg with WOL enabled will not enable WOL at interface shutdown and thus no WOL to wake up the device (and machine). PR: 158734, 109980 Reported by: Antonio Huete Jimenez Marat N.Afanasyev reviewed by: kp ------------------------------------------------------------------------ r367055 | freqlabs | 2020-10-26 05:34:50 -0700 (Mon, 26 Oct 2020) | 9 lines MFC r366830: efibootmgr: Use returned error code for error message, not errno efivar_unix_path_to_device_path returns the error code, it does not set errno. Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D26852 ------------------------------------------------------------------------ r367056 | kp | 2020-10-26 06:22:55 -0700 (Mon, 26 Oct 2020) | 11 lines MFC r366647: pf: create a kif for flags If userspace tries to set flags (e.g. 'set skip on ') and doesn't exist we should create a kif so that we apply the flags when the does turn up. Otherwise we'd end up in surprising situations where the rules say the interface should be skipped, but it's not until the rules get re-applied. ------------------------------------------------------------------------ r367057 | kp | 2020-10-26 06:23:40 -0700 (Mon, 26 Oct 2020) | 11 lines MFC r366667: pf: do not remove kifs that are referenced by rules Even if a kif doesn't have an ifp or if_group pointer we still can't delete it if it's referenced by a rule. In other words: we must check rulerefs as well. While we're here also teach pfi_kif_unref() not to remove kifs with flags. Reported-by: syzbot+b31d1d7e12c5d4d42f28@syzkaller.appspotmail.com ------------------------------------------------------------------------ r367058 | kp | 2020-10-26 06:24:20 -0700 (Mon, 26 Oct 2020) | 12 lines MFC r366648: pf tests: Test that 'set skip on ' works on new group members There's a know issue where new group members don't get the 'set skip on' applied until the rules are re-loaded. Do this by setting rules that block all traffic, but skip members of the 'epair' group. If we can communicate over the epair interface we know the set skip rule took effect, even if the rule was set before the interface was created. ------------------------------------------------------------------------ r367061 | brooks | 2020-10-26 10:47:42 -0700 (Mon, 26 Oct 2020) | 12 lines MFC r366981: Only use ASAN when using the in-tree compiler When building FreeBSD 11 on a FreeBSD 12 system with CROSS_TOOLCHAIN=llvm10 we end up trying to link against the packaged version of the sanitizer library. This resulted in a requirement for getentropy(3) which is not present in FreeBSD 11. Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D26903 ------------------------------------------------------------------------ r367080 | kevans | 2020-10-27 06:13:04 -0700 (Tue, 27 Oct 2020) | 22 lines MFC r367002, r367060 r367002: audit: correct reporting of *execve(2) success r326145 corrected do_execve() to return EJUSTRETURN upon success so that important registers are not clobbered. This had the side effect of tapping out 'failures' for all *execve(2) audit records, which is less than useful for auditing purposes. Audit exec returns earlier, where we can know for sure that EJUSTRETURN translates to success. Note that this unsets TDP_AUDITREC as we commit the audit record, so the usual audit in the syscall return path will do nothing. r367060: audit: also correctly audit linux_execve() Linux execve() gets audited as AUE_EXECVE as well, we should also interpret the return from this correctly for the same reasoning as in r367002. PR: 249179, 242938 ------------------------------------------------------------------------ r367098 | avg | 2020-10-28 04:40:10 -0700 (Wed, 28 Oct 2020) | 9 lines MFC r365943: aw_usbphy: add support for device mode operation OTG mode is not supported still. It's easy to do it as a one-off detection, but the proper support requires continuous monitoring and communicating the current state to the USB layer. Also, fix phy0_route setting for H3. Remove duplicate register definitions. ------------------------------------------------------------------------ r367111 | 0mp | 2020-10-28 10:03:03 -0700 (Wed, 28 Oct 2020) | 6 lines MFC r366725: Fix formatting of SYNOPSIS There was an unnecessary newline being added before Nm. ------------------------------------------------------------------------ r367115 | kib | 2020-10-28 14:01:00 -0700 (Wed, 28 Oct 2020) | 5 lines MFC r366904: Improve FPU Tag Word reconstruction on i386 to indicate register states. PR: 250454 ------------------------------------------------------------------------ r367116 | kib | 2020-10-28 14:02:43 -0700 (Wed, 28 Oct 2020) | 3 lines MFC r366918: mmap(2): Document guard size for MAP_STACK and related EINVAL. ------------------------------------------------------------------------