]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
18 months agoheimdal: Fix: Too large time skew, client time 1970-01-01T01:00:00
Cy Schubert [Thu, 17 Nov 2022 15:43:29 +0000 (07:43 -0800)]
heimdal: Fix: Too large time skew, client time 1970-01-01T01:00:00

Part of ed549cb0c53f zeroed out a data structure in the resulting code-file
when a TUTCTime type was freed. This part of the patch applies to Heimdal
7.1+ and not our Heimdal 1.5.2.

PR: 267827
Reported by: Peter Much <pmc@citylink.dinoex.sub.org>
Tested by: Peter Much <pmc@citylink.dinoex.sub.org>
Fixes: ed549cb0c53f
MFC after: TBD with philip@

18 months agoarm64 pmap: implement per-superpage locks
Andrew Turner [Fri, 19 Aug 2022 13:54:36 +0000 (13:54 +0000)]
arm64 pmap: implement per-superpage locks

As with amd64 pmap introduce per-superpage locks backed by pages
allocated by their respective domains.

This significiantly reduces lock contantion from pmap when running
poudriere on a 160 core Ampere Altra server

Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D36310

18 months agoMark the debug.vnlru_nowhere sysctl as CTLFLAG_STATS
Eric van Gyzen [Thu, 17 Nov 2022 16:42:28 +0000 (10:42 -0600)]
Mark the debug.vnlru_nowhere sysctl as CTLFLAG_STATS

The kernel doesn't read it.  It's only writable so it can be cleared.

Sponsored by: Dell EMC Isilon

18 months agotftpd: whitespace cleanup
Dag-Erling Smørgrav [Thu, 17 Nov 2022 16:09:58 +0000 (16:09 +0000)]
tftpd: whitespace cleanup

18 months agotftp: Fix buffer overflow and fd leak in multi-file PUT.
Dag-Erling Smørgrav [Thu, 17 Nov 2022 16:15:04 +0000 (17:15 +0100)]
tftp: Fix buffer overflow and fd leak in multi-file PUT.

Sponsored by: Klara, Inc.
Differential Revision: https://reviews.freebsd.org/D37422

18 months agocounter: fix SYSCTL_COUNTER_U64_ARRAY type
Gleb Smirnoff [Thu, 17 Nov 2022 16:16:14 +0000 (08:16 -0800)]
counter: fix SYSCTL_COUNTER_U64_ARRAY type

There is nothing wrong with declaring an array as CTLTYPE_U64.  Note
that sysctl(8) is able to print such arrays and doesn't need any change.

Fixes: b5b7b142a7e0e74bdd8c497f6a14804e71654dfd

18 months agolibarchive: Add missing MLINK.
Dag-Erling Smørgrav [Thu, 17 Nov 2022 16:11:41 +0000 (17:11 +0100)]
libarchive: Add missing MLINK.

Differential Revision: https://reviews.freebsd.org/D37398

18 months agopkgbase: report type for duplicated METALOG entries
Ed Maste [Thu, 17 Nov 2022 14:15:20 +0000 (09:15 -0500)]
pkgbase: report type for duplicated METALOG entries

Duplicate METALOG file entries are more of a concern than duplicate
directories.  The metalog check tool previously did not include the
entry type in the warnings, making it hard to find the ones of concern.

Sponsored by: The FreeBSD Foundation

18 months agoman9: add vm_map_unwire link
Ed Maste [Thu, 17 Nov 2022 15:15:26 +0000 (10:15 -0500)]
man9: add vm_map_unwire link

Reported by: markj (in D37416)
Sponsored by: The FreeBSD Foundation

18 months agoObsoleteFiles: correct path to removed rc.sendmail man page
Ed Maste [Thu, 17 Nov 2022 15:12:58 +0000 (10:12 -0500)]
ObsoleteFiles: correct path to removed rc.sendmail man page

Fixes: 820b62d9410e ("ObsoleteFiles: the rc.sendmail(8)...")

18 months agoman9: correct vm_page_wire.9 links
Ed Maste [Thu, 17 Nov 2022 02:29:51 +0000 (21:29 -0500)]
man9: correct vm_page_wire.9 links

PR: 244596
Reviewed by: markj
Fixes: fee2a2fa3983 ("Change synchonization rules for ...")
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D37416

18 months agopkgbase: examine METALOG files relative to stage root directory
Ed Maste [Wed, 16 Nov 2022 19:53:42 +0000 (14:53 -0500)]
pkgbase: examine METALOG files relative to stage root directory

Previously we stripped the '.' from the beginning of each METALOG entry
to determine the path to stat.  This meant that we examined files on the
build host, not the staged files.

Instead, strip off the last part of the specified METALOG pathname to
find the stage root directory, and stat files relative to that.

Reviewed by: bapt
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D37412

18 months agoMFV: Merge xz 5.2.8
Xin LI [Thu, 17 Nov 2022 04:36:06 +0000 (20:36 -0800)]
MFV: Merge xz 5.2.8

Relnotes: yes
MFC after:      2 weeks

18 months agovfs_vnops.c: Fix blksize for ZFS
Rick Macklem [Thu, 17 Nov 2022 01:37:22 +0000 (17:37 -0800)]
vfs_vnops.c: Fix blksize for ZFS

Since ZFS reports _PC_MIN_HOLE_SIZE as 512 (although it
appears that an unwritten region must be at least f_iosize
to remain unallocated), vn_generic_copy_file_range()
uses 4096 for the copy blksize for ZFS, reulting in slow copies.

For most other file systems, _PC_MIN_HOLE_SIZE and f_iosize
are the same value, so this patch modifies the code to
use f_iosize for most cases.  It also documents in comments
why the blksize is being set a certain way, so that the code
does not appear to be doing "magic math".

Reported by: allanjude
Reviewed by: allanjude, asomers
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D37076

18 months agozfs: workaround panic on rootfs mount
Martin Matuska [Thu, 17 Nov 2022 01:00:05 +0000 (02:00 +0100)]
zfs: workaround panic on rootfs mount

The import of OpenZFS PR 13758 causes a panic in zfsctl_is_node()
if ZFS is mounting as root filesystem. This implements a workaround
until the issue is resolved by authors.

18 months agoman9: remove duplicate superio_find_dev link
Ed Maste [Thu, 17 Nov 2022 00:28:17 +0000 (19:28 -0500)]
man9: remove duplicate superio_find_dev link

