FreeBSD/src 9be0058sys/riscv/vmm vmm_vtimer.c vmm_vtimer.h

riscv vmm: virtual timer support.

Add a virtual timer implementation based on SBI Time extension.
This is needed for Eswin EIC7700 SoC which does not include the newer SSTC
extension.

Timer interrupt pending bit (STIP) could not be cleared in the guest system,
so rework interrupts handling: add new "interrupts_pending" field. Use it
for timer interrupt only for now, but later we can extend to store all
pending interrupts (Timer, IPI and External).

With this I'm able to boot FreeBSD (SMP) guest on HiFive Premier P550,
which is the first real hardware with RISC-V 'H'-spec included.

Differential Revision: https://reviews.freebsd.org/D48133
DeltaFile
+117-0sys/riscv/vmm/vmm_vtimer.c
+47-0sys/riscv/vmm/vmm_vtimer.h
+30-17sys/riscv/vmm/vmm_riscv.c
+26-0sys/riscv/vmm/vmm_sbi.c
+5-0sys/riscv/vmm/riscv.h
+3-0sys/riscv/vmm/vmm.c
+228-173 files not shown
+233-199 files

FreeBSD/src 8471791sys/netinet/tcp_stacks rack.c

TCP RACK: simplify condition

It is already known that rsm != NULL, so no need to check for it.

Reviewed by:            rrs
CID:                    1523815
MFC after:              1 week
Sponsored by:           Netflix, Inc.
Differential Revision:  https://reviews.freebsd.org/D48282
DeltaFile
+1-1sys/netinet/tcp_stacks/rack.c
+1-11 files

FreeBSD/src c7e81ccsys/netinet/tcp_stacks bbr.c

TCP BBR: do not log an uninitialized value

Reviewed by:            rrs
CID:                    1523789
MFC after:              1 week
Sponsored by:           Netflix, Inc.
Differential Revision:  https://reviews.freebsd.org/D48281
DeltaFile
+1-1sys/netinet/tcp_stacks/bbr.c
+1-11 files

FreeBSD/src 0749d81tests/sys/netpfil/pf table.sh

pf tests: check cleared time when zeroing stats for table addresses

Verify that we reset the cleared time when we zero an address' counters in
a table.

PR:             282877, 282984
Reviewed by:    kp
MFC after:      2 weeks
Signed-off-by:  Leonid Evdokimov <leon at darkk.net.ru>
Differential Revision:  https://reviews.freebsd.org/D48242
DeltaFile
+31-2tests/sys/netpfil/pf/table.sh
+31-21 files

FreeBSD/src b2d2a78sys/contrib/device-tree/src/arm/aspeed aspeed-bmc-ibm-fuji.dts aspeed-bmc-ibm-blueridge.dts, sys/contrib/device-tree/src/arm/nvidia tegra114-asus-tf701t.dts

Import device-tree files from Linux 6.12
DeltaFile
+3,876-0sys/contrib/device-tree/src/arm/aspeed/aspeed-bmc-ibm-fuji.dts
+93-2,977sys/contrib/device-tree/src/arm64/rockchip/rk3399.dtsi
+3,019-0sys/contrib/device-tree/src/arm64/rockchip/rk3399-base.dtsi
+1,686-0sys/contrib/device-tree/src/arm/aspeed/aspeed-bmc-ibm-blueridge.dts
+1,371-217sys/contrib/device-tree/src/arm/nvidia/tegra114-asus-tf701t.dts
+1,539-0sys/contrib/device-tree/src/arm/aspeed/ibm-power11-quad.dtsi
+11,584-3,1941,138 files not shown
+61,571-8,9151,144 files

FreeBSD/src cd989bfsrc/arm/aspeed aspeed-bmc-ibm-fuji.dts aspeed-bmc-ibm-blueridge.dts, src/arm/nvidia tegra114-asus-tf701t.dts

