FreeBSD/src 9242934lib/msun/man erf.3

erf.3: Add a STANDARDS section

Add a STANDARDS section for the erf(3) manual page.

PR:     273413
Reviewed by:    pauamma_gundo.com
Differential Revision:  https://reviews.freebsd.org/D44140

(cherry picked from commit 16c3d7e1fa150ee136b910448cf431e8deab5293)
DeltaFile
+12-3lib/msun/man/erf.3
+12-31 files

FreeBSD/src 939f5a7lib/msun/man erf.3

erf.3: Add a STANDARDS section

Add a STANDARDS section for the erf(3) manual page.

PR:     273413
Reviewed by:    pauamma_gundo.com
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D44140

(cherry picked from commit 16c3d7e1fa150ee136b910448cf431e8deab5293)
DeltaFile
+12-3lib/msun/man/erf.3
+12-31 files

FreeBSD/src dd43e90crypto/openssl/include/openssl opensslv.h, secure/lib/libcrypto Makefile.inc

Update config/build info for OpenSSL

This is a companion commit to the OpenSSL 3.0.14 update.

MFC after:      3 days
MFC with:       44096ebd22ddd0081a357011714eff8963614b65

(cherry picked from commit 303596eac3f5a7fed63f1084028d811919d37eaf)
DeltaFile
+5-5crypto/openssl/include/openssl/opensslv.h
+2-2secure/lib/libcrypto/Makefile.inc
+7-72 files

FreeBSD/src 13a031fcrypto/openssl/crypto/bn bn_rand.c, crypto/openssl/providers fips-sources.checksums

Update to OpenSSL 3.0.14

This release resolves 3 upstream found CVEs:
- Fixed potential use after free after SSL_free_buffers() is called (CVE-2024-4741)
- Fixed an issue where checking excessively long DSA keys or parameters may be very slow (CVE-2024-4603)
- Fixed unbounded memory growth with session handling in TLSv1.3 (CVE-2024-2511)

MFC after:      3 days
Merge commit '1070e7dca8223387baf5155524b28f62bfe7da3c'

(cherry picked from commit 44096ebd22ddd0081a357011714eff8963614b65)
DeltaFile
+376-50crypto/openssl/test/sslapitest.c
+136-136crypto/openssl/providers/fips-sources.checksums
+108-108crypto/openssl/test/ssl-tests/20-cert-select.cnf
+175-1crypto/openssl/test/sslbuffertest.c
+124-38crypto/openssl/crypto/bn/bn_rand.c
+35-35crypto/openssl/test/ssl-tests/20-cert-select.cnf.in
+954-368123 files not shown
+2,299-762129 files

FreeBSD/src 811d831sys/netinet tcp_subr.c

tcp: minor cleanup

Fix two KASSERTs to catch the condition they are intended to,
add two asserts to ensure that the appropriate locking is in
place and fix some things related to style.
No functional change intended.

MFC after:      1 week
Sponsored by:   Netflix, Inc.
DeltaFile
+26-24sys/netinet/tcp_subr.c
+26-241 files

FreeBSD/src 8d5c8e2contrib/bmake var.c parse.c, contrib/bmake/unit-tests varmod.mk varmod-undefined.mk

Merge bmake-20240625

Merge commit 'dbb5be7f07456d02ce444484c683b130439acb45'
DeltaFile
+165-133contrib/bmake/var.c
+120-5contrib/bmake/unit-tests/varmod.mk
+40-27contrib/bmake/parse.c
+30-31contrib/bmake/main.c
+31-26contrib/bmake/compat.c
+48-3contrib/bmake/unit-tests/varmod-undefined.mk
+434-22565 files not shown
+1,028-58371 files

FreeBSD/src dbb5be7. var.c parse.c, unit-tests varmod.mk varmod-undefined.mk

Import bmake-20240625

Intersting/relevant changes since bmake-20240520

ChangeLog since bmake-20240520

2024-06-25  Simon J Gerraty  <sjg at beast.crufty.net>

        * VERSION (_MAKE_VERSION): 20240625
        Merge with NetBSD make, pick up
        o job.c: ensure shellPath is always duped, avoid upsetting free()