PR: 244596
Fixes: c812bea351021 ("add superio.4 and superio.9 ...")
Sponsored by: The FreeBSD Foundation

18 months agolibcompat: avoid installing include files twice
Ed Maste [Thu, 17 Nov 2022 00:12:18 +0000 (19:12 -0500)]
libcompat: avoid installing include files twice

Previously some headers were getting installed twice, once as expected
and then a second time as part of the compat32 library stage.

Makefile.libcompat sets -DLIBRARIES_ONLY for the install make invocation
which causes bsd.lib.mk to skip headers.  However some headers are
handled via bsd.prog.mk, which does not use LIBRARIES_ONLY.  Explicitly
set MK_INCLUDES=no.

Reviewed by: brooks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D37413

18 months agozfs: unbreak 32-bit world build broken in dbd5678dc
Martin Matuska [Wed, 16 Nov 2022 23:33:26 +0000 (00:33 +0100)]
zfs: unbreak 32-bit world build broken in dbd5678dc

18 months agozfs: merge openzfs/zfs@2163cde45
Martin Matuska [Wed, 16 Nov 2022 20:25:24 +0000 (21:25 +0100)]
zfs: merge openzfs/zfs@2163cde45

Notable upstream pull request merges:
  #13680 Add options to zfs redundant_metadata property
  #13758 Allow mounting snapshots in .zfs/snapshot as a regular user
  #13838 quota: disable quota check for ZVOL
  #13839 quota: extend quota for dataset
  #13973 Fix memory leaks in dmu_send()/dmu_send_obj()
  #13977 Avoid unnecessary metaslab_check_free calling
  #13978 PAM: Fix unchecked return value from zfs_key_config_load()
  #13979 Handle possible null pointers from malloc/strdup/strndup()
  #13997 zstream: allow decompress to fix metadata for uncompressed
         records
  #13998 zvol_wait logic may terminate prematurely
  #14001 FreeBSD: Fix a pair of bugs in zfs_fhtovp()
  #14003 Stop ganging due to past vdev write errors
  #14039 Optimize microzaps
  #14050 Fix draid2+2s metadata error on simultaneous 2 drive failures
  #14062 zed: Avoid core dump if wholedisk property does not exist
  #14077 Propagate extent_bytes change to autotrim thread
  #14079 FreeBSD: vn_flush_cached_data: observe vnode locking contract
  #14093 Fix ARC target collapse when zfs_arc_meta_limit_percent=100
  #14106 Add ability to recompress send streams with new compression
         algorithm
  #14119 Deny receiving into encrypted datasets if the keys are not
         loaded
  #14120 Fix arc_p aggressive increase
  #14129 zed: Prevent special vdev to be replaced by hot spare
  #14133 Expose zfs_vdev_open_timeout_ms as a tunable
  #14135 FreeBSD: Fix out of bounds read in zfs_ioctl_ozfs_to_legacy()
  #14152 Adds the `-p` option to `zfs holds`
  #14161 Handle and detect #13709's unlock regression

Obtained from: OpenZFS
OpenZFS commit: 2163cde450d0898b5f7bac16afb4e238485411ff

18 months agoCheck alignment of fp in unwind_frame
Dapeng Gao [Wed, 16 Nov 2022 18:29:28 +0000 (18:29 +0000)]
Check alignment of fp in unwind_frame

A misaligned frame pointer is certainly not a valid frame pointer and
with strict alignment enabled (as on CHERI) can cause panics when it is
loaded from later in the code.

This is a recommit of 40e0fa10f58d90744c2857b57adf0ddbce1a1e1c with
is_aligned() corrected to __is_aligned().

Reviewed By: jhb
Differential Revision: https://reviews.freebsd.org/D34646

18 months agoregen src.conf.5 after MK_CXX and arm64 Hyper-V changes
Ed Maste [Wed, 16 Nov 2022 16:36:35 +0000 (11:36 -0500)]
regen src.conf.5 after MK_CXX and arm64 Hyper-V changes

Reported by: matteo

18 months agobhyve: build DSDT table by basl
Corvin Köhne [Wed, 6 Apr 2022 09:10:40 +0000 (11:10 +0200)]
bhyve: build DSDT table by basl

Building the DSDT table by basl will allow it to be loaded by qemu's
ACPI table loader.

Building the DSDT is complex and basl doesn't support it yet. For that
reason, it's still compiled by iasl. It's just a bit restructured.
Upcoming commits will restructure the builds of all other ACPI tables in
a similar way. So, this commit is done for consistency reasons. We're
starting with DSDT because it doesn't point to any other tables and it's
the last one in our current build list.

Reviewed by: jhb, markj (older version)
Approved by: manu (mentor)
MFC after: 2 weeks
Sponsored by: Beckhoff Automation GmbH & Co. KG
Differential Revision: https://reviews.freebsd.org/D36993

18 months agobhyve: add basl support for common table header
Corvin Köhne [Wed, 6 Apr 2022 09:10:40 +0000 (11:10 +0200)]
bhyve: add basl support for common table header

Most ACPI tables are using the same header. Make it easy to create this
header by creating a function for it.

Reviewed by: jhb, markj (older version)
Approved by: manu (mentor)
MFC after: 2 weeks
Sponsored by: Beckhoff Automation GmbH & Co. KG
Differential Revision: https://reviews.freebsd.org/D36992

18 months agousb/dwc3: Use more () for macros variables
Emmanuel Vadot [Wed, 16 Nov 2022 10:57:56 +0000 (11:57 +0100)]
usb/dwc3: Use more () for macros variables

Suggested by: andrew
Sponsored by: Beckhoff Automation GmbH & Co. KG

18 months agoarm64/rockchip: Remove rk3328-dwc3 overlays
Emmanuel Vadot [Tue, 15 Nov 2022 12:57:44 +0000 (13:57 +0100)]
arm64/rockchip: Remove rk3328-dwc3 overlays

Not needed after
3c790abfba67 arm64/rk_dwc3: Remove RK3328 support
c45296f16f79 dwc3: Handle optional clocks

Differential Revision: https://reviews.freebsd.org/D37395
Sponsored by: Beckhoff Automation GmbH & Co. KG

