Commit Graph

281148 Commits

Author SHA1 Message Date
Ed Maste
f374ba41f5 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
2023-02-06 16:54:56 -05:00
John Baldwin
70efe1a2fe 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
2023-02-06 13:51:57 -08:00
Stefan Eßer
4fca8e0f65 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
2023-02-06 22:33:56 +01:00
Doug Ambrisko
bbd354cb23 enic: convert to IfAPI
Prompted by:	jhibbits
2023-02-06 13:19:48 -08:00
Eugene M. Kim
a1e3fb8fa0 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
2023-02-06 14:02:32 -07:00
Justin Hibbits
96ab5e7199 mge(4): Fix build after IfAPI conversion
Fixes:		98fe10c8fc
Sponsored by:	Juniper Networks, Inc.
2023-02-06 15:56:22 -05:00
Justin Hibbits
932370ddd4 sbni(4): Fix i386 build
Fixes:		3fba06ad
Sponsored by:	Juniper Networks, Inc.
2023-02-06 15:56:22 -05:00
Maxim Konovalov
fb8f221aeb db_printf: fix a typo
PR:	269377
2023-02-06 20:41:05 +00:00
Stefan Eßer
d804497068 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
2023-02-06 21:25:44 +01:00
Justin Hibbits
d8b78838c5 tsec(4): Fix the build from IfAPI conversion
Fixes:		47842ecfe
Sponsored by:	Juniper Networks, Inc.
2023-02-06 15:23:52 -05:00
Mitchell Horne
f711d5c3d0 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
2023-02-06 15:26:53 -04:00
Mitchell Horne
2166649fa1 libdtrace: drop remaining mips support
Reviewed by:	markj
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D38300
2023-02-06 15:26:53 -04:00
Mitchell Horne
c6943b44f7 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
2023-02-06 15:26:53 -04:00
Jessica Clarke
3872010732 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
2023-02-06 15:26:53 -04:00
Mitchell Horne
06faad1de2 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
2023-02-06 15:26:53 -04:00
Mitchell Horne
0e563bde48 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
2023-02-06 15:26:53 -04:00
Val Packett
4a1c4de232 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
2023-02-06 14:00:52 -05:00
Justin Hibbits
61593cb297 Remove Doxyfiles for recently removed drivers. 2023-02-06 13:20:40 -05:00
Justin Hibbits
655d043b49 Remove gxemul drivers.
These were MIPS-only.
2023-02-06 13:06:25 -05:00
Justin Hibbits
93037a67bf Mechanically convert mxge(4) to IfAPI
Reviewed by:	gallatin
Sponsored by:	Juniper Networks, Inc.
Differential Revision: https://reviews.freebsd.org/D37848
2023-02-06 12:52:46 -05:00
Justin Hibbits
e948d066fa Mechanically convert sge(4) to IfAPI
Sponsored by:	Juniper Networks, Inc.
Differential Revision: https://reviews.freebsd.org/D37816
2023-02-06 12:32:14 -05:00
Justin Hibbits
5243641267 Mechanically convert age(4), alc(4), and ale(4) to IfAPI
Sponsored by:	Juniper Networks, Inc.
Differential Revision: https://reviews.freebsd.org/D37787
2023-02-06 12:32:14 -05:00
Justin Hibbits
bc14c73b7b Mechanically convert al_eth(4) to IfAPI
Sponsored by:	Juniper Networks, Inc.
Differential Revision: https://reviews.freebsd.org/D37834
2023-02-06 12:32:13 -05:00
Justin Hibbits
91f3f3fc71 Mechanically convert dc(4) to IfAPI
Sponsored by:	Juniper Networks, Inc.
Differential Revision: https://reviews.freebsd.org/D37852
2023-02-06 12:32:13 -05:00
Justin Hibbits
76cb2c1ce0 Mechanically convert nge(4) to IfAPI
Sponsored by:	Juniper Networks, Inc.
Differential Revision: https://reviews.freebsd.org/D37811
2023-02-06 12:32:13 -05:00
Justin Hibbits
12d29e1568 Mechanically convert if_my(4) to IfAPI
Sponsored by:	Juniper Networks, Inc.
Differential Revision: https://reviews.freebsd.org/D37847
2023-02-06 12:32:12 -05:00
Justin Hibbits
5ab8c4b836 Mechanically convert msk(4) to IfAPI
Sponsored by:	Juniper Networks, Inc.
Differential Revision: https://reviews.freebsd.org/D37830
2023-02-06 12:32:12 -05:00
Justin Hibbits
da247e0dac Mechanically convert ic(4) to IfAPI
Sponsored by:	Juniper Networks, Inc.
Differential Revision: https://reviews.freebsd.org/D37851
2023-02-06 12:32:12 -05:00
Justin Hibbits
0292389aca Mechanically convert bce(4) to IfAPI
Sponsored by:	Juniper Networks, Inc.
Differential Revision: https://reviews.freebsd.org/D37841
2023-02-06 12:32:11 -05:00
Justin Hibbits
df40efe17a Mechanically convert le(4) to IfAPI
Sponsored by:	Juniper Networks, Inc.
Differential Revision: https://reviews.freebsd.org/D37831
2023-02-06 12:32:11 -05:00
Justin Hibbits
ccfbf57f83 Mechanically convert sk(4) to IfAPI
Sponsored by:	Juniper Networks, Inc.
Differential Revision: https://reviews.freebsd.org/D37818
2023-02-06 12:32:11 -05:00
Justin Hibbits
8c259c5048 Mechanically convert smc(4) to IfAPI
Sponsored by:	Juniper Networks, Inc.
Differential Revision: https://reviews.freebsd.org/D37824
2023-02-06 12:32:10 -05:00
Justin Hibbits
1125d09363 Mechanically convert sis(4) to IfAPI
Sponsored by:	Juniper Networks, Inc.
Differential Revision: https://reviews.freebsd.org/D37826
2023-02-06 12:32:10 -05:00
Justin Hibbits
08e67568b0 Mechanically convert lge(4) to IfAPI
Sponsored by:	Juniper Networks, Inc.
Differential Revision: https://reviews.freebsd.org/D37838
2023-02-06 12:32:10 -05:00
Justin Hibbits
59dc03deec Mechanically convert jme(4) to IfAPI
Sponsored by:	Juniper Networks, Inc.
Differential Revision: https://reviews.freebsd.org/D37839
2023-02-06 12:32:09 -05:00
Justin Hibbits
61c05f13d2 Mechanically convert fwe(4) and fwip(4) to IfAPI
Sponsored by:	Juniper Networks, Inc.
Differential Revision: https://reviews.freebsd.org/D37850
2023-02-06 12:32:09 -05:00
Justin Hibbits
3fba06ad13 Mechanically convert sbni(4) to IfAPI
Sponsored by:	Juniper Networks, Inc.
Differential Revision: https://reviews.freebsd.org/D37822
2023-02-06 12:32:09 -05:00
Justin Hibbits
7c509be1c6 Mechanically convert if_et(4) to IfAPI
Sponsored by:	Juniper Networks, Inc.
Differential Revision: https://reviews.freebsd.org/D37810
2023-02-06 12:32:08 -05:00
Justin Hibbits
3ac0cb328a Mechanically convert if_vge(4) to IfAPI
Sponsored by:	Juniper Networks, Inc.
Differential Revision: https://reviews.freebsd.org/D37801
2023-02-06 12:32:08 -05:00
Justin Hibbits
ac8e2243b8 Mechanically convert if_rl(4) to IfAPI
Sponsored by:	Juniper Networks, Inc.
Differential Revision: https://reviews.freebsd.org/D37803
2023-02-06 12:32:08 -05:00
Justin Hibbits
0d1025348b Mechanically convert if_vr(4) to IfAPI
Sponsored by:	Juniper Networks, Inc.
Differential Revision: https://reviews.freebsd.org/D37798
2023-02-06 12:32:07 -05:00
Justin Hibbits
3486b83504 Mechanically convert if_vte(4) to IfAPI
Sponsored by:	Juniper Networks, Inc.
Differential Revision: https://reviews.freebsd.org/D37796
2023-02-06 12:32:07 -05:00
Justin Hibbits
6712df3ab0 Mechanically convert if_ste(4) to IfAPI
Sponsored by:	Juniper Networks, Inc.
Differential Revision: https://reviews.freebsd.org/D37794
2023-02-06 12:32:07 -05:00
Justin Hibbits
c0e5e270a5 Mechanically convert if_bfe(4) to IfAPI
Sponsored by:	Juniper Networks, Inc.
Differential Revision: https://reviews.freebsd.org/D37791
2023-02-06 12:32:06 -05:00
Justin Hibbits
de17d6f9a6 Mechanically convert if_ti(4) to IfAPI
Sponsored by:	Juniper Networks, Inc.
Differential Revision: https://reviews.freebsd.org/D37806
2023-02-06 12:32:06 -05:00
Justin Hibbits
2568cd2ae9 Mechanically convert if_plip(4) to IfAPI
Sponsored by:	Juniper Networks, Inc.
Differential Revision: https://reviews.freebsd.org/D37854
2023-02-06 12:32:06 -05:00
Justin Hibbits
76614fdc8c Mechanically convert iwi(4) and iwn(4) to IfAPI
Sponsored by:	Juniper Networks, Inc.
Differential Revision: https://reviews.freebsd.org/D37849
2023-02-06 12:32:05 -05:00
Justin Hibbits
3f14814f05 Mechanically convert ae(4) to IfAPI
Sponsored by:	Juniper Networks, Inc.
Differential Revision: https://reviews.freebsd.org/D37786
2023-02-06 12:32:05 -05:00
Justin Hibbits
47842ecfe0 Mechanically convert if_tsec(4) to IfAPI
Sponsored by:	Juniper Networks, Inc.
Differential Revision: https://reviews.freebsd.org/D37805
2023-02-06 12:32:05 -05:00
Justin Hibbits
a6c0f09aa3 ath(4) IfAPI fixups
Use the if_getcounter() IfAPI instead of accessing the ifnet directly.

Sponsored by:	Juniper Networks, Inc.
2023-02-06 12:32:05 -05:00