2024-06-16  Simon J Gerraty  <sjg at beast.crufty.net>

        * VERSION (_MAKE_VERSION): 20240616
        Merge with NetBSD make, pick up
        o clean up collection of context information for error messages
        o in warnings, move the word "warning" to the front
        o var.c: throw an error on attempt to override an internal

    [50 lines not shown]
DeltaFile
+165-133var.c
+120-5unit-tests/varmod.mk
+40-27parse.c
+30-31main.c
+31-26compat.c
+48-3unit-tests/varmod-undefined.mk
+434-22563 files not shown
+1,018-57869 files

FreeBSD/src 59c21edrelease Makefile.vm

release: Bump default VM size for riscv64 to 6 GB

Due to issues with the riscv64 toolchain, some binaries end up
significantly larger on riscv64 than they should be.  This results
in riscv64 VM images -- and at present *only* riscv64 images -- not
fitting within the default 5 GB filesystem size.

Bump the default size for riscv64 to 6 GB until the toolchain issues
can be resolved.

MFC after:      1 week
Sponsored by:   Amazon
DeltaFile
+4-0release/Makefile.vm
+4-01 files

FreeBSD/src 0e391d9usr.sbin/jail jail.8

MFC zfs/jail: Document the zfs.mount_snapshot parameter in jail(8).

PR:             274263
Differential Revision:  https://reviews.freebsd.org/D45647

(cherry picked from commit 63875db56bd545896e019c922378f96ad5adc892)
DeltaFile
+10-2usr.sbin/jail/jail.8
+10-21 files

FreeBSD/src 172fbf1sys/contrib/openzfs/module/os/freebsd/zfs zfs_vfsops.c

MFC zfs/jail: Mark the zfs.mount_snapshot jail parameter as boolean.

PR:             274263
Differential Revision:  https://reviews.freebsd.org/D45647

(cherry picked from commit 9cbf1de7e34a6fced041388fad5d9180cb7705fe)
DeltaFile
+1-1sys/contrib/openzfs/module/os/freebsd/zfs/zfs_vfsops.c
+1-11 files

FreeBSD/src bb7b7b0usr.sbin/jail jail.8

MFC zfs/jail: Document the zfs.mount_snapshot parameter in jail(8).

PR:             274263
Differential Revision:  https://reviews.freebsd.org/D45647

(cherry picked from commit 63875db56bd545896e019c922378f96ad5adc892)
DeltaFile
+10-2usr.sbin/jail/jail.8
+10-21 files

FreeBSD/src c8f1479sys/contrib/openzfs/module/os/freebsd/zfs zfs_vfsops.c

MFC zfs/jail: Mark the zfs.mount_snapshot jail parameter as boolean.

PR:             274263
Differential Revision:  https://reviews.freebsd.org/D45647

(cherry picked from commit 9cbf1de7e34a6fced041388fad5d9180cb7705fe)
DeltaFile
+1-1sys/contrib/openzfs/module/os/freebsd/zfs/zfs_vfsops.c
+1-11 files

FreeBSD/src 5d5082fusr.sbin/ctld kernel.c ctld.c

ctld: plug memory leaks

Reviewed by:    mav
Sponsored by:   Axcient
Reported by:    valgrind
Pull Request:   https://github.com/freebsd/freebsd-src/pull/1288

(cherry picked from commit 2909ddd17cb4d750852dc04128e584f93f8c5058)
DeltaFile
+36-0usr.sbin/ctld/kernel.c
+1-0usr.sbin/ctld/ctld.c
+37-02 files

FreeBSD/src 7a8bab3sys/cam/ctl ctl_frontend_ioctl.c, usr.sbin/ctladm ctladm.c ctladm.8

ctladm: don't require the use of "-p" with "port -r"

When removing a port, the ioctl frontend requires the "-p" argument.
But other frontends, like cfiscsi, do not.  So don't require that
argument in the ctladm command.  The frontend driver will report an
error if any required argument is missing.