18 months agousb/dwc3: Only force USB2 based on the PHY register and IP version
Emmanuel Vadot [Tue, 15 Nov 2022 12:54:49 +0000 (13:54 +0100)]
usb/dwc3: Only force USB2 based on the PHY register and IP version

We shouldn't force USB2 only based on if we have an external PHY.
The internal PHY register tell us what link speed we can acheive
and we need to force USB2 only if it cannot do USB3.
This is only available after revision 0x290A of the dwc3 IP.

Reviewed by: andrew
Differential Revision: https://reviews.freebsd.org/D37394
Fixed: 1331c0f44b6a ("Add support for RockChip RK356X to DWC3 driver.")
Sponsored by: Beckhoff Automation GmbH & Co. KG

18 months agousb/dwc3: Read the full IDs/version
Emmanuel Vadot [Tue, 15 Nov 2022 10:22:23 +0000 (11:22 +0100)]
usb/dwc3: Read the full IDs/version

We need to enable some quirks based on the version so read it.

Reviewed by: andrew
Differential Revision: https://reviews.freebsd.org/D37393
Sponsored by: Beckhoff Automation GmbH & Co. KG

18 months agoarm64/rk_dwc3: Remove RK3328 support
Emmanuel Vadot [Tue, 15 Nov 2022 10:21:19 +0000 (11:21 +0100)]
arm64/rk_dwc3: Remove RK3328 support

The RK3328 dts doesn't have the glue node so we need the dwc3 driver
to attach directly.

Differential Revision: https://reviews.freebsd.org/D37396
Sponsored by: Beckhoff Automation GmbH & Co. KG

18 months agodwc3: Handle optional clocks
Emmanuel Vadot [Tue, 15 Nov 2022 08:58:30 +0000 (09:58 +0100)]
dwc3: Handle optional clocks

Usually dwc3 needs a glue node that contain the SoC specific clocks/resets.
For some reason the RK3328 DTS doesn't have this glue node and the clocks
are specified in the dwc3 node directly.
The bindings says that it is allowed but doesn't specified some strict names
for them.
Add a specific case for RK3328 based on the compatible string.

Reviewed by: andrew
Differential Revision: https://reviews.freebsd.org/D37392
Sponsored by: Beckhoff Automation GmbH & Co. KG

18 months agotcp: remove unused t_rttbest
Michael Tuexen [Wed, 16 Nov 2022 10:22:13 +0000 (11:22 +0100)]
tcp: remove unused t_rttbest

No functional change intended.

Reviewed by: rscheff@
Sponsored by: Netflix, Inc.
Differential Revision: https://reviews.freebsd.org/D37401

18 months agoVendor import of xz-5.2.8 (trimmed).
Xin LI [Wed, 16 Nov 2022 05:53:08 +0000 (21:53 -0800)]
Vendor import of xz-5.2.8 (trimmed).

18 months agors: Test actual output in the tests.
John Baldwin [Wed, 16 Nov 2022 05:20:18 +0000 (21:20 -0800)]
rs: Test actual output in the tests.

Previously the tests just verified if command line arguments raised an
error or not, they did not test how command line arguments affected
the output.  This adds some sample (if simple) input and output to
each flag test as well as adding a few additional trivial tests.

Reviewed by: brooks
Differential Revision: https://reviews.freebsd.org/D36835

18 months agors: Use getopt() and strtol() instead of mannual parsing.
John Baldwin [Wed, 16 Nov 2022 05:19:35 +0000 (21:19 -0800)]
rs: Use getopt() and strtol() instead of mannual parsing.

This uses the "::" extension to getopt() to handle options which take
an optional argument.

The updated flag tests were all wrong before and only passed because
the manual parser failed to raise errors when a required argument was
missing.  The invalid argument test now gets a better error message.

Reviewed by: brooks, imp, emaste
Differential Revision: https://reviews.freebsd.org/D36834

18 months agodepend-cleanup.sh: Handle rs(1) moving to C++.
John Baldwin [Wed, 16 Nov 2022 05:17:28 +0000 (21:17 -0800)]
depend-cleanup.sh: Handle rs(1) moving to C++.

To support changes in filenames for programs (and not just libraries),
update clean_dep() to check .depend.foo.o files as well as
.depend.foo.pico files.

18 months agors: Convert to C++ to convert elem to a std::vector<char *>.
John Baldwin [Wed, 16 Nov 2022 05:03:12 +0000 (21:03 -0800)]
rs: Convert to C++ to convert elem to a std::vector<char *>.

This also updates various indices and counters from int to size_t to
pacify resulting -Wsign-compare warnings.

Reviewed by: brooks
Differential Revision: https://reviews.freebsd.org/D36833

18 months agoshare: i18n: fix mismatch in BIG5 esdb generation
Kyle Evans [Wed, 16 Nov 2022 04:07:28 +0000 (22:07 -0600)]
share: i18n: fix mismatch in BIG5 esdb generation

In the first loop, we setup Big5_$i_variable where $i are elements of
$PART with : replaced to @.  Do the same in the second loop when we're
trying to refer to the same variable.

No functional change, because none of the in-tree mappings have an @
in them.

Sponsored by: Klara, Inc.

18 months agosrc.opts.mk: Disable all of LLVM if C++ support is disabled.
John Baldwin [Wed, 16 Nov 2022 03:21:20 +0000 (19:21 -0800)]
src.opts.mk: Disable all of LLVM if C++ support is disabled.

Reviewed by: imp, emaste
Differential Revision: https://reviews.freebsd.org/D36891

18 months agobhyve: Use XHCI_PORTREG_PTR in one place that open-coded it.
John Baldwin [Wed, 16 Nov 2022 03:19:35 +0000 (19:19 -0800)]
bhyve: Use XHCI_PORTREG_PTR in one place that open-coded it.

Reviewed by: corvink, markj
Differential Revision: https://reviews.freebsd.org/D36888

18 months agolibfetch: Pass a zeroed digest to DigestCalcResponse.
John Baldwin [Wed, 16 Nov 2022 03:18:58 +0000 (19:18 -0800)]
libfetch: Pass a zeroed digest to DigestCalcResponse.

GCC 12 warns that passing "" (a constant of char[1]) to a parameter of
type char[33] could potentially overread.  It is not clear from the
context that c->qops can never be "auth-int" (and if it can't, then
the "auth-int" handling in DigestCalcResponse is dead code that should
be removed since this is the only place the function is called).

