]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
16 months agoMechanically convert if_sume(4) to IfAPI
Justin Hibbits [Tue, 1 Mar 2022 19:54:34 +0000 (13:54 -0600)]
Mechanically convert if_sume(4) to IfAPI

Reviewed by: zlei
Sponsored by: Juniper Networks, Inc.
Differential Revision: https://reviews.freebsd.org/D37808

16 months agoMechanically convert stge(4) to IfAPI
Justin Hibbits [Tue, 1 Mar 2022 19:51:27 +0000 (13:51 -0600)]
Mechanically convert stge(4) to IfAPI

Reviewed By: zlei, melifaro
Sponsored by: Juniper Networks, Inc.
Differential Revision: https://reviews.freebsd.org/D37807

16 months agoMechanically convert usb_ethernet(4) to IfAPI
Justin Hibbits [Tue, 1 Mar 2022 19:19:18 +0000 (13:19 -0600)]
Mechanically convert usb_ethernet(4) to IfAPI

Reviewed by: zlei
Sponsored by: Juniper Networks, Inc.
Differential Revision: https://reviews.freebsd.org/D37802

16 months agoMechanically convert if_xae to IfAPI
Justin Hibbits [Tue, 1 Mar 2022 17:00:21 +0000 (11:00 -0600)]
Mechanically convert if_xae to IfAPI

Reviewed by: zlei
Sponsored by: Juniper Networks, Inc.
Differential Revision: https://reviews.freebsd.org/D37797

16 months agoMechanically convert atse(4) to IfAPI
Justin Hibbits [Tue, 1 Mar 2022 16:28:01 +0000 (10:28 -0600)]
Mechanically convert atse(4) to IfAPI

Reviewed by: zlei
Sponsored by: Juniper Networks, Inc.
Differential Revision: https://reviews.freebsd.org/D37795

16 months agoOpenSSL: Regen manual pages for OpenSSL 1.1.1t
Jung-uk Kim [Tue, 7 Feb 2023 19:01:15 +0000 (14:01 -0500)]
OpenSSL: Regen manual pages for OpenSSL 1.1.1t

16 months agoOpenSSL: Regen assembly files for OpenSSL 1.1.1t
Jung-uk Kim [Tue, 7 Feb 2023 18:55:17 +0000 (13:55 -0500)]
OpenSSL: Regen assembly files for OpenSSL 1.1.1t

16 months agoOpenSSL: Merge OpenSSL 1.1.1t
Jung-uk Kim [Tue, 7 Feb 2023 18:54:16 +0000 (13:54 -0500)]
OpenSSL: Merge OpenSSL 1.1.1t

16 months agoOpenSSL: Merge OpenSSL 1.1.1t
Jung-uk Kim [Tue, 7 Feb 2023 18:51:38 +0000 (13:51 -0500)]
OpenSSL: Merge OpenSSL 1.1.1t
Merge commit '0d51f658515c605fcc4a8073cb5a8e0d7d904088'

16 months agotarfs: Silence warnings when no supported compression is enabled.
Dag-Erling Smørgrav [Tue, 7 Feb 2023 17:27:35 +0000 (18:27 +0100)]
tarfs: Silence warnings when no supported compression is enabled.

Some of the code in sys/fs/tarfs/tarfs_io.c is not specific to zstd, but is still only used when some form of decompression is enabled.  Put it behind #ifdef TARFS_ZIO to silence warnings.

Sponsored by: Juniper Networks, Inc.
Sponsored by: Klara, Inc.
Reviewed by: kib
Differential Revision: https://reviews.freebsd.org/D38415

16 months agoinpcb: immediately return matching pcb on lookup
Gleb Smirnoff [Tue, 7 Feb 2023 17:21:52 +0000 (09:21 -0800)]
inpcb: immediately return matching pcb on lookup

This saves a lot of CPU cycles if you got large connection table.

The code removed originates from 413628a7e3d, a very large changeset.
Discussed that with Bjoern, Jamie we can't recover why would we ever
have identical 4-tuples in the hash, even in the presence of jails.
Bjoern did a test that confirms that it is impossible to allocate an
identical connection from a jail to a host. Code review also confirms
that system shouldn't allow for such connections to exist.

With a lack of proper test suite we decided to take a risk and go
forward with removing that code.

Reviewed by: gallatin, bz, markj
Differential Revision: https://reviews.freebsd.org/D38015

16 months agotcp: use straight in_pcbconnect() in tcp_connect()
Gleb Smirnoff [Tue, 7 Feb 2023 17:21:52 +0000 (09:21 -0800)]
tcp: use straight in_pcbconnect() in tcp_connect()

This brings tcp_connect() par with tcp6_connect().  The code removed
now is a remnant of "truncating old TIME-WAIT" removed back in 2004
in c94c54e4df9a.

Reviewed by: markj, tuexen
Differential Revision: https://reviews.freebsd.org/D38405

16 months agoImport OpenSSL 1.1.1t
Jung-uk Kim [Tue, 7 Feb 2023 17:05:11 +0000 (12:05 -0500)]
Import OpenSSL 1.1.1t

