FreeBSD/src c9546bbtests/sys/kern procdesc.c Makefile

tests/procdesc: Use a more efficient mechanism to block

Reviewed by:    kib
MFC after:      2 weeks
Differential Revision:  https://reviews.freebsd.org/D57149
DeltaFile
+37-4tests/sys/kern/procdesc.c
+1-1tests/sys/kern/Makefile
+38-52 files

FreeBSD/src bc04163sys/netinet tcp_subr.c tcp_var.h

tcp: Remove a no-op eventhandler

It has done nothing since commit bc7d18ae7224.  No functional change
intended.

Reviewed by:    tuexen
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D57101
DeltaFile
+0-8sys/netinet/tcp_subr.c
+0-1sys/netinet/tcp_var.h
+0-92 files

FreeBSD/src 8deebcesys/conf kern.mk

kernel: Enable -fstack-protector-strong by default

This extends stack canary use to all functions which define arrays on
the stack, not just those which operate on byte buffers.  This option
would have made it harder to exploit SA-26:18.setcred and
SA-26:08.rpcsec_gss.

The change bloats the amd64 kernel text by about 350KB and increases the
number of covered functions from ~1500 to ~9000 (within the kernel
itself, i.e., not counting kernel modules).

Reviewed by:    olce, olivier, emaste
MFC after:      2 weeks
Differential Revision:  https://reviews.freebsd.org/D56870
DeltaFile
+1-1sys/conf/kern.mk
+1-11 files

FreeBSD/src 6ab3043tests/sys/net Makefile

tests/net: Run all tests with execenv=jail and enable parallelism

This has been stable in my testing, and enabling parallelism speeds up
test runs considerably.  In particular, with -v parallelism=16 in a
16-vcpu bhyve VM my test runs go from ~50m to ~40m; the exact numbers
depend on the kernel config in use.

Reviewed by:    pouria
MFC after:      2 weeks
Differential Revision:  https://reviews.freebsd.org/D57094
DeltaFile
+2-7tests/sys/net/Makefile
+2-71 files

FreeBSD/src 1a4ad64sys/netlink netlink_generic.c

netlink: Avoid undefined behaviour

Even though it is not dereferenced, it is UB to take the address of an
out of bounds array element.

Reviewed by: pouria, bz, des, adrian
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D57158
DeltaFile
+2-2sys/netlink/netlink_generic.c
+2-21 files

FreeBSD/src 22e58f3. ltmain.sh configure, util configparser.c

import unbound 1.25.1
DeltaFile
+969-601ltmain.sh
+1,129-366configure
+425-471util/configparser.c
+509-348aclocal.m4
+108-68install-sh
+71-5validator/val_nsec3.c
+3,211-1,85929 files not shown
+3,420-1,95335 files

FreeBSD/src 4dd0a17. configure~ configure, util configlexer.c configparser.c

import unbound 1.25.0
DeltaFile
+0-27,461configure~
+3,982-3,941util/configlexer.c
+2,504-3,790configure
+2,396-2,294util/configparser.c
+603-971ltmain.sh
+348-509aclocal.m4
+9,833-38,966190 files not shown
+19,838-40,921196 files

FreeBSD/src ec5b94f. configure config.h.in, iterator iter_scrub.c

import unbound 1.24.2
DeltaFile
+2,692-1,909configure
+186-176config.h.in
+84-0testdata/iter_scrub_promiscuous.rpl
+35-4iterator/iter_scrub.c
+24-6testdata/ratelimit.tdir/ratelimit.testns
+12-11configure~
+3,033-2,10610 files not shown
+3,051-2,12316 files

FreeBSD/src 5eb18e8. config.sub rr.c, doc ldns_manpages

import ldns 1.9.0
DeltaFile
+571-178config.sub
+367-367doc/ldns_manpages
+111-18rr.c
+82-12configure
+66-2str2host.c
+60-0host2str.c
+1,257-57753 files not shown
+1,782-71059 files

FreeBSD/src 3dcfa5a. configure ltmain.sh, contrib/ios setenv_ios.sh