Reviewed by: emaste
Differential Revision: https://reviews.freebsd.org/D36825

18 months agodiff: Don't (ab)use sprintf() as a kind of strcat().
John Baldwin [Wed, 16 Nov 2022 03:17:36 +0000 (19:17 -0800)]
diff: Don't (ab)use sprintf() as a kind of strcat().

Previously print_header() used sprintf() of a buffer to itself as a
kind of string builder but without checking for overflows.  This
raised -Wformat-truncation and -Wrestrict warnings in GCC.  Instead,
just conditionally print the new timestamp fields after the initial
strftime()-formatted string.  While here, use sizeof(buf) with
strftime() rather than a magic number.

Reviewed by: bapt
Differential Revision: https://reviews.freebsd.org/D36814

18 months agodiff: Don't treat null characters like carriage returns in readhash().
John Baldwin [Wed, 16 Nov 2022 03:16:50 +0000 (19:16 -0800)]
diff: Don't treat null characters like carriage returns in readhash().

The implicit fall-through in the !D_FORCEASCII case caused null
characters to be treated as carriage returns honoring the D_STRIPCR,
D_FOLDBLANKS, and D_IGNOREBLANKS flags.

Reported by: GCC -Wimplicit-fallthrough
Reviewed by: bapt
Fixes:   3cbf98e2bee9 diff: read whole files to determine if they are ASCII text
Differential Revision: https://reviews.freebsd.org/D36813

18 months agoLinuxKPI: in efi.h include queue.h
Bjoern A. Zeeb [Tue, 15 Nov 2022 23:08:05 +0000 (23:08 +0000)]
LinuxKPI: in efi.h include queue.h

sys/linker.h needs sys/queue.h;  this gets another wireless driver
closer to compiling on main.

MFC after: 3 days

18 months agoHandle and detect #13709's unlock regression (#14161)
Rich Ercolani [Tue, 15 Nov 2022 22:44:12 +0000 (17:44 -0500)]
Handle and detect #13709's unlock regression (#14161)

In #13709, as in #11294 before it, it turns out that 63a26454 still had
the same failure mode as when it was first landed as d1d47691, and
fails to unlock certain datasets that formerly worked.

Rather than reverting it again, let's add handling to just throw out
the accounting metadata that failed to unlock when that happens, as
well as a test with a pre-broken pool image to ensure that we never get
bitten by this again.

Fixes: #13709
Signed-off-by: Rich Ercolani <rincebrain@gmail.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
18 months agotftpd: cleanup
Dag-Erling Smørgrav [Tue, 15 Nov 2022 22:37:54 +0000 (23:37 +0100)]
tftpd: cleanup

Sponsored by: Klara, Inc.

18 months agoipfilter: replace defunct home page link with FAQ URL
Ed Maste [Tue, 15 Nov 2022 21:58:51 +0000 (16:58 -0500)]
ipfilter: replace defunct home page link with FAQ URL

ipfilter.org disappeared in mid 2004.  There is still a FAQ at
https://www.phildev.net/ipf so point to that.

18 months agolibalias: improve handling of invalid SCTP packets
Michael Tuexen [Tue, 15 Nov 2022 20:05:02 +0000 (21:05 +0100)]
libalias: improve handling of invalid SCTP packets

In case of a paritial chunk only pretend the result is OK if
the packet is not the last fragment and there is a valid association.

PR: 267476
MFC after: 3 days

18 months agorpc.tlsservd.8: Update man page for new -N/--numdaemons option
Rick Macklem [Tue, 15 Nov 2022 21:30:41 +0000 (13:30 -0800)]
rpc.tlsservd.8: Update man page for new -N/--numdaemons option

Commit 1e588a9ceb36 added a new command line option -N/numdaemons
that specifies how many daemons to run. This allows a server
to be configured with more than one rpc.tlsservd daemon, which
may be necessary to handle a reboot for an NFS server with
many NFS-over-TLS client mounts.

This patch updates the man page for this commit.

This is a content change.

Reviewed by: karels, pauamma (man pages)
Differential Revision: https://reviews.freebsd.org/D37382

18 months agoheimdal: Fix multiple security vulnerabilities
Cy Schubert [Tue, 8 Nov 2022 08:53:29 +0000 (00:53 -0800)]
heimdal: Fix multiple security vulnerabilities

The following issues are patched:

 - CVE-2022-42898 PAC parse integer overflows
 - CVE-2022-3437 Overflows and non-constant time leaks in DES{,3} and arcfour
 - CVE-2021-44758 NULL dereference DoS in SPNEGO acceptors
 - CVE-2022-44640 Heimdal KDC: invalid free in ASN.1 codec

    Note that CVE-2022-44640 is a severe vulnerability, possibly a 10.0
    on the Common Vulnerability Scoring System (CVSS) v3, as we believe
    it should be possible to get an RCE on a KDC, which means that
    credentials can be compromised that can be used to impersonate
    anyone in a realm or forest of realms.

    Heimdal's ASN.1 compiler generates code that allows specially
    crafted DER encodings of CHOICEs to invoke the wrong free function
    on the decoded structure upon decode error.  This is known to impact
    the Heimdal KDC, leading to an invalid free() of an address partly
    or wholly under the control of the attacker, in turn leading to a
    potential remote code execution (RCE) vulnerability.

    This error affects the DER codec for all extensible CHOICE types
    used in Heimdal, though not all cases will be exploitable.  We have
    not completed a thorough analysis of all the Heimdal components
    affected, thus the Kerberos client, the X.509 library, and other
    parts, may be affected as well.

    This bug has been in Heimdal's ASN.1 compiler since 2005, but it may
    only affect Heimdal 1.6 and up.  It was first reported by Douglas
    Bagnall, though it had been found independently by the Heimdal
    maintainers via fuzzing a few weeks earlier.

    While no zero-day exploit is known, such an exploit will likely be
    available soon after public disclosure.

 - CVE-2019-14870: Validate client attributes in protocol-transition
 - CVE-2019-14870: Apply forwardable policy in protocol-transition
 - CVE-2019-14870: Always lookup impersonate client in DB

Sponsored by: so (philip)
Obtained from: so (philip)
Tested by: philip, cy
MFC after: immediately