16 months agolocal-unbound-setup: Use default root certificates
Tijl Coosemans [Thu, 19 Jan 2023 17:13:35 +0000 (18:13 +0100)]
local-unbound-setup: Use default root certificates

Don't force /etc/ssl/cert.pem.  It does not exist by default, only if
security/ca_root_nss is installed.  Just use the default OpenSSL search
locations which are /etc/ssl/cert.pem and /etc/ssl/certs/.

The tls-system-cert option was added in Unbound 1.16.0.

Reviewed by: zlei
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D38243

16 months agobsdlabel: Fix whitespace.
Dmitry Chagin [Tue, 7 Feb 2023 07:43:40 +0000 (10:43 +0300)]
bsdlabel: Fix whitespace.

MFC after: 1 week

16 months agobsdlabel: Remove a write-only variable.
Dmitry Chagin [Tue, 7 Feb 2023 07:43:18 +0000 (10:43 +0300)]
bsdlabel: Remove a write-only variable.

Since r149061 (2005) the total_size variable is write-only.

Differential Revision: https://reviews.freebsd.org/D38368
MFC after: 2 weeks

16 months agocxgbe T6 KTLS: Use intotcpcb().
John Baldwin [Tue, 7 Feb 2023 01:05:18 +0000 (17:05 -0800)]
cxgbe T6 KTLS: Use intotcpcb().

Fixes: e68b3792440c tcp: embed inpcb into tcpcb
Sponsored by: Chelsio Communications

16 months agossh: default X11Forwarding to no, following upstream
Ed Maste [Mon, 14 Nov 2022 20:24:54 +0000 (15:24 -0500)]
ssh: default X11Forwarding to no, following upstream

Administrators can enable it if required.

Reviewed by: bz, kevans
Relnotes: Yes
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D37411

16 months agoSkip if_wg regression tests if module doesn't exist
Olivier Cochard [Mon, 6 Feb 2023 23:06:48 +0000 (00:06 +0100)]
Skip if_wg regression tests if module doesn't exist

Approved by: jhb
Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D38406

16 months agousr.sbin/kbdcontrol.c: Add backwards compatibility functions
Stefan Eßer [Mon, 6 Feb 2023 22:56:44 +0000 (23:56 +0100)]
usr.sbin/kbdcontrol.c: Add backwards compatibility functions

This commit allows a kbdcontrol binary built with a version of kbio.h
that supports Unicode characters in dead key maps to load and display
keymaps including the dead key tables on a kernel built with a
previous version of kbio.h (that only supported 8 bit characters in
the dead key map).

This commit is meant as a temporary compatibility shim that will be
reverted when it can be assumed that all relevant systems have been
upgraded to a kernel that uses the updated kbio.h.

MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D38388

16 months agoSupport Unicode characters in keymap dead key tables
Stefan Eßer [Mon, 6 Feb 2023 22:48:47 +0000 (23:48 +0100)]
Support Unicode characters in keymap dead key tables

Support for Unicode characters had been added to the keyboard code,
but there are keymaps that have accented characters accessed via dead
key combinations, and those were still restricted to 8 bit codes.

This update to kbd.c adds support for Unicode characters and
compatibility code that allows a kbdcontrol command built from kbio.h
without these patches to work on a new kernel.

Compatibility code that allows a new kbdcontrol binary running on an
old kernel to load and display the dead key map will be committed in a
separate commit.

Reviewed by: imp, brooks
Approved by: brooks
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D38381

16 months agoirdma(4): Add code for compilation on stable/13 branch
Bartosz Sobczak [Mon, 6 Feb 2023 22:37:39 +0000 (14:37 -0800)]
irdma(4): Add code for compilation on stable/13 branch

Current content of the irdma(4) driver consists only of code that is
compilable on current 14-CURRENT branch which makes it impossible to
merge into stable/13 branch because of missing dependencies in the ofed
tree.

This patch adds missing code that allows for merging into stable branch.
Once it is there, code relating only to version 14 or higher should be
removed.

Signed-off-by: Eric Joyner <erj@FreeBSD.org>
Reviewed by: erj@
MFC after: 1 day
Sponsored by: Intel Corporation
Differential Revision: https://reviews.freebsd.org/D38170

16 months agoem(4): Add IDs for new Intel(R) I219 devices
Piotr Kubaj [Mon, 6 Feb 2023 22:31:00 +0000 (14:31 -0800)]
em(4): Add IDs for new Intel(R) I219 devices

These include I219 (20) through I219 (23), which ends at Raptor Lake.

This also corrects a discrepancy where the (16) devices should be
mac type "e1000_pch_tgp" and not "e1000_pch_adp".

Signed-off-by: Eric Joyner <erj@FreeBSD.org>
PR: 269224
Reviewed by: erj@
MFC after: 1 day
Relnotes: yes
Sponsored by: Intel Corporation
Differential Revision: https://reviews.freebsd.org/D38376

16 months agoamd64 pmap: patch up a comment in pmap_init_pv_table
Mateusz Guzik [Mon, 6 Feb 2023 22:33:28 +0000 (22:33 +0000)]
amd64 pmap: patch up a comment in pmap_init_pv_table

Requested by: jhb