import ldns 1.8.3
DeltaFile
+670-208configure
+520-335ltmain.sh
+337-337doc/ldns_manpages
+0-274README-Travis.md
+0-274contrib/ios/setenv_ios.sh
+160-79config.sub
+1,687-1,507198 files not shown
+3,017-2,924204 files

FreeBSD/src 0b2df68sys/dev/acpica acpi_spmc.c

acpi_spmc: Remove useless __DECONSTs

Sponsored by:   The FreeBSD Foundation
DeltaFile
+2-2sys/dev/acpica/acpi_spmc.c
+2-21 files

FreeBSD/src 3a3b054sys/dev/sound/pcm dsp.c

sound: Remove SV_ABI_LINUX ifdef

This ifdef does not do anything, SV_ABI_LINUX is a flag.

Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Reviewed by:    ivy, brooks
Pull-Request:   https://ron-dev.freebsd.org/FreeBSD/src/pulls/37
DeltaFile
+0-6sys/dev/sound/pcm/dsp.c
+0-61 files

FreeBSD/src f814650sys/dev/acpica acpi.c, sys/kern subr_power.c

power: Fix stype name lengths

When updating the names of the sleep types in 95b4436e989d ("power:
Rename sleep types"), I forgot to update the lengths of the buffers they
went into.

Reported by:    mhorne
Fixes:  95b4436e989d ("power: Rename sleep types")
Sponsored by:   The FreeBSD Foundation
DeltaFile
+4-1sys/sys/power.h
+1-1sys/dev/acpica/acpi.c
+1-1sys/kern/subr_power.c
+6-33 files

FreeBSD/src 9d28d4dshare/man/man4 pcm.4, sys/dev/sound/pcm dsp.c

sound: Improve hw.snd.compat_linux_mmap

- Reject PROT_EXEC in all cases when Linux support is not compiled in.
- Define sysctl only when Linux support is compiled in.
- Document better.

Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Reviewed by:    emaste
Pull Request:   https://ron-dev.freebsd.org/FreeBSD/src/pulls/29

(cherry picked from commit b9c10eeb380b3ba629421062af8658e79a9171cd)
DeltaFile
+17-9share/man/man4/pcm.4
+7-10sys/dev/sound/pcm/dsp.c
+24-192 files

FreeBSD/src 28d85dbsys/dev/usb/controller xhci.c

xhci: Do not drop and add bits in xhci

Drop and Add bits reset the data toggle for high-speed devices in XHCI.
The toggle bit represents the sequence number in USB 2.0 transfers. However,
a device can only recognize that the toggle bit has been reset while in
the HALT state. As a result, the host and device toggle values may
become mismatched, causing xHCI to reject the packet. This issue was
observed while testing the EZ-USB FX2 device.

The transfer may then return to the original value after a
bi-directional TD because the toggle field is only one bit wide. This
explains the reson that we can only receive packets bi-transfer in some
case. Therefore, we do not reset the toggle bit here.

Reviewed by:    adrian
MFC after:      2 weeks
Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D57146
DeltaFile
+9-5sys/dev/usb/controller/xhci.c
+9-51 files

FreeBSD/src 0c85df0sys/kern vfs_subr.c

vop_read_pgcache_post(): the vnode is unlocked

Reported by:    markj
Fixes:  e9a5eb0e5e44 ("vop_read_pgcache_post(): report inotify IN_ACCESS same as for vop_read_post()")
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
DeltaFile
+1-1sys/kern/vfs_subr.c
+1-11 files

FreeBSD/src d66fec4sys/netlink/route nexthop.c

netlink: Fix lock leak in nl_find_nhop

Reviewed by: bz, pouria
Fixes: 7e5bf68495cc ("netlink: add netlink support")
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D57156
DeltaFile
+1-1sys/netlink/route/nexthop.c
+1-11 files

FreeBSD/src 2bf6b65sys/conf newvers.sh

15.1: Update to RC1

Approved by:    re (implicit)
Sponsored by:   OpenSats Initiative
DeltaFile
+1-1sys/conf/newvers.sh
+1-11 files

FreeBSD/src ac8fe88release/pkg_repos release-dvd.conf

Switch from "quarterly" to "release" pkgs on DVD

Approved by:    re (implicit)
Sponsored by:   OpenSats Initiative
DeltaFile
+1-1release/pkg_repos/release-dvd.conf
+1-11 files

FreeBSD/src bc7f359. ObsoleteFiles.inc, etc/mtree BSD.usr.dist

mtree: Remove unused MANSUBDIRs

Approved by:    re (cperciva)
MFC after:      3 days
Fixes:          809504f331fd ("man: Kill off MANSUBDIRs")
Reviewed by:    ziaee
Differential Revision:  https://reviews.freebsd.org/D57029

(cherry picked from commit 1dc1b95163b9e5cf5cbd52c2b979568724746eac)
(cherry picked from commit 6146c5962e5cea6dbcd49f5992cf4e6192a513b9)
DeltaFile
+0-8etc/mtree/BSD.usr.dist
+1-0ObsoleteFiles.inc
+1-82 files

FreeBSD/src 6146c59. ObsoleteFiles.inc, etc/mtree BSD.usr.dist

mtree: Remove unused MANSUBDIRs

MFC after:      3 days
Fixes:          809504f331fd ("man: Kill off MANSUBDIRs")
Reviewed by:    ziaee
Differential Revision:  https://reviews.freebsd.org/D57029

(cherry picked from commit 1dc1b95163b9e5cf5cbd52c2b979568724746eac)
DeltaFile
+0-8etc/mtree/BSD.usr.dist
+1-0ObsoleteFiles.inc
+1-82 files

FreeBSD/src b9ee42drelease/tools ec2-small.conf

EC2: Don't enable firstboot_pkgs in small flavour

The EC2 "base" flavour installs the devel/py-awscli package at boot
time by default; we don't do this in the "small" flavour, so the
default behaviour was to update the FreeBSD-ports repository and
then do nothing with it.

Turn off firstboot_pkgs by default; if someone is using the "small"
flavour of AMIs and wants to install packages at instance launch
time, they simply need to add 'firstboot_pkgs_enable="YES"' to
/etc/rc.conf (which they must already be editing via user-data, in
order to provide the list of packages they want installed).

Approved by:    re (cperciva)
Sponsored by:   Amazon
MFC after:      3 days
MFC to:         stable/15
Relnotes:       EC2 "small" images now have firstboot_pkgs_enable="NO".


    [2 lines not shown]
DeltaFile
+1-1release/tools/ec2-small.conf
+1-11 files

FreeBSD/src df9f5d3lib/libc/gen timespec_getres.3 timespec_get.3

libc/timespec_get*.3: expose STANDARDS section

We now have .St -isoC-2023, so the STANDARDS section can go live.

Approved by:    re (cperciva)
Fixes:          9b5d724cad10087e34165199e55f15f2df744ed5
MFC after:      1 week

(cherry picked from commit aa92784fcb8a375231058d67f7ccaeaa3e42ed33)
(cherry picked from commit e2fb604d4ddd34207f08d1e1b17c554b6f967927)
DeltaFile
+6-6lib/libc/gen/timespec_getres.3
+5-5lib/libc/gen/timespec_get.3
+11-112 files

FreeBSD/src ae2840elib/libc/stdtime ctime.3

libc/ctime.3: timegm() is in C23.

Approved by:    re (cperciva)
See also:       D53951, https://wiki.freebsd.org/C23
MFC after:      1 week

(cherry picked from commit 68251761c77b2f5ff927cf19bba7d4efa88799de)
(cherry picked from commit e4bca1be11c5edad947d50ce86388bba73489f89)
DeltaFile
+4-3lib/libc/stdtime/ctime.3
+4-31 files

FreeBSD/src 78de09esys/netpfil/ipfw ip_fw_nat.c

ipfw: fix checksum after NAT

When checksum offloading is used, IPFW needs to fix the checksum
after libalias has done NAT. The ipfw_nat() function does so, but
only for mbufs without a receiving interface. However, if, for example,
the packet was sent inside a jail that used checksum offloading over
an epair, ipfw still needs to fix the checksum even though the mbuf
has set a receiving interface (epair).
This patch just removes the check whether a receiving interface is set.

Approved by:    re (cperciva)
PR:                     295057
Reviewed by:            tuexen
Differential Revision:  https://reviews.freebsd.org/D57091

(cherry picked from commit 81b47a7c604f1d563283759572fa7a1f9d4dc56f)
(cherry picked from commit 198379d2c29fae7300b650a96199e51a66b87364)
DeltaFile
+7-8sys/netpfil/ipfw/ip_fw_nat.c
+7-81 files

FreeBSD/src 7e92fb3share/man/man4 mac_do.4

mac_do.4: Jail parameter takes 'new', not 'enable'; uid_t/gid_t are 32-bit

Approved by:    re (cperciva)
MFC after:      1 minute
Sponsored by:   The FreeBSD Foundation

(cherry picked from commit 21df76d01fce35b0398cf38c31928c6f47111d55)
DeltaFile
+4-4share/man/man4/mac_do.4
+4-41 files

FreeBSD/src 4eb9693sys/kern uipc_usrreq.c

linuxulator: fix SO_PEERCRED emulation after 1d24638d3e8

For Linux binaries, sopt->sopt_td may be null.  And there's also no
need to check it, since struct l_ucred has the same layout on 32-bit
systems as on 64-bit ones.

Approved by:    re (cperciva)
PR:             295333
Reported by:    Miguel Gomes <miguel.dias.gomes at protonmail.com>
Fixes:          1d24638d3e8 ("Fix LOCAL_PEERCRED in 32-bit compat mode")
Reviewed by:    emaste
Differential Revision: https://reviews.freebsd.org/D57032

(cherry picked from commit 4cee16d471d47f4673e4d2c66f7a96d4e6d86ee9)
(cherry picked from commit 57fb48f8e2fca5f069e9bc3cf080608f602919a9)
DeltaFile
+3-1sys/kern/uipc_usrreq.c
+3-11 files

FreeBSD/src 8562c67sys/netinet tcp_subr.c

tcp: improve validation of received TCP over UDP packets

Approved by:    re (cperciva)
Reviewed by:            glebius, pouria
Sponsored by:           Netflix, Inc.
Differential Revision:  https://reviews.freebsd.org/D55410

(cherry picked from commit e1886559ea477add82a0a86cddf728f6778f1603)
(cherry picked from commit ede0f15e03e0a172493cd20d1dd2d88b1711156f)
DeltaFile
+17-5sys/netinet/tcp_subr.c
+17-51 files

FreeBSD/src fee6765sys/netinet sctp_syscalls.c

sctp: fix NOINET build

Approved by:    re (cperciva)
Reported by:            ngie
Fixes:                  454212b9718b ("sctp: fix so_proto when peeling off a socket")

(cherry picked from commit 6bd97e9e01ff159eef49b2521fdbe67d5db10d95)
(cherry picked from commit 9c440e552c4cc252fe150b5f0edef9b8cd75a72f)
DeltaFile
+20-1sys/netinet/sctp_syscalls.c
+20-11 files

FreeBSD/src 19114e8usr.sbin/fwget/pci pci_network_intel pci_network_realtek

fwget: update realtek and intel pci entries

For Realtek we only add new entries.

For Intel the old way of extracting IDs from the driver no longer
works.  The new list is shortened as we drop more specific entries
which were already covered by wildcard entries.  The new lists are
also sorted within the groups.
There are 4 entries the new driver no longer carries but are still
present in older versions, so we keep them manually.

Approved by:    re (cperciva)
Sponsored by:   The FreeBSD Foundation

(cherry picked from commit ca67cfa5237f7ac537ca8611054b5af2098e2d86)
(cherry picked from commit 3f702b299aa1d7625ee0e520c827e73e355775c9)
DeltaFile
+74-178usr.sbin/fwget/pci/pci_network_intel
+4-1usr.sbin/fwget/pci/pci_network_realtek
+78-1792 files