Import device-tree files from Linux 6.12
DeltaFile
+3,876-0src/arm/aspeed/aspeed-bmc-ibm-fuji.dts
+93-2,977src/arm64/rockchip/rk3399.dtsi
+3,019-0src/arm64/rockchip/rk3399-base.dtsi
+1,686-0src/arm/aspeed/aspeed-bmc-ibm-blueridge.dts
+1,371-217src/arm/nvidia/tegra114-asus-tf701t.dts
+1,539-0src/arm/aspeed/ibm-power11-quad.dtsi
+11,584-3,1941,138 files not shown
+61,571-8,9151,144 files

FreeBSD/src 0e8011fsys/contrib/device-tree/src/arm64/freescale imx95.dtsi, sys/contrib/device-tree/src/arm64/qcom x1e80100.dtsi sm8650-hdk.dts

Import device-tree files from Linux 6.11
DeltaFile
+3,447-0sys/contrib/device-tree/src/arm64/rockchip/rk3588-base-pinctrl.dtsi
+2,799-0sys/contrib/device-tree/src/arm64/rockchip/rk3588-base.dtsi
+4-2,666sys/contrib/device-tree/src/arm64/rockchip/rk3588s.dtsi
+1,841-10sys/contrib/device-tree/src/arm64/qcom/x1e80100.dtsi
+1,355-0sys/contrib/device-tree/src/arm64/qcom/sm8650-hdk.dts
+1,192-0sys/contrib/device-tree/src/arm64/freescale/imx95.dtsi
+10,638-2,6761,402 files not shown
+84,887-12,1371,408 files

FreeBSD/src beb6e74src/arm64/freescale imx95.dtsi, src/arm64/qcom x1e80100.dtsi sm8650-hdk.dts

Import device-tree files from Linux 6.11
DeltaFile
+3,447-0src/arm64/rockchip/rk3588-base-pinctrl.dtsi
+2,799-0src/arm64/rockchip/rk3588-base.dtsi
+4-2,666src/arm64/rockchip/rk3588s.dtsi
+1,841-10src/arm64/qcom/x1e80100.dtsi
+1,355-0src/arm64/qcom/sm8650-hdk.dts
+1,192-0src/arm64/freescale/imx95.dtsi
+10,638-2,6761,402 files not shown
+84,887-12,1371,408 files

FreeBSD/src 7d0873esys/contrib/device-tree/src/arm/aspeed aspeed-bmc-ibm-system1.dts, sys/contrib/device-tree/src/arm/qcom qcom-msm8974pro-samsung-klte-common.dtsi qcom-msm8974pro-samsung-klte.dts

Import device-tree files from Linux 6.10
DeltaFile
+1,474-1,327sys/contrib/device-tree/src/arm/st/stm32mp151.dtsi
+1,623-0sys/contrib/device-tree/src/arm/aspeed/aspeed-bmc-ibm-system1.dts
+646-516sys/contrib/device-tree/src/arm/st/stm32mp131.dtsi
+907-12sys/contrib/device-tree/src/arm64/exynos/google/gs101.dtsi
+818-0sys/contrib/device-tree/src/arm/qcom/qcom-msm8974pro-samsung-klte-common.dtsi
+6-807sys/contrib/device-tree/src/arm/qcom/qcom-msm8974pro-samsung-klte.dts
+5,474-2,6621,088 files not shown
+44,361-7,3061,094 files

FreeBSD/src a809180src/arm/aspeed aspeed-bmc-ibm-system1.dts, src/arm/qcom qcom-msm8974pro-samsung-klte-common.dtsi qcom-msm8974pro-samsung-klte.dts

Import device-tree files from Linux 6.10
DeltaFile
+1,474-1,327src/arm/st/stm32mp151.dtsi
+1,623-0src/arm/aspeed/aspeed-bmc-ibm-system1.dts
+646-516src/arm/st/stm32mp131.dtsi
+907-12src/arm64/exynos/google/gs101.dtsi
+818-0src/arm/qcom/qcom-msm8974pro-samsung-klte-common.dtsi
+6-807src/arm/qcom/qcom-msm8974pro-samsung-klte.dts
+5,474-2,6621,088 files not shown
+44,361-7,3061,094 files