18 months agoipfilter: Document count_mask_bits() arguments
Cy Schubert [Mon, 14 Nov 2022 23:58:02 +0000 (15:58 -0800)]
ipfilter: Document count_mask_bits() arguments

Document arguments input to count_mask_bits().

MFC after: 3 days

18 months agocxgbe: Enable TOE TLS RX when an RX key is provided via setsockopt().
John Baldwin [Tue, 15 Nov 2022 20:08:51 +0000 (12:08 -0800)]
cxgbe: Enable TOE TLS RX when an RX key is provided via setsockopt().

Rather than requiring a socket to be created as a TLS socket from the
get go, switch a TOE socket from "plain" TOE to TLS mode when a
receive key is added to the socket.

The firmware is only able to switch a "plain" TOE connection to TLS
mode if the head of the pending socket data is the start of a TLS
record, so the connection is migrated to TLS mode as a multi-step
process.

When TOE TLS RX is enabled, the associated connection's receive side
is frozen via a flag in the TCB.  The state of the socket buffer is
then examined to determine if the pending data in the socket buffer
ends on a TLS record boundary.  If so, the connection is migrated to
TLS mode and unfrozen.  Otherwise, the connection is unfrozen
temporarily until more data arrives.  Once more data arrives, the
receive queue is frozen again and rechecked.  This continues until the
connection is paused at a record boundary.  Any records received
before TLS mode is enabled are decrypted as software records.

Note that this removes the 'rx_tls_ports' sysctl.  TOE TLS offload for
receive is now enabled automatically on existing TOE connections when
using a KTLS-aware SSL library just as it was previously enabled
automatically for TLS transmit.  This also enables TLS offload for TOE
connections which enable TLS after passing initial data in the clear
(e.g. STARTTLS with SMTP).

Sponsored by: Chelsio Communications
Differential Revision: https://reviews.freebsd.org/D37351

18 months agocxgbe: Various whitespace fixes.
John Baldwin [Tue, 15 Nov 2022 20:03:57 +0000 (12:03 -0800)]
cxgbe: Various whitespace fixes.

Mostly trailing whitespace and spaces before tabs.

Sponsored by: Chelsio Communications
Differential Revision: https://reviews.freebsd.org/D37350

18 months agoktls: Add tests for receiving corrupted or invalid records.
John Baldwin [Tue, 15 Nov 2022 20:03:19 +0000 (12:03 -0800)]
ktls: Add tests for receiving corrupted or invalid records.

These should all trigger errors when reading from the socket.

Tests include truncated records (socket closed early on the other
side), corrupted records (bits flipped in explicit IVs, ciphertext, or
MAC), invalid header fields, and various invalid record lengths.

Reviewed by: markj
Sponsored by: Chelsio Communications
Differential Revision: https://reviews.freebsd.org/D37373

18 months agoktls_ocf: Reject encrypted TLS records using AEAD that are too small.
John Baldwin [Tue, 15 Nov 2022 20:02:57 +0000 (12:02 -0800)]
ktls_ocf: Reject encrypted TLS records using AEAD that are too small.

If a TLS record is too small to contain the required explicit IV,
record_type (TLS 1.3), and MAC, reject attempts to decrypt it with
EMSGSIZE without submitting it to OCF.  OCF drivers may not properly
detect that regions in the crypto request are outside the bounds of
the mbuf chain.  The caller isn't supposed to submit such requests.

Reviewed by: markj
Sponsored by: Chelsio Communications
Differential Revision: https://reviews.freebsd.org/D37372

18 months agoktls: Add tests for software AES-CBC decryption for TLS 1.1+.
John Baldwin [Tue, 15 Nov 2022 20:02:28 +0000 (12:02 -0800)]
ktls: Add tests for software AES-CBC decryption for TLS 1.1+.

Reviewed by: markj
Sponsored by: Chelsio Communications
Differential Revision: https://reviews.freebsd.org/D37371

18 months agoktls: Add software support for AES-CBC decryption for TLS 1.1+.
John Baldwin [Tue, 15 Nov 2022 20:02:03 +0000 (12:02 -0800)]
ktls: Add software support for AES-CBC decryption for TLS 1.1+.

This is mainly intended to provide a fallback for TOE TLS which may
need to use software decryption for an initial record at the start
of a connection.

Reviewed by: markj
Sponsored by: Chelsio Communications
Differential Revision: https://reviews.freebsd.org/D37370

18 months agoImport device-tree files from Linux 6.0
Emmanuel Vadot [Tue, 15 Nov 2022 19:02:06 +0000 (20:02 +0100)]
Import device-tree files from Linux 6.0

Sponsored by:   Beckhoff Automation GmbH & Co. KG

18 months agoImport device-tree files from Linux 5.19
Emmanuel Vadot [Tue, 15 Nov 2022 19:01:13 +0000 (20:01 +0100)]
Import device-tree files from Linux 5.19

Sponsored by:   Beckhoff Automation GmbH & Co. KG

18 months agoImport device-tree files from Linux 6.0
Emmanuel Vadot [Tue, 15 Nov 2022 18:51:46 +0000 (19:51 +0100)]
Import device-tree files from Linux 6.0

18 months agoImport device-tree files from Linux 5.19
Emmanuel Vadot [Tue, 15 Nov 2022 18:50:16 +0000 (19:50 +0100)]
Import device-tree files from Linux 5.19

18 months agoSplit out the arm64 EL2 exception vectors
Andrew Turner [Mon, 31 Oct 2022 15:08:26 +0000 (15:08 +0000)]
Split out the arm64 EL2 exception vectors

These were originally in locore.S as they are only needed so we have
a valid value to put into the vbar_el2 register. As these will soon
be used by bhyve so move them to a new file as we already have with
the EL1 exception vectors in exception.S.

Obtained from: https://github.com/FreeBSD-UPB/freebsd-src (earlier version)
Sponsored by: Innovate UK
Sponsored by: The FreeBSD Foundation

18 months agoAdd more arm64 hypervisor registers
Andrew Turner [Mon, 14 Nov 2022 15:42:51 +0000 (15:42 +0000)]
Add more arm64 hypervisor registers

These will be used by bhyve.

Sponsored by: Innovate UK
Sponsored by: The FreeBSD Foundation

18 months agoPut the arm64 vttbr_el2 register into a state
Andrew Turner [Tue, 15 Nov 2022 12:53:28 +0000 (12:53 +0000)]
Put the arm64 vttbr_el2 register into a state