16 months agoLinuxKPI: return an address string in pci_name()
Val Packett [Mon, 6 Feb 2023 21:50:13 +0000 (21:50 +0000)]
LinuxKPI: return an address string in pci_name()

amdgpu's virtual display feature uses pci_name() to match a module parameter
string, and the documentation shows an example of `0000:26:00.0` for the name.
In our case the name was just `drmn`, which is not actually unique across
devices.

The other consumers are wireless drivers, which will benefit from this
change.

Generate the expected string for pci_name() to return.

Related to: https://github.com/freebsd/drm-kmod/issues/134
Sponsored by: https://www.patreon.com/valpackett
Reviewed by: bz, hselasky, manu (earlier)
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D34248

16 months agossh: update to OpenSSH 9.2p1
Ed Maste [Mon, 6 Feb 2023 21:54:56 +0000 (16:54 -0500)]
ssh: update to OpenSSH 9.2p1

Release notes are available at https://www.openssh.com/txt/release-9.2

OpenSSH 9.2 contains fixes for two security problems and a memory safety
problem.  The memory safety problem is not believed to be exploitable.
These fixes have already been committed to OpenSSH 9.1 in FreeBSD.

Some other notable items from the release notes:

 * ssh(1): add a new EnableEscapeCommandline ssh_config(5) option that
   controls whether the client-side ~C escape sequence that provides a
   command-line is available. Among other things, the ~C command-line
   could be used to add additional port-forwards at runtime.

 * sshd(8): add support for channel inactivity timeouts via a new
   sshd_config(5) ChannelTimeout directive. This allows channels that
   have not seen traffic in a configurable interval to be
   automatically closed. Different timeouts may be applied to session,
   X11, agent and TCP forwarding channels.

 * sshd(8): add a sshd_config UnusedConnectionTimeout option to
   terminate client connections that have no open channels for a
   length of time. This complements the ChannelTimeout option above.

 * sshd(8): add a -V (version) option to sshd like the ssh client has.

 * scp(1), sftp(1): add a -X option to both scp(1) and sftp(1) to
   allow control over some SFTP protocol parameters: the copy buffer
   length and the number of in-flight requests, both of which are used
   during upload/download. Previously these could be controlled in
   sftp(1) only. This makes them available in both SFTP protocol
   clients using the same option character sequence.

 * ssh-keyscan(1): allow scanning of complete CIDR address ranges,
   e.g.  "ssh-keyscan 192.168.0.0/24". If a CIDR range is passed, then
   it will be expanded to all possible addresses in the range
   including the all-0s and all-1s addresses. bz#976

 * ssh(1): support dynamic remote port forwarding in escape
   command-line's -R processing. bz#3499

MFC after: 1 week
Sponsored by: The FreeBSD Foundation

16 months agoccr,ccp: Fix argument order to sglist_append_vmpages.
John Baldwin [Mon, 6 Feb 2023 21:51:57 +0000 (13:51 -0800)]
ccr,ccp: Fix argument order to sglist_append_vmpages.

The offset comes before the byte count.

Reported by: br
Reviewed by: asomers, markj
MFC after: 1 week
Sponsored by: DARPA
Differential Revision: https://reviews.freebsd.org/D38375

16 months agocontrib/bc: uodate to version 6.2.4
Stefan Eßer [Mon, 6 Feb 2023 21:33:56 +0000 (22:33 +0100)]
contrib/bc: uodate to version 6.2.4

This update contains only documentation changes (new main repository
URL and changed mail address of the program author) and changes to
the build system that do not affect the FreeBSD base system build.

MFC after: 3 days

16 months agoenic: convert to IfAPI
Doug Ambrisko [Mon, 6 Feb 2023 21:17:15 +0000 (13:17 -0800)]
enic: convert to IfAPI

Prompted by: jhibbits

16 months agoFix _REVISION to be always major.minor
Eugene M. Kim [Fri, 11 Mar 2022 04:32:00 +0000 (20:32 -0800)]
Fix _REVISION to be always major.minor

Introduced in commit 613fe53, _REVISION was redefined to be just the
major version (14) instead of major.minor (14.0) iff:

  - PKG_VERSION was not overridden (default), and
  - Branch was -CURRENT, -STABLE, or -PRERELEASE.

This introduced side effects in other parts of the code which expected
_REVISION to be major.minor:

  - make-pkg-package.sh target triple became amd64-portbld-freebsd14
    (should be amd64-portbld-freebsd14.0);
  - Versioned cross dev symlink name became amd64-freebsd14-<tool>
    (should be amd64-freebsd14.0-<tool>)

Also, compounded with commit ea9a92d (which was introduced afterward
and removed minor version from _REVISION incorrectly using :S with a
regex) this also caused pkgbase repo to use a wrong PKG_ABI with a minor
version (FreeBSD:14.0:amd64) when a custom PKG_VERSION was specified.
(Note, without a custom PKG_VERSION the bug was not triggered because in
that case _REVISION was already major-only.)

This commit fixes both problems by introducing and using MAJOR_REVISION
instead of redefining _REVISION.  Existing uses of _REVISION now see
major.minor again, except PKG_ABI (ex: FreeBSD:14:amd64, as described
above) and PKG_VERSION (ex: 14.snap20220311121531) need only the major
version and now use MAJOR_REVISION instead.