Sponsored by:   Axcient
Reviewed by:    mav
Pull Request:   https://github.com/freebsd/freebsd-src/pull/1279

(cherry picked from commit edbd489d09babebdc6c03924a912013be584c409)
DeltaFile
+23-5usr.sbin/ctladm/tests/port.sh
+3-7usr.sbin/ctladm/ctladm.c
+1-2usr.sbin/ctladm/ctladm.8
+1-1sys/cam/ctl/ctl_frontend_ioctl.c
+28-154 files

FreeBSD/src 259f94fsys/cam/ctl ctl_frontend_iscsi.c, usr.sbin/ctladm ctladm.8

ctladm: better documentation for adding and removing cfiscsi ports

Sponsored by:   Axcient
Reviewed by:    mav
Pull Request:   https://github.com/freebsd/freebsd-src/pull/1279

(cherry picked from commit afecc74cd7158da8e89c26c5267bc715c2417fe7)
DeltaFile
+143-3usr.sbin/ctladm/tests/port.sh
+24-11sys/cam/ctl/ctl_frontend_iscsi.c
+28-4usr.sbin/ctladm/ctladm.8
+195-183 files

FreeBSD/src 1dc9042usr.sbin/ctladm ctladm.c, usr.sbin/ctladm/tests port.sh Makefile

ctladm: print port number with a succesful "port -c" command

Make "ctladm port -c" print the port number of the newly successful
port.  This way it won't have to be guessed by a subsequent "ctladm
portlist" command.  That means it's safe to use it concurrently with
other ctladm processes.  In particular, this allows the tests to be run
in parallel.

Sponsored by:   Axcient
Reviewed by:    mav
Pull Request:   https://github.com/freebsd/freebsd-src/pull/1279

(cherry picked from commit 591de7534fb3acb2e6eef94a1e5e92000d2cf83d)
DeltaFile
+34-36usr.sbin/ctladm/tests/port.sh
+18-0usr.sbin/ctladm/ctladm.c
+0-4usr.sbin/ctladm/tests/Makefile
+52-403 files

FreeBSD/src ab9e5b8etc/mtree BSD.tests.dist, usr.sbin/ctladm Makefile

Add some ATF tests for ctladm

So far only "ctladm port -c" and "ctladm port -r" are covered.

Sponsored by:   Axcient
Reviewed by:    mav
Pull Request:   https://github.com/freebsd/freebsd-src/pull/1279

(cherry picked from commit 9747d11d91642cb9b81602d88e8aebeb388543c7)

Fix mtree entry for ctladm tests

Sponsored by:   Axcient

(cherry picked from commit 81ef0a89fcc055bdf3d0f1affbadb643412ebce9)

ctladm: add a copyright header to the port test

[skip ci]

    [5 lines not shown]
DeltaFile
+180-0usr.sbin/ctladm/tests/port.sh
+10-0usr.sbin/ctladm/tests/Makefile
+3-0usr.sbin/ctladm/Makefile
+2-0etc/mtree/BSD.tests.dist
+195-04 files

FreeBSD/src 4451b1dusr.sbin/ctladm ctladm.8 ctladm.c

ctladm.8: fix several errors in the "port" section

* Document the "-d" option.
* Add the "-c" and "-r" options to the summary.
* Correct the list of required options.
* Clarify that the "-t" option is only for use with "-o", "-w", and "-W"
* Replace references to the nonexistent "-n" with "-p".

Also, fix a few related error strings in the ctladm command.

Sponsored by:   Axcient
Reviewed by:    jhb
Differential Revision: https://reviews.freebsd.org/D45503

(cherry picked from commit 60107d23d8f2c05f418c024000a31a6148d2f7de)
DeltaFile
+28-4usr.sbin/ctladm/ctladm.8
+4-3usr.sbin/ctladm/ctladm.c
+32-72 files

FreeBSD/src 1cc56f8sbin/mdconfig/tests mdconfig_test.sh

mdconfig: fix cleanup in the attach_size_rounddown test

Sponsored by:   Axcient