Zero the vttbr_el2 register on each CPU so we can tell if we are
running the host or guest kernel from a hypervisor.

Obtained from: https://github.com/FreeBSD-UPB/freebsd-src (earlier version)
Sponsored by: Innovate UK
Sponsored by: The FreeBSD Foundation

18 months agoAdd the arch field to the arm64 MIDR macros
Andrew Turner [Mon, 14 Nov 2022 15:48:43 +0000 (15:48 +0000)]
Add the arch field to the arm64 MIDR macros

For completeness add accessors for the MIDR field. As the field is
always 0xf on arm64 it is unneeded in the current MICR handling, but
will be used in the vmm module for bhyve.

Obtained from: https://github.com/FreeBSD-UPB/freebsd-src (earlier version)
Sponsored by: The FreeBSD Foundation

18 months agomac_lomac: whack giant usage
Mateusz Guzik [Tue, 15 Nov 2022 14:31:41 +0000 (14:31 +0000)]
mac_lomac: whack giant usage

It does not protect anything, the code looks dodgy regardless.

18 months agoRetire broken GPROF support from the kernel
Mateusz Guzik [Tue, 15 Nov 2022 10:56:13 +0000 (10:56 +0000)]
Retire broken GPROF support from the kernel

The option is not even recognized and with that patched it does not
compile. Even if it did work, it would be prohibitively expensive to
use.

Interested parties can use pmcstat or dtrace instead.

18 months agodtrace: avoid kinst warn when not used
Mateusz Guzik [Tue, 15 Nov 2022 10:01:05 +0000 (10:01 +0000)]
dtrace: avoid kinst warn when not used

Reviewed by: markj
Sponsored by: Rubicon Communications, LLC ("Netgate")

18 months agoLinuxKPI: add memset_startat macro
Bjoern A. Zeeb [Mon, 14 Nov 2022 23:26:22 +0000 (23:26 +0000)]
LinuxKPI: add memset_startat macro

Add a memset_startat() macro which sets a pattern from a struct member
to the end of the struct.   Needed by a wireless driver.

MFC after: 3 days
Reviewed by: emaste
Differential Revision: https://reviews.freebsd.org/D37389

18 months agoRename the arm64 pmap_invalidate_* functions
Andrew Turner [Mon, 7 Nov 2022 13:34:30 +0000 (13:34 +0000)]
Rename the arm64 pmap_invalidate_* functions

These all work on stage 1 tables. Rename them so we can add similar
functions that operate on stage 2 tables.

Reviewed by: alc, markj, kib
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D37302

18 months agoDisable superpage use for stage 2 arm64 mappings
Andrew Turner [Mon, 7 Nov 2022 11:21:42 +0000 (11:21 +0000)]
Disable superpage use for stage 2 arm64 mappings

When modifying a stage 2 mapping we may need to call into the
hypervisor to invalidate the TLB. Until it is known if the cost of
this operation is less than the performance gains superpages offers
disable their use.

Reviewed by: kib. markj
Sponsored by: Innovate UK
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D37299

18 months agoRevert "Check alignment of fp in unwind_frame"
Andrew Turner [Tue, 15 Nov 2022 12:32:59 +0000 (12:32 +0000)]
Revert "Check alignment of fp in unwind_frame"

Fix the build as is_aligned doesn't exist in FreeBSD.

This reverts commit 40e0fa10f58d90744c2857b57adf0ddbce1a1e1c.

18 months agopfsync: fix memory leak
Kristof Provost [Tue, 15 Nov 2022 11:11:32 +0000 (12:11 +0100)]
pfsync: fix memory leak

The recent refactoring to prepare for pfsync over IPv6 introduced a
memory leak.
If we don't have a sync peer configured we return early (without sending
out a packet), but failed to free the newly allocated packet.

Sponsored by: Rubicon Communications, LLC ("Netgate")

18 months agoproc: retire 2 unused lock annotations
Mateusz Guzik [Tue, 15 Nov 2022 10:50:39 +0000 (10:50 +0000)]
proc: retire 2 unused lock annotations

18 months agoif_ovpn: pass control packets through the socket
Kristof Provost [Wed, 9 Nov 2022 13:48:05 +0000 (14:48 +0100)]
if_ovpn: pass control packets through the socket

Rather than passing control packets through the ioctl interface allow
them to pass through the normal UDP socket flow.
This simplifies both kernel and userspace, and matches the approach
taken (or the one that will be taken) on the Linux side of things.

Sponsored by: Rubicon Communications, LLC ("Netgate")
Differential Revision: https://reviews.freebsd.org/D37317

18 months agosendmail: remove leftovers from mta_start_script and rc.sendmail
Baptiste Daroussin [Tue, 15 Nov 2022 08:08:07 +0000 (09:08 +0100)]
sendmail: remove leftovers from mta_start_script and rc.sendmail

Switch /etc/mail/Makefile to use /etc/rc.d/sendmail instead of
/etc/rc.sendmail this switch should have been done 20 years ago.

While here update the documentation to not refer anymore to
mta_start_script

Reported by: Jose Luis Duran <jlduran@gmail.com>

18 months agobhyve: add basl support for pointers
Corvin Köhne [Wed, 6 Apr 2022 09:10:39 +0000 (11:10 +0200)]
bhyve: add basl support for pointers

Some ACPI tables like XSDT contain pointers to other ACPI tables. When
an ACPI table is loaded by qemu's loader, the address in the guest
memory is unknown. For that reason, the qemu loader supports patching
those pointers. Basl keeps track of all pointers and causes the qemu
loader to patch all pointers.

The qemu ACPI table loader is unsupport yet. However, in a future commit
bhyve will use dynamic ACPI table offsets based on the size and
alignment requirements of each ACPI table. Therefore, tracking ACPI
table pointer is required too.

Reviewed by: jhb
Approved by: manu (mentor)
MFC after: 2 weeks
Sponsored by: Beckhoff Automation GmbH & Co. KG
Differential Revision: https://reviews.freebsd.org/D36991

18 months agobhyve: add basl support for checksums
Corvin Köhne [Wed, 6 Apr 2022 09:10:39 +0000 (11:10 +0200)]
bhyve: add basl support for checksums