PR: 262600, 262601
Reviewed by: imp, emaste
Pull Request: https://github.com/freebsd/freebsd-src/pull/592

16 months agomge(4): Fix build after IfAPI conversion
Justin Hibbits [Mon, 6 Feb 2023 20:45:02 +0000 (15:45 -0500)]
mge(4): Fix build after IfAPI conversion

Fixes: 98fe10c8fc08
Sponsored by: Juniper Networks, Inc.

16 months agosbni(4): Fix i386 build
Justin Hibbits [Mon, 6 Feb 2023 20:41:20 +0000 (15:41 -0500)]
sbni(4): Fix i386 build

Fixes: 3fba06ad
Sponsored by: Juniper Networks, Inc.

16 months agodb_printf: fix a typo
Maxim Konovalov [Mon, 6 Feb 2023 20:41:05 +0000 (20:41 +0000)]
db_printf: fix a typo

PR: 269377

16 months agomd5/tests: extend md5 test
Stefan Eßer [Mon, 6 Feb 2023 20:11:51 +0000 (21:11 +0100)]
md5/tests: extend md5 test

The testloop function is called with various parameters, but those
were ignored in the coreutils-c-test script. This was an oversight
and is fixed by passing the option to all invocations of the hash
functions in this test script.

Reported by: des
MFC after: 3 days

16 months agotsec(4): Fix the build from IfAPI conversion
Justin Hibbits [Mon, 6 Feb 2023 20:21:34 +0000 (15:21 -0500)]
tsec(4): Fix the build from IfAPI conversion

Fixes: 47842ecfe
Sponsored by: Juniper Networks, Inc.

16 months agolibdtrace: add riscv support
Mitchell Horne [Tue, 10 Jan 2023 15:50:00 +0000 (11:50 -0400)]
libdtrace: add riscv support

Largely untested, as we can't really do anything with user probes
without an implementation of fasttrap. However, this is enough to
generate an embedded dtrace program with `dtrace -G` and link the
generated ELF file.

Reviewed by: markj
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D38301

16 months agolibdtrace: drop remaining mips support
Mitchell Horne [Mon, 6 Feb 2023 18:20:45 +0000 (14:20 -0400)]
libdtrace: drop remaining mips support

Reviewed by: markj
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D38300

16 months agodtrace: implement riscv dtrace_getustackdepth()
Mitchell Horne [Mon, 6 Feb 2023 18:23:42 +0000 (14:23 -0400)]
dtrace: implement riscv dtrace_getustackdepth()

Pretty trivial following other implementations. The existing
dtrace_getustack_common() does most of the work.

Reviewed by: markj
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D38303

16 months agodtrace: Fix RISC-V user stack unwinder
Jessica Clarke [Mon, 6 Feb 2023 18:30:57 +0000 (14:30 -0400)]
dtrace: Fix RISC-V user stack unwinder

The unwind logic was copied from AArch64 which follows the peculiar
AACPS (where, unlike typical RISC architectures, its frame pointer
follows an x86/stack machine-like convention where the frame pointer
points at the bottom of the frame record, not the top). Delete the
pointless riscv_frame struct and fix this.

Reviewed by: mhorne
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D28054

16 months agodtrace: handle page faults in riscv dtrace_trap()
Mitchell Horne [Mon, 6 Feb 2023 18:08:35 +0000 (14:08 -0400)]
dtrace: handle page faults in riscv dtrace_trap()

We must detect the correct amount to increment sepc, as it may have been
a compressed instruction that triggered the fault.

Reviewed by: markj
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D38299

16 months agodtrace_asm.S: properly enter/exit user access
Mitchell Horne [Mon, 6 Feb 2023 18:04:21 +0000 (14:04 -0400)]
dtrace_asm.S: properly enter/exit user access

In order to read or write userspace memory without generating an access
fault, we must first enable the SUM bit in the sstatus CSR.

Reviewed by: markj
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D38298

16 months agoAllow sysctl hw.machine/hw.machine_arch in capability mode
Val Packett [Sun, 5 Feb 2023 20:52:50 +0000 (17:52 -0300)]
Allow sysctl hw.machine/hw.machine_arch in capability mode

There's no harm in reading strings like 'amd64'.

Reviewed by: emaste, manu
Sponsored by: https://www.patreon.com/valpackett
Differential Revision: https://reviews.freebsd.org/D28703

16 months agoRemove Doxyfiles for recently removed drivers.
Justin Hibbits [Mon, 6 Feb 2023 18:08:37 +0000 (13:08 -0500)]
Remove Doxyfiles for recently removed drivers.

16 months agoRemove gxemul drivers.
Justin Hibbits [Mon, 6 Feb 2023 18:06:25 +0000 (13:06 -0500)]
Remove gxemul drivers.

These were MIPS-only.

16 months agoMechanically convert mxge(4) to IfAPI
Justin Hibbits [Mon, 19 Sep 2022 20:41:35 +0000 (16:41 -0400)]
Mechanically convert mxge(4) to IfAPI