(cherry picked from commit d1bd097d52cb5f8b0484e1f22c5506846f4ed304)
DeltaFile
+1-1sbin/mdconfig/tests/mdconfig_test.sh
+1-11 files

FreeBSD/src 43d29dcshare/man/man9 vfs_getopt.9

vfs_getopt(9): fix typo

[skip ci]

Reported by:    Claudiu <mscotty at protomail.ch>

(cherry picked from commit 3cc1b35bc1bdcdee279b3ee7d0e0946b684df898)
DeltaFile
+3-3share/man/man9/vfs_getopt.9
+3-31 files

FreeBSD/src af64741tests/sys/fs/fusefs bmap.cc write.cc

fusefs: make the tests more robust to changes to maxphys

Remove assumptions in two test cases that maxphys won't be huge.

Reported by:    kib
Sponsored by:   Axcient

(cherry picked from commit b2792a300ddb8d8334b234fe7744f5141cc96103)
DeltaFile
+13-4tests/sys/fs/fusefs/bmap.cc
+1-1tests/sys/fs/fusefs/write.cc
+14-52 files

FreeBSD/src 4052c95tests/sys/fs/fusefs utils.cc bmap.cc

tests/fusefs: fix all tests that depend on kern.maxphys

The tests try to read kern.maxphys sysctl into int value, while
unsigned long is required.  Not sure when this was broken, seems like
since cd8537910406e.

Reviewed by:            asomers
Differential Revision:  https://reviews.freebsd.org/D45053

(cherry picked from commit e9b411d273336647e61704213964b995952a44fd)
DeltaFile
+6-7tests/sys/fs/fusefs/utils.cc
+6-6tests/sys/fs/fusefs/bmap.cc
+3-2tests/sys/fs/fusefs/write.cc
+1-1tests/sys/fs/fusefs/read.cc
+1-1tests/sys/fs/fusefs/utils.hh
+17-175 files

FreeBSD/src 51bee6alib/geom/eli geli.8

geli.8: minor proofreading

Sponsored by:   Axcient
Reviewed by:    imp, pauamma (manpages)
Differential Revision: https://reviews.freebsd.org/D44907

(cherry picked from commit c0f02dcd4c9c17181c59fa3c43259cce793a0b21)
DeltaFile
+3-3lib/geom/eli/geli.8
+3-31 files

FreeBSD/src 5654b42lib/libusb libusb-1.0.pc.in

libusb: claim to be version 1.0.16

We are not 100% compatible with 1.0.16, but implement some
functionality from that version that is required by certain ports.

PR:             277799
PR:             279555 (exp-run)
Event:          Kitchener-Waterloo Hackathon 202406
Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D45514
DeltaFile
+1-1lib/libusb/libusb-1.0.pc.in
+1-11 files

FreeBSD/src fc3e533sys/kern subr_prf.c

Fix "%hhi" conversion for kvprintf()

The signedness of "char" is implementation-dependent.

Reviewed by: imp,zlei,nightquick at proton.me
Pull Request: https://github.com/freebsd/freebsd-src/pull/1290
DeltaFile
+1-1sys/kern/subr_prf.c
+1-11 files

FreeBSD/src 2eb64dfsys/riscv/riscv pmap.c

riscv: remove a redundant check on PGA_WRITEABLE

This is achieved by the preceding call to pmap_page_is_write_mapped().
It appears the second check and comment were left mistakenly when the
intent was to remove them.

Reviewed by:    mhorne
MFC after:      1 week
Fixes:  638f867814a6 ("(6/6) Convert pmap to expect busy in write... ")
Pull Request:   https://github.com/freebsd/freebsd-src/pull/1304
DeltaFile
+1-8sys/riscv/riscv/pmap.c
+1-81 files

FreeBSD/src d3bb35dsys/kern kern_jail.c, sys/sys jail.h

jail: allow adjustment of host time

Add a special permission to the jail to adjust and to set the host time.
This can be useful if we want to compartmentalize the NTP daemon
from the rest of the system.

Reviewed by:    olce, imp
MFC after:      2 weeks
Differential Revision:  https://reviews.freebsd.org/D45545
DeltaFile
+28-0sys/kern/kern_jail.c
+17-0usr.sbin/jail/jail.8
+3-1sys/sys/jail.h
+48-13 files