FreeBSD/src 01950c4sys/contrib/device-tree/src/arm/nvidia tegra30-lg-x3.dtsi, sys/contrib/device-tree/src/arm64/mediatek mt8186-corsola.dtsi

Import device-tree files from Linux 6.9
DeltaFile
+2,120-18sys/contrib/device-tree/src/arm64/nvidia/tegra234.dtsi
+5-1,948sys/contrib/device-tree/src/arm64/nvidia/tegra234-p3701.dtsi
+1,812-0sys/contrib/device-tree/src/arm/nvidia/tegra30-lg-x3.dtsi
+1,771-10sys/contrib/device-tree/src/arm64/qcom/x1e80100.dtsi
+1,681-0sys/contrib/device-tree/src/arm64/mediatek/mt8186-corsola.dtsi
+1,306-0sys/contrib/device-tree/src/arm64/qcom/sm8550-hdk.dts
+8,695-1,9761,221 files not shown
+55,997-9,6071,227 files

FreeBSD/src 4087ffdcontrib/nvi/common options.c common.h, contrib/nvi/man vi.1

nvi: import version 2.2.1-52c07e8
DeltaFile
+28-23contrib/nvi/man/vi.1
+26-25usr.bin/vi/options_def.h
+11-4contrib/nvi/vi/vs_refresh.c
+3-1contrib/nvi/common/options.c
+1-0contrib/nvi/common/common.h
+0-1contrib/nvi/common/log.c
+69-541 files not shown
+69-557 files

FreeBSD/src ae7f969common log.c mem.h, man vi.1

nvi: import version 2.2.1-52c07e8
DeltaFile
+28-23man/vi.1
+5-18common/log.c
+11-4vi/vs_refresh.c
+12-0common/mem.h
+3-1common/options.c
+1-0common/common.h
+60-461 files not shown
+60-477 files

FreeBSD/src e2e0a4esrc/arm/nvidia tegra30-lg-x3.dtsi, src/arm64/mediatek mt8186-corsola.dtsi

Import device-tree files from Linux 6.9
DeltaFile
+2,120-18src/arm64/nvidia/tegra234.dtsi
+5-1,948src/arm64/nvidia/tegra234-p3701.dtsi
+1,812-0src/arm/nvidia/tegra30-lg-x3.dtsi
+1,771-10src/arm64/qcom/x1e80100.dtsi
+1,681-0src/arm64/mediatek/mt8186-corsola.dtsi
+1,306-0src/arm64/qcom/sm8550-hdk.dts
+8,695-1,9761,221 files not shown
+55,997-9,6071,227 files

FreeBSD/src 2832af7usr.bin/shar shar.1

shar: add a note about the port to the deprecation warning

cy@ was kind enough to preemptively create a port from the version of
this script in base for those that need this exact interface; add a
pointer to it so that interested individuals could start installing it
sooner rather than later.

Noted by:       cy
MFC after:      3 days
DeltaFile
+5-0usr.bin/shar/shar.1
+5-01 files

FreeBSD/src f68ee0eusr.bin/shar shar.1

shar: add a deprecation notice

The shar(1) program is simple, but the fundamental idea of a sh archive
is risky at best and one that we probably shouldn't be promoting as
prominently as a program in $PATH and a manpage.  Let's deprecate and
remove it, since the same functionality can easily be found in
tar(1) instead.

Reviewed by:    emaste, philip
Reviewed by:    allanjude, brooks, delphij, des, imp, rpokala (previous)
MFC after:      3 days
Differential Revision:  https://reviews.freebsd.org/D48130
DeltaFile
+13-1usr.bin/shar/shar.1
+13-11 files

FreeBSD/src 3d0a0ddusr.sbin/pkg ecc.c pkg.c

pkg: finish adding the ECC signer and signature type bits

Signature types need to be parsed out of the key/signature information
that we are presented with from the files we download.  We use that to
understand whicher signer we need to dispatch to.

The ECC signer is more-or-less lifted from pkg(8), with some changes to
slim it down for pkg(7).