Reviewed by: gallatin
Sponsored by: Juniper Networks, Inc.
Differential Revision: https://reviews.freebsd.org/D37848

16 months agoMechanically convert sge(4) to IfAPI
Justin Hibbits [Wed, 17 Aug 2022 20:14:43 +0000 (16:14 -0400)]
Mechanically convert sge(4) to IfAPI

Sponsored by: Juniper Networks, Inc.
Differential Revision: https://reviews.freebsd.org/D37816

16 months agoMechanically convert age(4), alc(4), and ale(4) to IfAPI
Justin Hibbits [Tue, 2 Nov 2021 14:17:56 +0000 (09:17 -0500)]
Mechanically convert age(4), alc(4), and ale(4) to IfAPI

Sponsored by: Juniper Networks, Inc.
Differential Revision: https://reviews.freebsd.org/D37787

16 months agoMechanically convert al_eth(4) to IfAPI
Justin Hibbits [Fri, 19 Aug 2022 16:05:38 +0000 (12:05 -0400)]
Mechanically convert al_eth(4) to IfAPI

Sponsored by: Juniper Networks, Inc.
Differential Revision: https://reviews.freebsd.org/D37834

16 months agoMechanically convert dc(4) to IfAPI
Justin Hibbits [Mon, 19 Sep 2022 21:00:41 +0000 (17:00 -0400)]
Mechanically convert dc(4) to IfAPI

Sponsored by: Juniper Networks, Inc.
Differential Revision: https://reviews.freebsd.org/D37852

16 months agoMechanically convert nge(4) to IfAPI
Justin Hibbits [Tue, 1 Mar 2022 20:02:58 +0000 (14:02 -0600)]
Mechanically convert nge(4) to IfAPI

Sponsored by: Juniper Networks, Inc.
Differential Revision: https://reviews.freebsd.org/D37811

16 months agoMechanically convert if_my(4) to IfAPI
Justin Hibbits [Mon, 19 Sep 2022 20:38:53 +0000 (16:38 -0400)]
Mechanically convert if_my(4) to IfAPI

Sponsored by: Juniper Networks, Inc.
Differential Revision: https://reviews.freebsd.org/D37847

16 months agoMechanically convert msk(4) to IfAPI
Justin Hibbits [Fri, 19 Aug 2022 15:53:14 +0000 (11:53 -0400)]
Mechanically convert msk(4) to IfAPI

Sponsored by: Juniper Networks, Inc.
Differential Revision: https://reviews.freebsd.org/D37830

16 months agoMechanically convert ic(4) to IfAPI
Justin Hibbits [Mon, 19 Sep 2022 20:53:12 +0000 (16:53 -0400)]
Mechanically convert ic(4) to IfAPI

Sponsored by: Juniper Networks, Inc.
Differential Revision: https://reviews.freebsd.org/D37851

16 months agoMechanically convert bce(4) to IfAPI
Justin Hibbits [Fri, 19 Aug 2022 19:15:44 +0000 (15:15 -0400)]
Mechanically convert bce(4) to IfAPI

Sponsored by: Juniper Networks, Inc.
Differential Revision: https://reviews.freebsd.org/D37841

16 months agoMechanically convert le(4) to IfAPI
Justin Hibbits [Fri, 19 Aug 2022 16:00:48 +0000 (12:00 -0400)]
Mechanically convert le(4) to IfAPI

Sponsored by: Juniper Networks, Inc.
Differential Revision: https://reviews.freebsd.org/D37831

16 months agoMechanically convert sk(4) to IfAPI
Justin Hibbits [Wed, 17 Aug 2022 20:25:16 +0000 (16:25 -0400)]
Mechanically convert sk(4) to IfAPI

Sponsored by: Juniper Networks, Inc.
Differential Revision: https://reviews.freebsd.org/D37818

16 months agoMechanically convert smc(4) to IfAPI
Justin Hibbits [Wed, 17 Aug 2022 20:33:46 +0000 (16:33 -0400)]
Mechanically convert smc(4) to IfAPI

Sponsored by: Juniper Networks, Inc.
Differential Revision: https://reviews.freebsd.org/D37824

16 months agoMechanically convert sis(4) to IfAPI
Justin Hibbits [Wed, 17 Aug 2022 20:41:35 +0000 (16:41 -0400)]
Mechanically convert sis(4) to IfAPI

Sponsored by: Juniper Networks, Inc.
Differential Revision: https://reviews.freebsd.org/D37826

16 months agoMechanically convert lge(4) to IfAPI
Justin Hibbits [Fri, 19 Aug 2022 19:11:28 +0000 (15:11 -0400)]
Mechanically convert lge(4) to IfAPI

Sponsored by: Juniper Networks, Inc.
Differential Revision: https://reviews.freebsd.org/D37838

16 months agoMechanically convert jme(4) to IfAPI
Justin Hibbits [Fri, 19 Aug 2022 19:13:06 +0000 (15:13 -0400)]
Mechanically convert jme(4) to IfAPI

Sponsored by: Juniper Networks, Inc.
Differential Revision: https://reviews.freebsd.org/D37839