The qemu ACPI table loader patches the ACPI tables. After patching them,
checksums aren't correct any more. It has to calculate a new checksum
for the ACPI table. For that reason, basl has to keep track of checksums
and has to cause the qemu loader to create new checksums for the tables.

The qemu ACPI table loader isn't supported yet. However, the address of
all tables is unknown as long as bhyve hasn't finished ACPI table
creation. So, the checksum of tables which include pointer to other
tables are unknown too. This requires tracking of checksums too.

Reviewed by: jhb
Approved by: manu (mentor)
MFC after: 2 weeks
Sponsored by: Beckhoff Automation GmbH & Co. KG
Differential Revision: https://reviews.freebsd.org/D36990

18 months agobhyve: add basl support for length fields
Corvin Köhne [Wed, 6 Apr 2022 09:10:39 +0000 (11:10 +0200)]
bhyve: add basl support for length fields

ACPI tables have different layouts. So, there's no common position for
the length field. When tables are build by basl, the length is unknown
at the beginning. It has to be set after building the table.

Reviewed by: jhb
Approved by: manu (mentor)
MFC after: 2 weeks
Sponsored by: Beckhoff Automation GmbH & Co. KG
Differential Revision: https://reviews.freebsd.org/D36989

18 months agobhyve: add basl support for generic addresses
Corvin Köhne [Fri, 4 Nov 2022 13:30:53 +0000 (14:30 +0100)]
bhyve: add basl support for generic addresses

In upcoming commits, bhyve will build some ACPI tables by it's own.
Therefore, it should be capable of appending GENERIC_ADDRESS structs to
ACPI tables.

Reviewed by: jhb, markj
Approved by: manu (mentor)
MFC after: 2 weeks
Sponsored by: Beckhoff Automation GmbH & Co. KG
Differential Revision: https://reviews.freebsd.org/D36988

18 months agobhyve: add basl support for int values
Corvin Köhne [Fri, 4 Nov 2022 12:48:13 +0000 (13:48 +0100)]
bhyve: add basl support for int values

In upcoming commits, bhyve will build some ACPI tables by it's own.
Therefore, it should be capable of appending int values to ACPI tables.

Reviewed by: jhb, markj (older version)
Approved by: manu (mentor)
MFC after: 2 weeks
Sponsored by: Beckhoff Automation GmbH & Co. KG
Differential Revision: https://reviews.freebsd.org/D36987

18 months agobhyve: use basl to load ACPI tables
Corvin Köhne [Fri, 4 Nov 2022 11:30:37 +0000 (12:30 +0100)]
bhyve: use basl to load ACPI tables

Load the blobs compiled by iasl into a basl_table. The basl_table is a
temporary buffer which copies the ACPI tables into guest memory for us.
This allows us in the future to pass the blobs over the qemu fwcfg
interface to the guest.

Reviewed by: jhb, markj
Approved by: manu (mentor)
MFC after: 2 weeks
Sponsored by: Beckhoff Automation GmbH & Co. KG
Differential Revision: https://reviews.freebsd.org/D36986

18 months agobhyve: add table dump functions for basl
Corvin Köhne [Fri, 4 Nov 2022 11:26:34 +0000 (12:26 +0100)]
bhyve: add table dump functions for basl

Developing an ACPI table compiler isn't quite easy. It's helpful if you
can take a look at the ACPI tables created by the compiler.

The dump functions can either dump a ACPI table which was copied into
guest memory or a ACPI table provided for qemu's ACPI table loader.

Reviewed by: jhb, markj
Approved by: manu (mentor)
MFC after: 2 weeks
Sponsored by: Beckhoff Automation GmbH & Co. KG
Differential Revision: https://reviews.freebsd.org/D36985

18 months agobhyve: add basic basl implementation
Corvin Köhne [Fri, 4 Nov 2022 11:24:49 +0000 (12:24 +0100)]
bhyve: add basic basl implementation

Basl is the bhyve ASL compiler. At the moment, it's just a small wrapper
to call iasl, the Intel ASL compiler. As bhyve will gain support for
qemu's ACPI table loader in the future, it has to create ACPI tables on
it's own. Therefore, it makes sense to create a new file which keeps the
code for basl.

This first implementation of basl supports creating an ACPI table by
appending raw bytes to it. It's also capable of loading all tables into
guest memory.

Reviewed by: jhb, markj (older version)
Approved by: manu (mentor)
MFC after: 2 weeks
Sponsored by: Beckhoff Automation GmbH & Co. KG
Differential Revision: https://reviews.freebsd.org/D36984

18 months agobhyve/kdblayout: add some missing keys to german layout
Corvin Köhne [Tue, 15 Nov 2022 06:46:09 +0000 (07:46 +0100)]
bhyve/kdblayout: add some missing keys to german layout

The '/' and '§' keys are missing in the german keyboard layout.

Reviewed by: markj
Approved by: manu (mentor)
MFC after: 1 week
Sponsored by: Beckhoff Automation GmbH & Co. KG
Differential Revision: https://reviews.freebsd.org/D37386

18 months agobhyve: nvme controller obey async event setting when reporting critical temperature
Wanpeng Qian [Mon, 14 Nov 2022 13:08:52 +0000 (14:08 +0100)]
bhyve: nvme controller obey async event setting when reporting critical temperature

Async event report is controlled by async event configuration feature
setting. When reporting a critical temperature warning, check the async
event configuration.

Approved by: manu (mentor)
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D37355

18 months agobhyve: return FEATURE_NOT_CHANGEABLE for unimplemented feature of NVMe controller
Wanpeng Qian [Mon, 14 Nov 2022 13:06:34 +0000 (14:06 +0100)]
bhyve: return FEATURE_NOT_CHANGEABLE for unimplemented feature of NVMe controller

Set Feature is a feature specified function. Currently only some
features have the set procedure. For features that are not handled by
the controller, we should return a FEATURE_NOT_CHANGEABLE error message.

Approved by: manu (mentor)
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D32802

18 months agobhyve: abort and return FEATURE_NOT_SAVEABLE while set feature with a save flag for...
Wanpeng Qian [Mon, 14 Nov 2022 13:02:44 +0000 (14:02 +0100)]
bhyve: abort and return FEATURE_NOT_SAVEABLE while set feature with a save flag for NVMe controller.

Currently bhyve's NVMe controller cannot save feature values cross
reboot. It should return a FEATURE_NOT_SAVEABLE error when the command
specifies a save flag.

