FreeBSD/src 83a1049. UPDATING

UPDATING: Fix typo objump should be objdump

Approved by:    emaste (mentor)
Fixes:          86edb11e7491 ("Always install llvm-objdump as objdump")
MFC after:      1 day

(cherry picked from commit 376508ef2f794a57606a791166f1ce7f20d3ccaf)
DeltaFile
+1-1UPDATING
+1-11 files

FreeBSD/src 06889e1. UPDATING

UPDATING: Fix typo objump should be objdump

Approved by:    emaste (mentor)
Fixes:          86edb11e7491 ("Always install llvm-objdump as objdump")
MFC after:      1 day

(cherry picked from commit 376508ef2f794a57606a791166f1ce7f20d3ccaf)
DeltaFile
+1-1UPDATING
+1-11 files

FreeBSD/src f22ca25. UPDATING

blocklist: Add an UPDATING entry

Add an UPDATING entry about the renaming of blocklist.

Approved by:    emaste (mentor)
Fixes:  7238317403b9 ("blocklist: Rename blacklist to blocklist")
MFC after:      1 day

(cherry picked from commit ffa8165009365ff93050626d880f2d1d6aacc31a)
DeltaFile
+6-0UPDATING
+6-01 files

FreeBSD/src f935c0fcontrib/blocklist/bin blacklistd.8 blacklistd.conf.5, contrib/blocklist/lib libblacklist.3

blacklist: Avoid duplicate manual pages in METALOG

Previously, blacklist man pages were just a symlink to their blocklist
counterpart, this in turn installed blocklist man pages twice, and
resulted in a duplicate error when running metalog_reader.lua -c.

Take advantage of the duplication to document nuances in blacklist, such
as the fact that it uses the new database and socket name (blocklist).
Also, note that it has been renamed to blocklist.  In the future, it
will help to document its deprecation.

Approved by:    emaste (mentor)
Fixes:  7238317403b9 ("blocklist: Rename blacklist to blocklist")
MFC after:      2 days

(cherry picked from commit c6240045536548c22ce40d9ef36c1dc52abcfc9c)
DeltaFile
+308-0contrib/blocklist/bin/blacklistd.8
+242-0contrib/blocklist/bin/blacklistd.conf.5
+188-0contrib/blocklist/lib/libblacklist.3
+136-0contrib/blocklist/bin/blacklistctl.8
+7-8lib/libblacklist/Makefile
+1-3usr.sbin/blacklistd/Makefile
+882-111 files not shown
+883-137 files

FreeBSD/src ba57685contrib/blocklist/libexec blocklistd-helper, libexec/blocklistd-helper blacklistd-helper

blocklist-helper: Silence a bogus pf warning

Silence a bogus warning about (an ethernet) anchor not being found.

It has been reported as PR 280516.  In the meantime, just sweep under
the carpet.

Approved by:    emaste (mentor)
MFC after:      2 days

(cherry picked from commit 2347ca21d657121670e6e7246c6ac32efc996cac)
DeltaFile
+1-1contrib/blocklist/libexec/blocklistd-helper
+1-1libexec/blocklistd-helper/blacklistd-helper
+2-22 files

FreeBSD/src 7f6f213contrib/blocklist/bin blacklistd.c blacklistctl.c, contrib/blocklist/lib old_bl.c blacklist.c

blocklist: Rename blacklist to blocklist

Follow up upstream rename from blacklist to blocklist.

- Old names and rc scripts are still valid, but emitting an ugly warning
- Old firewall rules and anchor names should work, but emitting an ugly
  warning
- Old MK_BLACKLIST* knobs are wired to the new ones

Although care has been taken not to break current configurations, this
is a large patch containing mostly duplicated code.  If issues arise, it
will be swiftly reverted.

Reviewed by:    ivy (pkgbase)
Approved by:    emaste (mentor)
MFC after:      2 days
Relnotes:       yes

(cherry picked from commit 7238317403b95a8e35cf0bc7cd66fbd78ecbe521)
DeltaFile
+592-0contrib/blocklist/bin/blacklistd.c
+554-0contrib/blocklist/lib/old_bl.c
+293-0libexec/blocklistd-helper/blacklistd-helper
+170-0contrib/blocklist/bin/blacklistctl.c
+117-0contrib/blocklist/lib/blacklist.c
+0-97crypto/openssh/blacklist.c
+1,726-9760 files not shown
+2,570-28866 files

FreeBSD/src a719ef6contrib/blocklist/bin blocklistd.c, contrib/blocklist/lib libblocklist.3

blocklist: Revert upstream commit ddf6d71