16 months agoMechanically convert fwe(4) and fwip(4) to IfAPI
Justin Hibbits [Mon, 19 Sep 2022 20:50:42 +0000 (16:50 -0400)]
Mechanically convert fwe(4) and fwip(4) to IfAPI

Sponsored by: Juniper Networks, Inc.
Differential Revision: https://reviews.freebsd.org/D37850

16 months agoMechanically convert sbni(4) to IfAPI
Justin Hibbits [Wed, 17 Aug 2022 20:29:52 +0000 (16:29 -0400)]
Mechanically convert sbni(4) to IfAPI

Sponsored by: Juniper Networks, Inc.
Differential Revision: https://reviews.freebsd.org/D37822

16 months agoMechanically convert if_et(4) to IfAPI
Justin Hibbits [Tue, 1 Mar 2022 19:58:43 +0000 (13:58 -0600)]
Mechanically convert if_et(4) to IfAPI

Sponsored by: Juniper Networks, Inc.
Differential Revision: https://reviews.freebsd.org/D37810

16 months agoMechanically convert if_vge(4) to IfAPI
Justin Hibbits [Tue, 1 Mar 2022 17:54:37 +0000 (11:54 -0600)]
Mechanically convert if_vge(4) to IfAPI

Sponsored by: Juniper Networks, Inc.
Differential Revision: https://reviews.freebsd.org/D37801

16 months agoMechanically convert if_rl(4) to IfAPI
Justin Hibbits [Tue, 1 Mar 2022 19:21:11 +0000 (13:21 -0600)]
Mechanically convert if_rl(4) to IfAPI

Sponsored by: Juniper Networks, Inc.
Differential Revision: https://reviews.freebsd.org/D37803

16 months agoMechanically convert if_vr(4) to IfAPI
Justin Hibbits [Tue, 1 Mar 2022 17:01:23 +0000 (11:01 -0600)]
Mechanically convert if_vr(4) to IfAPI

Sponsored by: Juniper Networks, Inc.
Differential Revision: https://reviews.freebsd.org/D37798

16 months agoMechanically convert if_vte(4) to IfAPI
Justin Hibbits [Tue, 1 Mar 2022 16:32:00 +0000 (10:32 -0600)]
Mechanically convert if_vte(4) to IfAPI

Sponsored by: Juniper Networks, Inc.
Differential Revision: https://reviews.freebsd.org/D37796

16 months agoMechanically convert if_ste(4) to IfAPI
Justin Hibbits [Tue, 1 Mar 2022 16:12:03 +0000 (10:12 -0600)]
Mechanically convert if_ste(4) to IfAPI

Sponsored by: Juniper Networks, Inc.
Differential Revision: https://reviews.freebsd.org/D37794

16 months agoMechanically convert if_bfe(4) to IfAPI
Justin Hibbits [Fri, 25 Feb 2022 22:36:48 +0000 (16:36 -0600)]
Mechanically convert if_bfe(4) to IfAPI

Sponsored by: Juniper Networks, Inc.
Differential Revision: https://reviews.freebsd.org/D37791

16 months agoMechanically convert if_ti(4) to IfAPI
Justin Hibbits [Tue, 1 Mar 2022 19:50:19 +0000 (13:50 -0600)]
Mechanically convert if_ti(4) to IfAPI

Sponsored by: Juniper Networks, Inc.
Differential Revision: https://reviews.freebsd.org/D37806

16 months agoMechanically convert if_plip(4) to IfAPI
Justin Hibbits [Mon, 26 Sep 2022 14:33:20 +0000 (10:33 -0400)]
Mechanically convert if_plip(4) to IfAPI

Sponsored by: Juniper Networks, Inc.
Differential Revision: https://reviews.freebsd.org/D37854

16 months agoMechanically convert iwi(4) and iwn(4) to IfAPI
Justin Hibbits [Mon, 19 Sep 2022 20:47:17 +0000 (16:47 -0400)]
Mechanically convert iwi(4) and iwn(4) to IfAPI

Sponsored by: Juniper Networks, Inc.
Differential Revision: https://reviews.freebsd.org/D37849

16 months agoMechanically convert ae(4) to IfAPI
Justin Hibbits [Tue, 26 Oct 2021 16:45:58 +0000 (11:45 -0500)]
Mechanically convert ae(4) to IfAPI

Sponsored by: Juniper Networks, Inc.
Differential Revision: https://reviews.freebsd.org/D37786

16 months agoMechanically convert if_tsec(4) to IfAPI
Justin Hibbits [Tue, 1 Mar 2022 19:49:10 +0000 (13:49 -0600)]
Mechanically convert if_tsec(4) to IfAPI

Sponsored by: Juniper Networks, Inc.
Differential Revision: https://reviews.freebsd.org/D37805

16 months agoath(4) IfAPI fixups
Justin Hibbits [Tue, 24 Jan 2023 20:59:46 +0000 (15:59 -0500)]
ath(4) IfAPI fixups

Use the if_getcounter() IfAPI instead of accessing the ifnet directly.

Sponsored by: Juniper Networks, Inc.