Quote from NVMe specification, page 205:

https://nvmexpress.org/wp-content/uploads/NVM-Express-1_4-2019.06.10-Ratified.pdf

If the Feature Identifier specified in the Set Features command is not
saveable by the controller and the controller receives a Set Features
command with the Save bit set to one, then the command shall be aborted
with a status of Feature Identifier Not Saveable.

Reviewed by: chuck (older version)
Approved by: manu (mentor)
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D32767

18 months agonvmecontrol: Fix condition when print number of Firmware Slots and Firmware Slot1...
Wanpeng Qian [Mon, 14 Nov 2022 12:59:11 +0000 (13:59 +0100)]
nvmecontrol: Fix condition when print number of Firmware Slots and Firmware Slot1 Readonly.

The Number of Firmware Slots should never be zero. So, a Firmware Slot 1
should always exist. For that reason, always print the Number of
Firmware Slots and the Firmware Slot 1 Read-Only value.

Reviewed by: imp
Approved by: manu (mentor)
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D34700

18 months agoCheck alignment of fp in unwind_frame
Dapeng Gao [Tue, 15 Nov 2022 00:21:38 +0000 (00:21 +0000)]
Check alignment of fp in unwind_frame

A misaligned frame pointer is certainly not a valid frame pointer and
with strict alignment enabled (as on CHERI) can cause panics when it is
loaded from later in the code.

Reviewed By: jhb
Differential Revision: https://reviews.freebsd.org/D34646

18 months agossh: remove VersionAddendum from list of client side config changes
Ed Maste [Mon, 14 Nov 2022 20:28:51 +0000 (15:28 -0500)]
ssh: remove VersionAddendum from list of client side config changes

Fixes: bffe60ead024 ("ssh: retire client VersionAddendum")
Sponsored by: The FreeBSD Foundation

18 months agobhyve: Simplify control flow in the xhci device model
Mark Johnston [Mon, 14 Nov 2022 20:08:45 +0000 (15:08 -0500)]
bhyve: Simplify control flow in the xhci device model

We only need to call pci_xhci_xfer_complete() when handling a transfer
to the control endpoint, so move that code into the epid == 1 block and
eliminate a goto.  Also remove an unneeded reinitialization of
setup_trb.

No functional change intended.

MFC after: 1 week
Reviewed by: corvink, jhb
Differential Revision: https://reviews.freebsd.org/D37287

18 months agovirtio: Silence a -Wunused warning
Mark Johnston [Mon, 14 Nov 2022 20:07:34 +0000 (15:07 -0500)]
virtio: Silence a -Wunused warning

Remove virtio_swap_endian().  htole*() are nops on little-endian
platforms.  No functional change intended.

MFC after: 1 week
Reviewed by: corvink, jhb
Differential Revision: https://reviews.freebsd.org/D37298

18 months agodhclient(8): Verify lease-, renewal- and rebinding-time option sizes.
Hans Petter Selasky [Mon, 14 Nov 2022 14:20:09 +0000 (15:20 +0100)]
dhclient(8): Verify lease-, renewal- and rebinding-time option sizes.

Else out-of-bound reads and undefined behaviour may happen.
The current code only checked for the presence of the first of four bytes.
Make sure the fields in question have the minium size required.

No functional change intended.

Reviewed by: rrs@
MFC after: 1 week
Sponsored by: NVIDIA Networking

18 months agobhyve: Fix a typo in a comment
Mark Johnston [Mon, 14 Nov 2022 14:00:06 +0000 (09:00 -0500)]
bhyve: Fix a typo in a comment

Reported by: Mikaël Urankar <mikael.urankar@mailo.fr>
Fixes: 719e307f80c7 ("bhyve: Cast away const when fetching a config nvlist")

18 months agoipfw: Spell PFIL_PASS correctly.
Dag-Erling Smørgrav [Sat, 12 Nov 2022 13:20:06 +0000 (14:20 +0100)]
ipfw: Spell PFIL_PASS correctly.

Sponsored by: Netapp
Sponsored by: Klara, Inc.
Differential Revision: https://reviews.freebsd.org/D37375

18 months agostress2: Added a new SU+J + snapshot test scenario
Peter Holm [Mon, 14 Nov 2022 11:03:57 +0000 (12:03 +0100)]
stress2: Added a new SU+J + snapshot test scenario

18 months agostress2: Exclude two "forced detach" tests and two SUJ + snapshot tests
Peter Holm [Mon, 14 Nov 2022 11:01:30 +0000 (12:01 +0100)]
stress2: Exclude two "forced detach" tests and two SUJ + snapshot tests

18 months agoif_ovpn: ensure we're in vnet context when calling sorele()
Kristof Provost [Thu, 10 Nov 2022 12:54:09 +0000 (13:54 +0100)]
if_ovpn: ensure we're in vnet context when calling sorele()

We reference count to ensure we don't release the socket while we still
have data in flight. That means that we can end up releasing the socket
from ovpn_encrypt_tx_cb().

We must have a vnet context set when calling sorele() (which asserts
this from within sofree()), so move the CURVNET_SET()/CURVNET_RESTORE()
to ensure this is the case.

While here also add a couple of assertions to make this more obvious,
and to ease future debugging.

Sponsored by: Rubicon Communications, LLC ("Netgate")
Differential Revision: https://reviews.freebsd.org/D37326

18 months agoRELNOTE: Document the removal of mta_start_script and othermta
Baptiste Daroussin [Mon, 14 Nov 2022 08:12:33 +0000 (09:12 +0100)]
RELNOTE: Document the removal of mta_start_script and othermta

18 months agoothermta: remove leftover from 20 years ago
Baptiste Daroussin [Mon, 14 Nov 2022 08:06:10 +0000 (09:06 +0100)]
othermta: remove leftover from 20 years ago

othermta (along with mta_start_script configuration entry in rc.conf)
was a mechanism used to be able to run another mta than sendmail(8) before
"rcng" time 20 years ago.

othermta has not been used since.

18 months agognu diff3: apply patch to committed src, rather than at build time
Ed Maste [Fri, 11 Nov 2022 19:48:40 +0000 (14:48 -0500)]
gnu diff3: apply patch to committed src, rather than at build time

This appears to be a leftover from the time we used a less-capable VCS.

Reviewed by: delphij
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D37368