Reviewed by:    bapt
Differential Revision:  https://reviews.freebsd.org/D48108
DeltaFile
+606-0usr.sbin/pkg/ecc.c
+97-18usr.sbin/pkg/pkg.c
+5-2usr.sbin/pkg/Makefile
+3-0usr.sbin/pkg/pkg.h
+711-204 files

FreeBSD/src 5862580usr.sbin/pkg pkg.c pkg.h

pkg: abstract rsa out behind a pkgsign API

This mirrors a change we made in pkg(8), and will be used to next add
another signer that does ECC.

Reviewed by:    bapt, emaste
Differential Revision:  https://reviews.freebsd.org/D48106
DeltaFile
+83-3usr.sbin/pkg/pkg.c
+19-3usr.sbin/pkg/pkg.h
+8-3usr.sbin/pkg/rsa.c
+110-93 files

FreeBSD/src 2e065d7usr.sbin/pkg rsa.c pkg.c

pkg: add a pkgsign_verify_data callback

This will be used to verify raw payloads, as if signed by pkg-key(8).
It will be used specifically in pkg(7) to verify .pubkeysig as published
by poudriere.

Amend verify_pubsignature() now to use it.  For the RSA signer, we need
to verify using a sha256 of the data instead of the data itself.

Reviewed by:    bapt
Differential Revision:  https://reviews.freebsd.org/D48109
DeltaFile
+32-18usr.sbin/pkg/rsa.c
+29-1usr.sbin/pkg/pkg.c
+4-0usr.sbin/pkg/pkg.h
+65-193 files

FreeBSD/src 2ecfc04usr.sbin/pkg pkg.c pkg.h

pkg: refactor out a pkg_read_fd()

We already have to do this for reading the pubkey, just pull it out for
other uses.  The ECC signer will use this to verify the bootstrap if
the PUBKEY mechanism is used.

Reviewed by:    bapt, emaste
Differential Revision:  https://reviews.freebsd.org/D48107
DeltaFile
+27-13usr.sbin/pkg/pkg.c
+2-0usr.sbin/pkg/pkg.h
+29-132 files

FreeBSD/src 05427f4secure/lib Makefile, secure/lib/libpkgecc Makefile pkg_libecc_rand.c

secure: hook up libecc as libpkgecc

libecc is not intended to be general use, other applications should
really be using openssl.  pkg(7) uses libecc to align with the pkg(8)
project and its goals.  This will be used in the upcoming support for
ECC in pkg(7).

Reviewed by:    emaste
Differential Revision:  https://reviews.freebsd.org/D48117
DeltaFile
+137-0secure/lib/libpkgecc/Makefile
+22-0secure/lib/libpkgecc/pkg_libecc_rand.c
+4-0share/mk/src.libnames.mk
+1-1secure/lib/Makefile
+164-14 files

FreeBSD/src 2629e90usr.sbin/pkg rsa.c pkg.c

pkg: pull rsa bits out of pkg.c

We'll eventually add a pkgsign abstraction over these similar to how we do
in pkg(8), but start by isolating these parts.

Reviewed by:    bapt, emaste
Differential Revision:  https://reviews.freebsd.org/D48105
DeltaFile
+155-0usr.sbin/pkg/rsa.c
+1-129usr.sbin/pkg/pkg.c
+50-0usr.sbin/pkg/pkg.h
+1-1usr.sbin/pkg/Makefile
+207-1304 files

FreeBSD/src f0865eccrypto/libecc/src/examples/sig/rsa rsa_pkcs1_tests.h, crypto/libecc/src/sig eddsa.c

Add 'crypto/libecc/' from commit '736d663976d1768533badbf06581481d01fade4c'

git-subtree-dir: crypto/libecc
git-subtree-mainline: f59bb61e1eb4d1e4fc3c60cc14779d0668267cb2
git-subtree-split: 736d663976d1768533badbf06581481d01fade4c
DeltaFile
+728,074-0crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
+111,724-0crypto/libecc/src/examples/sig/rsa/rsa_pkcs1_tests.h
+24,610-0crypto/libecc/src/tests/ed25519_test_vectors.h
+5,757-0crypto/libecc/src/tests/ec_self_tests_core.h
+3,750-0crypto/libecc/src/tests/ecccdh_test_vectors.h
+2,935-0crypto/libecc/src/sig/eddsa.c
+876,850-0338 files not shown
+959,066-0344 files