16 months agoIfAPI: use IfAPI in mbuf
Justin Hibbits [Wed, 1 Feb 2023 15:26:20 +0000 (10:26 -0500)]
IfAPI: use IfAPI in mbuf

Sponsored by: Juniper Networks, Inc.

16 months agoIfAPI: Add needed APIs for mbuf support
Justin Hibbits [Wed, 1 Feb 2023 14:56:34 +0000 (09:56 -0500)]
IfAPI: Add needed APIs for mbuf support

Summary:
Add 2 new APIs for supporting recent mbuf changes:
36e0a362ac added the m_snd_tag_alloc() wrapper around
  if_snd_tag_alloc().  Push this down to the ifnet level.
4d7a1361ef adds the m_rcvif_serialize()/m_rcvif_restore() KPIs to
  serialize and restore an ifnet pointer.  Add the necessary wrapper to
  get the index generation for this.

Reviewed By: jhb
Sponsored by: Juniper Networks, Inc.
Differential Revision: https://reviews.freebsd.org/D38340

16 months agoenic: Cleanup module Makefile
Doug Ambrisko [Mon, 6 Feb 2023 17:25:12 +0000 (09:25 -0800)]
enic: Cleanup module Makefile

Remove debug flags, old FreeBSD tag info and old include info.

16 months agossh: Be more paranoid with host/domain names coming from the
Ed Maste [Mon, 6 Feb 2023 16:45:52 +0000 (11:45 -0500)]
ssh: Be more paranoid with host/domain names coming from the

never write a name with bad characters to a known_hosts file.

replace recently-added valid_domain() check for hostnames going to
known_hosts with a more relaxed check for bad characters.

Obtained from: OpenSSH-portable commit 445363433ba2
Obtained from: OpenSSH-portable commit 3cae9f92a318
Sponsored by: The FreeBSD Foundation

16 months agolibmd / md5: Add SHA-512/224.
Dag-Erling Smørgrav [Mon, 6 Feb 2023 16:57:36 +0000 (17:57 +0100)]
libmd / md5: Add SHA-512/224.

While there, remove .Tn from man pages.

Also remove an obsolete comment about the 80386.

MFC after: 1 week
Sponsored by: Klara, Inc.
Reviewed by: kevans, allanjude
Differential Revision: https://reviews.freebsd.org/D38373

16 months agosha512_224: Fix SHA512_224_Final() on little-endian machines.
Sebastian Huber [Mon, 6 Feb 2023 16:57:28 +0000 (17:57 +0100)]
sha512_224: Fix SHA512_224_Final() on little-endian machines.

PR: 266863
MFC after: 1 week
Reviewed by: allanjude, cperciva, des
Differential Revision: https://reviews.freebsd.org/D38372

16 months agoenic: Cisco VIC driver
Doug Ambrisko [Fri, 27 Jan 2023 23:46:17 +0000 (15:46 -0800)]
enic: Cisco VIC driver

This driver is based of the enic (Cisco VIC) DPDK driver.  It provides
basic ethernet functionality.  Has been run with various VIC cards to
do UEFI PXE boot with NFS root.

16 months agossh: fix bug in PermitRemoteOpen which caused it to ignore...
Ed Maste [Mon, 6 Feb 2023 16:33:38 +0000 (11:33 -0500)]
ssh: fix bug in PermitRemoteOpen which caused it to ignore...

its first argument unless it was one of the special keywords "any" or
"none".

Obtained from: OpenSSH-portable commit b3daa8dc5823
Sponsored by: The FreeBSD Foundation

16 months agossh: fix double-free caused by compat_kex_proposal()
Ed Maste [Mon, 6 Feb 2023 16:26:08 +0000 (11:26 -0500)]
ssh: fix double-free caused by compat_kex_proposal()

Security: CVE-2023-25136
Obtained from: OpenSSH-portable commit 12da78233364
Sponsored by: The FreeBSD Foundation

16 months agotarfs: Remove unnecessary code.
Dag-Erling Smørgrav [Mon, 6 Feb 2023 16:24:32 +0000 (17:24 +0100)]
tarfs: Remove unnecessary code.

Reported by: kib
Sponsored by: Juniper Networks, Inc.
Sponsored by: Klara, Inc.
Reviewed by: kib
Differential Revision: https://reviews.freebsd.org/D38401

16 months agotarfs: Terminate dirents before copying them out.
Dag-Erling Smørgrav [Mon, 6 Feb 2023 16:24:27 +0000 (17:24 +0100)]
tarfs: Terminate dirents before copying them out.

Reported by: markj
Sponsored by: Juniper Networks, Inc.
Sponsored bu: Klara, Inc.
Reviewed by: kib
Differential Revision: https://reviews.freebsd.org/D38400

16 months agotarfs: Fix typo in man page.
Dag-Erling Smørgrav [Mon, 6 Feb 2023 16:24:17 +0000 (17:24 +0100)]
tarfs: Fix typo in man page.

Reported by: ceri
Sponsored by: Junpier Networks, Inc.
Sponsored by: Klara, Inc.
Reviewed by: pstef
Differential Revision: https://reviews.freebsd.org/D38399