FreeBSD/src 2c88494lib/libcapsicum capsicum_helpers.h

libcapsicum: cache more time zone information

The functions like gmtime(3) expect to cache a GMT time zone. Some
sandboxed programs (like last(1)) use the gmtime(3) function.
In case of last(1), this function fails to load a proper time zone
because it is called after entering the capability mode.

_open () at _open.S:4
0x00000008011bc5a8 in tzloadbody (name=0x8018b9580 "/usr/share/zoneinfo/Etc/UTC", sp=0x801870140,
tzload (name=<optimized out>, sp=0x801870140, doextend=true)
0x00000008011bb8ba in gmtload (sp=0x801870140) at /usr/src/contrib/tzcode/localtime.c:1456
gmtcheck () at /usr/src/contrib/tzcode/localtime.c:1581
0x000000080111f85a in _libc_once (once_control=0x80127c550, init_routine=0x0)
_once (once_control=0x80127c550, init_routine=0x0) at /usr/src/lib/libc/gen/_once_stub.c:63
0x00000008011bb9d0 in gmtime_r (timep=0x7fffffffe3a8, tmp=0x80127c568)
gmtime (timep=timep at entry=0x7fffffffe3a8) at /usr/src/contrib/tzcode/localtime.c:1865
0x0000000001024cd4 in printentry (bp=bp at entry=0x8018b4800, tt=tt at entry=0x80186a0a0)
0x00000000010245ae in doentry (bp=0x8018b4800)
0x00000000010243a7 in main (argc=1, argv=<optimized out>)

    [11 lines not shown]
DeltaFile
+9-0lib/libcapsicum/capsicum_helpers.h
+9-01 files

FreeBSD/src c7bb7a2lib/libcapsicum capsicum_helpers.h

libcapsicum: cache more time zone information

The functions like gmtime(3) expect to cache a GMT time zone. Some
sandboxed programs (like last(1)) use the gmtime(3) function.
In case of last(1), this function fails to load a proper time zone
because it is called after entering the capability mode.

_open () at _open.S:4
0x00000008011bc5a8 in tzloadbody (name=0x8018b9580 "/usr/share/zoneinfo/Etc/UTC", sp=0x801870140,
tzload (name=<optimized out>, sp=0x801870140, doextend=true)
0x00000008011bb8ba in gmtload (sp=0x801870140) at /usr/src/contrib/tzcode/localtime.c:1456
gmtcheck () at /usr/src/contrib/tzcode/localtime.c:1581
0x000000080111f85a in _libc_once (once_control=0x80127c550, init_routine=0x0)
_once (once_control=0x80127c550, init_routine=0x0) at /usr/src/lib/libc/gen/_once_stub.c:63
0x00000008011bb9d0 in gmtime_r (timep=0x7fffffffe3a8, tmp=0x80127c568)
gmtime (timep=timep at entry=0x7fffffffe3a8) at /usr/src/contrib/tzcode/localtime.c:1865
0x0000000001024cd4 in printentry (bp=bp at entry=0x8018b4800, tt=tt at entry=0x80186a0a0)
0x00000000010245ae in doentry (bp=0x8018b4800)
0x00000000010243a7 in main (argc=1, argv=<optimized out>)

    [11 lines not shown]
DeltaFile
+9-0lib/libcapsicum/capsicum_helpers.h
+9-01 files

FreeBSD/src 7fa105dsys/dev/isp isp.c

isp: fix ISPCTL_ABORT_CMD switch case

Prevent kernel panic by not running ISPCTL_FCLINK_TEST after a
failed ISPCTL_ABORT_CMD.

Reviewed by:    mav
Tested by:      Arne Steinkamm <arne at steinkamm.com>
MFC after:      3 days
Differential Revision:  https://reviews.freebsd.org/D45718

(cherry picked from commit 8aa9192ce98aec07b24f8279c709237dd2c4421b)
DeltaFile
+1-0sys/dev/isp/isp.c
+1-01 files