FreeBSD/src f59bb61lib Makefile, lib/libder Makefile

lib: hook libder up to the build

libder will be used in upcoming ECC support in the pkg(7) bootstrap to
read DER-encoded keys and signatures.

Differential Revision:  https://reviews.freebsd.org/D48116
DeltaFile
+13-0lib/libder/Makefile
+4-0share/mk/src.libnames.mk
+1-0lib/Makefile
+18-03 files

FreeBSD/src 35c0a8ccontrib/libder/libder libder_obj.c libder_read.c, contrib/libder/tests fuzz_stream.c

Add 'contrib/libder/' from commit '9c40c4de4c33b2ba1124fb752ebea0bebaa6013f'

git-subtree-dir: contrib/libder
git-subtree-mainline: d11904b350214943dedb64c7121d4602799d7afd
git-subtree-split: 9c40c4de4c33b2ba1124fb752ebea0bebaa6013f
DeltaFile
+1,192-0contrib/libder/libder/libder_obj.c
+864-0contrib/libder/libder/libder_read.c
+246-0contrib/libder/tests/fuzz_stream.c
+229-0contrib/libder/libder/libder_write.c
+181-0contrib/libder/libder/libder.h
+179-0contrib/libder/libder/libder.3
+2,891-030 files not shown
+4,813-036 files

FreeBSD/src d11904blib/libc/tests/nss getgr_test.c getpw_test.c

Fix lib/libc/nss/getgr_test with large numbers of groups

These tests create a linked list with one entry for every group on the
running system.  On a system with about 30,000 groups, the test took 69
seconds to run, and crashed Kyua with the below error:

kyua: E: string or blob too big (sqlite op: sqlite3_bind_blob) (sqlite db: /root/.kyua/store/results.usr_tests.20241231-203317-570235.db).

Fix the test by limiting it to operating on the first 1024 groups.
Apply the same change to getpw_test and getserv_test too, which are
vulnerable to the same problem.

MFC after:      2 weeks
Sponsored by:   ConnectWise
Reviewed by:    markj
Differential Revision: https://reviews.freebsd.org/D48275
DeltaFile
+4-0lib/libc/tests/nss/getgr_test.c
+4-0lib/libc/tests/nss/getpw_test.c
+4-0lib/libc/tests/nss/getserv_test.c
+12-03 files

FreeBSD/src 3b9da3dsys/netinet/tcp_stacks rack.c

TCP RACK: avoid using uninitialized tot_idle variable

Reviewed by:            rrs
CID:                    1540027
MFC after:              1 week
Sponsored by:           Netflix, Inc.
Differential Revision:  https://reviews.freebsd.org/D48277
DeltaFile
+2-1sys/netinet/tcp_stacks/rack.c
+2-11 files

FreeBSD/src 1781324sys/netinet/tcp_stacks bbr.c

TCP BBR: remove code which is never executed

USEC_2_TICKS() returns at least 1.

Reviewed by:            rrs
CID:                    1523775
MFC after:              1 week
Sponsored by:           Netflix, Inc.
Differential Revision:  https://reviews.freebsd.org/D4827
DeltaFile
+0-2sys/netinet/tcp_stacks/bbr.c
+0-21 files

FreeBSD/src 4c0435dshare/man/man4 mac.4

mac(4): Mention mac_do(4)

Mention also mac_do(4) in the mac(4) manual page.

Reviewed by:    bapt
Differential Revision: https://reviews.freebsd.org/D48255
DeltaFile
+3-1share/man/man4/mac.4
+3-11 files

FreeBSD/src e27089csys/amd64/amd64 trap.c

amd64: on any fault during call to EFI RT, restore execution and print fault details

(cherry picked from commit dd2b5443644505af51c95503898ab363e7d7c29d)
DeltaFile
+18-12sys/amd64/amd64/trap.c
+18-121 files