Upstream commit ddf6d71 ("implement BLOCKLIST_BAD_USER as a "one-count"
failure") introduced BLOCKLIST_BAD_USER with a one-count failure
mechanism.  BLOCKLIST_AUTH_FAIL was implemented with a two-count failure
mechanism.  Since we have been utilizing BLOCKLIST_AUTH_FAIL, the number
of failed attempts now doubles towards the maximum limit (nfails),
giving system administrators the impression that the number of failed
authentication attempts is inaccurate.

Revert this commit until a consensus has been reached.  We do not want
to introduce yet another breaking change with the renaming of the
library.

Approved by:    emaste (mentor)
MFC after:      2 days

(cherry picked from commit 4d56eb007b18881becb2107f87bd2a7edca3e6bf)
DeltaFile
+19-13contrib/blocklist/lib/libblocklist.3
+9-9contrib/blocklist/bin/blocklistd.c
+28-222 files

FreeBSD/src 1a08326contrib/blocklist/bin blocklistd.c blacklistd.c, contrib/blocklist/libexec blocklistd-helper

MFV: Import blocklist 2025-04-28 (8aa81bf)

Merge commit '70f30afd4e9af5a51ee324d97e4d8c5f2124ec15'

Breaking changes:

- Upstream commit 24932b6 ("blocklistd: log the conf file line number
  with bad protocol errors") breaks backward database compatibility.
  An error will be displayed:
      Key size mismatch 296 != 288
  A new and compatible database, with the new name, will be created when the
  service starts (committed separately).

- Upstream commit ddf6d71 ("implement BLOCKLIST_BAD_USER as a
  "one-count" failure") introduced BLOCKLIST_BAD_USER with a one-count
  failure mechanism.  BLOCKLIST_AUTH_FAIL was implemented with a
  two-count failure mechanism.  Since we utilize BLOCKLIST_AUTH_FAIL, the
  number of failed attempts now doubles towards the maximum limit
  (nfails).  This commit will be reverted separately.

    [10 lines not shown]
DeltaFile
+592-0contrib/blocklist/bin/blocklistd.c
+0-576contrib/blocklist/bin/blacklistd.c
+303-0contrib/blocklist/bin/blocklistd.8
+0-284contrib/blocklist/bin/blacklistd.8
+272-0contrib/blocklist/libexec/blocklistd-helper
+237-0contrib/blocklist/bin/blocklistd.conf.5
+1,404-86062 files not shown
+2,833-2,12768 files

FreeBSD/src 4fc1e75. RELNOTES

RELNOTES: Fix a typo in the 5000d023a446 entry

Reported by:    matteo
DeltaFile
+1-1RELNOTES
+1-11 files

FreeBSD/src 0d4642asbin/geom Makefile, sbin/geom/core geom.c

Add --libxo support for geom status and list sub commands.

Submitted-by: Johan Söllvander
MFC-after:    1 week
Differential Revision: https://reviews.freebsd.org/D37615
DeltaFile
+156-76sbin/geom/core/geom.c
+1-1sbin/geom/Makefile
+157-772 files

FreeBSD/src 2241cd1sys/netinet tcp_hpts_internal.h

tcp: add missing header file

Reviewed by:    tuexen
Sponsored by:   Netflix, Inc.
DeltaFile
+184-0sys/netinet/tcp_hpts_internal.h
+184-01 files

FreeBSD/src bf48bc9sys/netinet tcp_hpts.c tcp_hpts.h

tcp: remove unused argument in HPTS

Reviewed by:    tuexen
Sponsored by:   Netflix, Inc.
DeltaFile
+2-7sys/netinet/tcp_hpts.c
+0-7sys/netinet/tcp_hpts.h
+0-5sys/netinet/tcp_hpts_test.c
+2-193 files

FreeBSD/src 156dfc3sys/netinet tcp_hpts_test.c tcp_hpts.c, sys/netinet/tcp_stacks rack.c bbr.c

tcp: use time instead of slots in the HPTS API

This makes slots an internal concept of HPTS.

Reviewed by:    tuexen
Sponsored by:   Netflix, Inc.
DeltaFile
+122-122sys/netinet/tcp_stacks/rack.c
+62-63sys/netinet/tcp_stacks/bbr.c
+30-29sys/netinet/tcp_hpts_test.c
+11-10sys/netinet/tcp_hpts.c
+7-9sys/netinet/tcp_hpts.h
+232-2335 files

FreeBSD/src bfdd5b6sys/conf NOTES, sys/netinet tcp_hpts_test.c tcp_hpts.c

tcp: improve testing of HPTS

Improve the HPTS API to allow testing and add several tests.

Reviewed by:    tuexen
Sponsored by:   Netflix, Inc.
DeltaFile
+1,604-14sys/netinet/tcp_hpts_test.c
+462-372sys/netinet/tcp_hpts.c
+16-14sys/netinet/tcp_hpts.h
+7-0sys/tests/ktest.h
+3-0sys/netinet/tcp_lro_hpts.c
+1-0sys/conf/NOTES
+2,093-4001 files not shown
+2,094-4007 files

FreeBSD/src 0eef2b4sys/netinet tcp_hpts.c

tcp: fix a bug in HPTS

Reviewed by:    tuexen
Sponsored by:   Netflix, Inc.
DeltaFile
+5-6sys/netinet/tcp_hpts.c
+5-61 files

FreeBSD/src e79941bsys/netinet tcp_hpts.c

tcp: fix KASSERT in HPTS

Reviewed by:    tuexen
Sponsored by:   Netflix, Inc.
DeltaFile
+26-18sys/netinet/tcp_hpts.c
+26-181 files

FreeBSD/src 23461f4sys/netinet tcp_hpts.c tcp_hpts.h, sys/netinet/tcp_stacks bbr.c rack.c

tcp: remove notion of ticks from HPTS

To improve consistency of the code, don't use slots and ticks,
just use slots.

Reviewed by:    tuexen
Sponsored by:   Netflix, Inc.
DeltaFile
+66-77sys/netinet/tcp_hpts.c
+0-19sys/netinet/tcp_hpts.h
+0-3sys/netinet/tcp_stacks/bbr.c
+0-3sys/netinet/tcp_stacks/rack.c
+66-1024 files

FreeBSD/src 790d941sys/netinet tcp_hpts.c tcp_hpts.h, sys/netinet/tcp_stacks rack.c bbr.c

tcp: simplify tcp_hpts_insert signature

Reviewed by:    tuexen
Sponsored by:   Netflix, Inc.
DeltaFile
+10-9sys/netinet/tcp_hpts.c
+6-11sys/netinet/tcp_stacks/rack.c
+8-4sys/netinet/tcp_hpts.h
+4-7sys/netinet/tcp_stacks/bbr.c
+28-314 files

FreeBSD/src be1ad90sys/modules/ktest Makefile, sys/modules/ktest/ktest_tcphpts Makefile

tcp: Initial ktest for HPTS

Reviewed by:            rrs, tuexen
Sponsored by:           Netflix, Inc.
Differential Revision:  https://reviews.freebsd.org/D52979
DeltaFile
+76-0sys/netinet/tcp_hpts_test.c
+13-0sys/modules/ktest/ktest_tcphpts/Makefile
+10-2tests/atf_python/ktest.py
+4-0tests/sys/netinet/tcp_hpts_test.py
+3-0sys/tests/ktest.h
+2-1sys/modules/ktest/Makefile
+108-31 files not shown
+109-37 files

FreeBSD/src 3b5ec53. Makefile.inc1

Makefile.inc1: Build source packages before sets

To build set-src, we first need to build the source packages.  Add a
.ORDER to ensure this happens.  Otherwise, in a parallel build, sets
might be built before the src-* packages have finished building, and
set-src will be mysteriously missing.

MFC after:      3 seconds
Reported by:    cperciva
Actually diagnosed by:  jrtc27
One-line fix by:        ivy
Reviewed by:    cperciva
Differential Revision:  https://reviews.freebsd.org/D53076

(cherry picked from commit ea5685ba79fc9309698ef72cf48bc1f0c91ad3dd)
DeltaFile
+1-0Makefile.inc1
+1-01 files

FreeBSD/src ea5685b. Makefile.inc1

Makefile.inc1: Build source packages before sets

To build set-src, we first need to build the source packages.  Add a
.ORDER to ensure this happens.  Otherwise, in a parallel build, sets
might be built before the src-* packages have finished building, and
set-src will be mysteriously missing.

MFC after:      3 seconds
Reported by:    cperciva
Actually diagnosed by:  jrtc27
One-line fix by:        ivy
Reviewed by:    cperciva
Differential Revision:  https://reviews.freebsd.org/D53076
DeltaFile
+1-0Makefile.inc1
+1-01 files

FreeBSD/src d5cfca0tests/sys/vm mmap_test.c

mmap_test: determine page size at run time rather than compile time

Sponsored by:   Netflix
Reviewed by:    imp
Differential Revision:  https://reviews.freebsd.org/D52735
DeltaFile
+16-15tests/sys/vm/mmap_test.c
+16-151 files

FreeBSD/src 24458c2sbin/mdconfig/tests mdconfig_test.sh

mdconfig_test: determine page size at run time rather than assuming 4k

Sponsored by:   Netflix
Reviewed by:    imp
Differential Revision:  https://reviews.freebsd.org/D52736
DeltaFile
+8-7sbin/mdconfig/tests/mdconfig_test.sh
+8-71 files

FreeBSD/src 573cb59lib/libbz2 Makefile bzip2.pc.in

MFC: libbz2: add pkg-config file (bzip2.pc)

Add generation of a bzip2.pc file for use with pkg-config and create
a basic template as bzip2.pc.in.

This allows other software to easily locate and link against libbz2
using standard pkg-config mechanisms instead of manual compiler and
linker flags.

The version number is extracted automatically from bzlib.h to keep
it consistent with the library sources.

Approved by:    re (cperciva)
Tested: pkg-config --exists --print-errors "bzip2 >= 1.0.9" (fail, expected)
        pkg-config --exists --print-errors "bzip2 >= 1.0" (succeeded)
        pkg-config --libs bzip2 (-lbz2)
        pkg-config --cflags bzip2 ()

(cherry picked from commit 586319793368cbc664b48187bda60d27e171753a)
(cherry picked from commit f139a644d3ee01667480ff6d698757d3e3689794)
DeltaFile
+13-0lib/libbz2/Makefile
+11-0lib/libbz2/bzip2.pc.in
+24-02 files

FreeBSD/src 376508e. UPDATING

UPDATING: Fix typo objump should be objdump

Approved by:    emaste (mentor)
Fixes:          86edb11e7491 ("Always install llvm-objdump as objdump")
MFC after:      1 day
DeltaFile
+1-1UPDATING
+1-11 files

FreeBSD/src 10d88a7usr.sbin/fwget/pci pci_network_mediatek

fwget: pci: mediatek: correct package name

The port is called wifi-firmware-mt76-kmod not "mediatek" in the
moddle.

Reported by:    Lars Tunkrans (drsnx60 gmail.com)
MFC after:      3 days
Reviewed by:    emaste, jrm, imp
Differential Revision: https://reviews.freebsd.org/D53067
DeltaFile
+18-18usr.sbin/fwget/pci/pci_network_mediatek
+18-181 files

FreeBSD/src ffa8165. UPDATING

blocklist: Add an UPDATING entry

Add an UPDATING entry about the renaming of blocklist.

Approved by:    emaste (mentor)
Fixes:  7238317403b9 ("blocklist: Rename blacklist to blocklist")
MFC after:      1 day
DeltaFile
+6-0UPDATING
+6-01 files

FreeBSD/src 1406de2lib/libc/stdlib realpath.c, lib/libc/tests/gen realpath2_test.c

realpath: Report correct path on failure

If lstat() fails with EACCES or ENOTDIR, the path we need to return in
the caller-provided buffer is that of the parent directory (which is
either unreadable or not a directory; the latter can only happen in the
case of a race) rather than that of the child we attempted to stat.

Sponsored by:   Klara, Inc.
Reviewed by:    markj
Differential Revision:  https://reviews.freebsd.org/D53025
DeltaFile
+12-2lib/libc/stdlib/realpath.c
+2-9lib/libc/tests/gen/realpath2_test.c
+14-112 files

FreeBSD/src 7c66667lib/libc/stdlib realpath.3

realpath: Belatedly document POSIX conformance

We've been mostly POSIX-conforming since r236400 and fully since r240410,
which fixed a corner case where a missing non-leaf directory would be
reported as ENOTDIR instead of ENOENT.

Sponsored by:   Klara, Inc.
Fixes:          7877ed7ce33e ("Avoid mapping ENOENT to ENOTDIR for non-existent path components.")
Reviewed by:    ziaee, markj
Differential Revision:  https://reviews.freebsd.org/D53027
DeltaFile
+6-6lib/libc/stdlib/realpath.3
+6-61 files

FreeBSD/src f3386dflib/libc/tests/gen realpath2_test.c

realpath: Additional test cases

* Passing NULL should result in EINVAL
* Passing an empty path should result in ENOENT
* Failure with a non-null buffer should leave a partial result.  As
  pointed out in a comment in the test case, this reveals a discrepancy
  between the documentation and reality.

Sponsored by:   Klara, Inc.
Reviewed by:    markj
Differential Revision:  https://reviews.freebsd.org/D53024
DeltaFile
+101-12lib/libc/tests/gen/realpath2_test.c
+101-121 files