16 months agolinux(4): Attach netlink on i386.
Dmitry Chagin [Mon, 6 Feb 2023 14:00:44 +0000 (17:00 +0300)]
linux(4): Attach netlink on i386.

Discussed with: melifaro
MFC after: 3 days

16 months agolibedit: update to snapshot 2023-01-06
Baptiste Daroussin [Mon, 6 Feb 2023 13:25:06 +0000 (14:25 +0100)]
libedit: update to snapshot 2023-01-06

MFC atfer: 1 week

16 months agolibedit: import version 2023-02-06
Baptiste Daroussin [Mon, 6 Feb 2023 11:46:20 +0000 (12:46 +0100)]
libedit: import version 2023-02-06

17 months agostress2: Return error on exit. Run test for longer
Peter Holm [Mon, 6 Feb 2023 10:09:52 +0000 (11:09 +0100)]
stress2: Return error on exit.  Run test for longer

17 months agoSkip EFI framebuffer information if there is none
Simon J. Gerraty [Mon, 6 Feb 2023 01:23:09 +0000 (17:23 -0800)]
Skip EFI framebuffer information if there is none

Avoid several lines of useless info if there is no EFI framebuffer

Reviewed by: stevek, imp
Differential Revision: https://reviews.freebsd.org/D38393

17 months agokern.post.mk we need .MAKE.DEPENDFILE for DIRDEPS_BUILD
Simon J. Gerraty [Sun, 5 Feb 2023 22:50:31 +0000 (14:50 -0800)]
kern.post.mk we need .MAKE.DEPENDFILE for DIRDEPS_BUILD

When MK_DIRDEPS_BUILD is yes, we need .MAKE.DEPENDFILE left
alone

Reviewed by: stevek

17 months agoLinuxKPI: PCI: implement support for more than 1 MSI vector
Bjoern A. Zeeb [Fri, 27 Jan 2023 15:34:42 +0000 (15:34 +0000)]
LinuxKPI: PCI: implement support for more than 1 MSI vector

Following e9715b1c4474333ff119aba3a9a74bff91f72372 and
4b56afaf7bf4fa37bae5b26fd93ee1ff5969c1bb, implement support
for up-to 32 MSI vectors.  This is used by wireless drivers.
This also switches msi_desc to an array in order to store
per-vector information.

Sponsored by: The FreeBSD Foundation
Discussed with: grehan (in Dec)
MFC after: 3 days
Reviewed by: jhb
Differential Revision: https://reviews.freebsd.org/D38222

17 months agoLinuxKPI: const argument to irq_set_affinity_hint()
Bjoern A. Zeeb [Sat, 28 Jan 2023 16:15:19 +0000 (16:15 +0000)]
LinuxKPI: const argument to irq_set_affinity_hint()

irq_set_affinity_hint() takes a const mask argument and some drivers
pass it in as such where earlier implementations were more lenient.
Deal with it and __DECONST() the argument when passed to intr_setaffinity().

Sponsored by: The FreeBSD Foundation
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D38242

17 months agoLinuxKPI: interrupt.h: add disable_irq_nosync(), irq_set_status_flags()
Bjoern A. Zeeb [Sat, 28 Jan 2023 16:11:59 +0000 (16:11 +0000)]
LinuxKPI: interrupt.h: add disable_irq_nosync(), irq_set_status_flags()

Add a dummy irq_set_status_flags() along with #defines passed by the driver.
Add disable_irq_nosync() as another wrapper to lkpi_disable_irq().
Those are used by wireless drivers.

Sponsored by: The FreeBSD Foundation
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D38241

17 months agoLinuxKPI: pm.h: add dummy pm_wakeup_event()
Bjoern A. Zeeb [Sat, 28 Jan 2023 15:53:03 +0000 (15:53 +0000)]
LinuxKPI: pm.h: add dummy pm_wakeup_event()

Add a dummy implementation of pm_wakeup_event() which is used to notify
the power management system about a wakeup (which we currently do not
implement yet).

Sponsored by: The FreeBSD Foundation
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D38239

17 months agoLinuxKPI: device: add device_set_wakeup_enable()
Bjoern A. Zeeb [Sat, 28 Jan 2023 15:18:24 +0000 (15:18 +0000)]
LinuxKPI: device: add device_set_wakeup_enable()

Add a dummy device_set_wakeup_enable() which is used for WoWLAN which we
do not (yet) support and device_wakeup_enable() which is a wrapper to the
former with the enable argument being true.

Sponsored by: The FreeBSD Foundation
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D38238

17 months agoLinuxKPI: add more dummy header files
Bjoern A. Zeeb [Sun, 29 Jan 2023 18:16:00 +0000 (18:16 +0000)]
LinuxKPI: add more dummy header files

Add more empty header files wireless drivers try to include but
we do not (yet) need for any implementation.

Sponsored by: The FreeBSD Foundation
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D38271

17 months agoLinuxKPI: dummy: remove files which have implementation
Bjoern A. Zeeb [Sun, 29 Jan 2023 17:52:15 +0000 (17:52 +0000)]
LinuxKPI: dummy: remove files which have implementation

Remove former dummy/ files which now have an actual implementation
in common/ .

Sponsored by: The FreeBSD Foundation
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D38269