FreeBSD/src e75b324sys/kern kern_descrip.c

kern_descrip.c: Clarify allocation and freeing of fd map in fdgrowtable()

When expanding a file table, the condition for allocating a new map
is NDSLOTS(nnfiles) > NDSLOTS(onfiles) whereas for freeing the old map
is NDSLOTS(onfiles) > NDSLOTS(NDFILE).

If a previously expanded file table were to be expanded slightly again
such that the map did not need to be increased, then fdgrowtable could
still free the current map.

This does not happen currently as nnfiles is rounded up to a multiple of
NDENTRIES at the beginning of fdgrowtable() so that every enlargement
after the first enlargement will always require a larger map.

Though the logic is currently correct, it is unclear and should the
earlier rounding up of nnfiles be relaxed or remove, the logic would
be incorrect. This patch therefore adds comments and invariants checking
the size of the table and map, and updates the map free condition so
that it is absolutely clear that the old map will only be deallocated

    [5 lines not shown]
DeltaFile
+33-5sys/kern/kern_descrip.c
+33-51 files

FreeBSD/src 20cd1b4lib/libifconfig libifconfig_sfp.c libifconfig_carp.c

lib/libifconfig: Fix pointer-sign warnings

Fix all pointer-sign warnings generated when compiling libifconfig.

One of these warnings comes from the misuse of snl_add_msg_attr_string
for a byte array.  Though userland treats carpr_key as a string, it is
actually an array of bytes.  Handle it as such in libifconfig.

While here, fix a small consistency nit in ifconfig_sfp_get_sfp_dump.

Signed-off-by: Ryan Moeller <rmoeller.dev at gmail.com>
Reviewed by: imp, zlei
Pull Request: https://github.com/freebsd/freebsd-src/pull/1850
DeltaFile
+5-5lib/libifconfig/libifconfig_sfp.c
+3-2lib/libifconfig/libifconfig_carp.c
+8-72 files

FreeBSD/src 92378e0usr.sbin/periodic/etc/daily 404.status-zfs

periodic/daily: show verbose zpool status when errors are detected

When zpool status -x reports errors, the output only shows basic error
counts without identifying which files are affected. Replace the
unconditional echo of the brief status with verbose output (zpool
status -v) in the error path so administrators can see exactly which
files have been damaged.

The healthy/no-pools path still shows the brief status.

PR: 223243
Signed-off-by: Po Han Chen <hypery11 at gmail.com>
Reviewed by: imp, jlduran, asomers
Pull Request: https://github.com/freebsd/freebsd-src/pull/2089
DeltaFile
+3-1usr.sbin/periodic/etc/daily/404.status-zfs
+3-11 files

FreeBSD/src aa462efsys/modules/dtb/rockchip Makefile

rockchip: support CM3588 board

Signed-off-by: Martin Filla <freebsd at sysctl.cz>
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/2086
DeltaFile
+2-1sys/modules/dtb/rockchip/Makefile
+2-11 files

FreeBSD/src 50c1240usr.bin/mkimg mkimg.c

mkimg: Fix parsing of filenames containing colons

When using PART_KIND_FILE (-p type:=filename), mkimg uses a colon
to separate an optional offset (e.g., filename:offset).

strsep() was being used to split the string at the first colon.
This caused failures when the filename itself contained a colon
(e.g., "th:is").

This patch uses stat() to check if the entire string exists as a
file. If so, use it directly without splitting.

If the full string is not a valid file, fall back to splitting
at the right-most colon using strrchr().

Uses errc() to fail and exit immediately when an existing directory
is input instead of a file in PART_KIND_FILE mode.

PR: 257960

    [3 lines not shown]
DeltaFile
+21-3usr.bin/mkimg/mkimg.c
+21-31 files

FreeBSD/src fbbf71flib/libpmc pmclog.3 pmclog.h

libpmc: surface raw TSC in pmclog events

The pmclog record header carries the raw TSC for each event. Export it
in struct pmclog_ev, fix JSON output to emit it unsigned, and preserve
the installed header ABI by overlaying pl_tsc with the legacy pl_ts
storage.

Update pmclog(3) to document the TSC semantics and the legacy alias.

Sponsored by: AMD
Signed-off-by: Andre Silva <andasilv at amd.com>
Reviewed by: imp, mhorne, Ali Mashtizadeh
Pull Request: https://github.com/freebsd/freebsd-src/pull/2085
DeltaFile
+27-2lib/libpmc/pmclog.3
+4-2lib/libpmc/pmclog.h
+2-3lib/libpmc/libpmc_json.cc
+2-2lib/libpmc/pmclog.c
+35-94 files

FreeBSD/src ee12645usr.sbin/pmcstat pmcstat.8 pmcstat_log.c

pmcstat: print raw TSC in decoded log output

Extend pmcstat -R output to include the raw TSC for each decoded record
and print tsc_freq from the initialize record so TSC deltas can be
converted to elapsed time.

Update the pmcstat documentation to describe the decoded output and the
architecture-specific TSC behavior.

Sponsored by: AMD
Signed-off-by: Andre Silva <andasilv at amd.com>
Reviewed by: imp, mhorne, Ali Mashtizadeh
Pull Request: https://github.com/freebsd/freebsd-src/pull/2085
DeltaFile
+25-1usr.sbin/pmcstat/pmcstat.8
+6-2usr.sbin/pmcstat/pmcstat_log.c
+3-2usr.sbin/pmcstat/pmcstat.h
+34-53 files

FreeBSD/src 3174405sys/dev/asmc asmcvar.h

asmc: correctly label ASMC_KEY_FANMINSPEED as read-write

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/2137
DeltaFile
+1-1sys/dev/asmc/asmcvar.h
+1-11 files

FreeBSD/src e0b2234usr.sbin/newsyslog newsyslog.conf.5

newsyslog.conf(5): use "rotated" instead of "trimmed"

The man page used "trimmed" to describe log rotation, which is
misleading as it suggests the file is truncated to a specific
size rather than being rotated (renamed and a new file created).
Replace all instances of "trimmed" with "rotated" to match the
actual behavior and the terminology used elsewhere in the page.

PR: 278671
Signed-off-by: Kit Dallege <xaum.io at gmail.com>
Reviewed by: imp,ziaee
Pull Request: https://github.com/freebsd/freebsd-src/pull/2099
DeltaFile
+5-5usr.sbin/newsyslog/newsyslog.conf.5
+5-51 files

FreeBSD/src 75e7709sys/dev/usb/serial uvscom.c

uvscom: Fix baud rate validation in uvscom_pre_param()

The switch fell through from the supported B150–B115200 cases into default
and returned EINVAL for every speed.  Break out before default so valid
rates return success, matching uvscom_cfg_param().

Signed-off-by: Weixie Cui <cuiweixie at gmail.com>
Reviewed by: imp,aokblast
Pull Request: https://github.com/freebsd/freebsd-src/pull/2110
DeltaFile
+2-1sys/dev/usb/serial/uvscom.c
+2-11 files

FreeBSD/src 7634043sys/arm/broadcom/bcm2835 bcm2838_xhci.c

Fix xhci detection on Raspberry Pi 400

If you use the FreeBSD pre-build Raspberry Pi image, it does not include
the specific .dtb file for the Raspberry Pi 400. On this hardware, it
will fall back to attempting to load the Raspberry Pi 4 .dtb file
instead.

The Pi 4 .dtb file reports the board compatible name as
"raspberrypi,4-model-b" The Pi 400 .dtb file reports the board
compatible name as "raspberrypi,400" However, it's even better to
use the generic name.

When using the official Pi 400 .dtb file from the Raspberry Pi Firmware
collection, the FreeBSD xhci driver currently fails to recognize this,
and thus fails to initialize the xhci device. This means no external
USB, or internal USB (which feeds the build-in keyboard)

The official Raspberry Pi FreeBSD image has been working on the Pi 400
"on accident" simply because it didn't include the Pi 400 .dtb file

    [9 lines not shown]
DeltaFile
+2-2sys/arm/broadcom/bcm2835/bcm2838_xhci.c
+2-21 files

FreeBSD/src 32cc01elib/libc/gen sysctl.3

sysctl.3: Correct kern and kern.proc type descriptions

Fix several incorrect sysctl.3 type and mutability descriptions so the
manpage matches the actual kern and kern.proc interfaces.

Signed-off-by: Tyler Waddell <tyler.waddell112 at gmail.com>
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/2128
DeltaFile
+17-10lib/libc/gen/sysctl.3
+17-101 files

FreeBSD/src b5b9c65sys/dev/asmc asmcvar.h asmc.c

asmc: add support for MacBookPro13,1

This commit adds support for the MacBookPro13,1 (late 2016, 13-inch). The SMC
keys were collected from https://logi.wiki/index.php/SMC_Sensor_Codes. Two
temperature keys are omitted because they fail to be read: TI0P (IO Proximity)
and Ta0P (Ambient Air).

Note that the with this model the `dev.asmc.0.fan.0.minspeed` setting only
applies when the fans have been activated by the system. In my testing, the fans
did not spin up until CPU temperatures hit about 80C. At lower temperatures, the
fans will happily ignore the minimum speed and remain at 0 rpm.

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/2137
DeltaFile
+18-0sys/dev/asmc/asmcvar.h
+6-0sys/dev/asmc/asmc.c
+24-02 files

FreeBSD/ports bcf59efdevel/R-cran-webfakes distinfo Makefile

devel/R-cran-webfakes: Update to 1.4.1

Changelog: https://cran.r-project.org/web/packages/webfakes/news/news.html
DeltaFile
+3-3devel/R-cran-webfakes/distinfo
+1-1devel/R-cran-webfakes/Makefile
+4-42 files

FreeBSD/ports 3614ff2devel/jenkins-lts distinfo Makefile

devel/jenkins-lts: Update to 2.555.1

Sponsored by:   The FreeBSD Foundation
DeltaFile
+3-3devel/jenkins-lts/distinfo
+1-2devel/jenkins-lts/Makefile
+4-52 files

FreeBSD/ports f0a2b87devel/jenkins distinfo Makefile

devel/jenkins: Update to 2.559

Sponsored by:   The FreeBSD Foundation
DeltaFile
+3-3devel/jenkins/distinfo
+1-2devel/jenkins/Makefile
+4-52 files

FreeBSD/ports ae090fbsecurity/zaproxy Makefile

security/zaproxy: Fix JAVA_VERSION to 17 and 20

- Bump PORTREVISION

PR:             294176
Reported by:    ronald
DeltaFile
+2-2security/zaproxy/Makefile
+2-21 files

FreeBSD/ports a079869net-im/jitsi-videobridge Makefile, net-im/jitsi-videobridge/files jitsi-videobridge.in

net-im/jitsi-videobridge: Fix start issue with java17

- Bump PORTREVISION

PR:             294544
Reported by:    Yasuhito FUTATSUKI <freebsd-bug-report-yf __at_ yf.bsdclub.org>
DeltaFile
+1-1net-im/jitsi-videobridge/Makefile
+1-1net-im/jitsi-videobridge/files/jitsi-videobridge.in
+2-22 files

FreeBSD/ports 77e1b41math/symengine Makefile, math/symengine/files patch-CMakeLists.txt

math/symengine: Fix configure

LLVM wasn't found.

Reported by:    fallout
DeltaFile
+0-13math/symengine/files/patch-CMakeLists.txt
+2-3math/symengine/Makefile
+2-162 files

FreeBSD/doc d398c13shared releases.adoc, website/content/en/releng _index.adoc

14.5: Connect upcoming release to website

Approved by:    re (implicit)
Sponsored by:   OpenSats Initiative
DeltaFile
+2-2shared/releases.adoc
+1-1website/content/en/releng/_index.adoc
+3-32 files

FreeBSD/doc 7328388website/content/en/releases/14.5R hardware.adoc

14.5: Add hardware notes generated from stable/14

Approved by:    re (implicit)
Sponsored by:   OpenSats Initiative
DeltaFile
+4,537-238website/content/en/releases/14.5R/hardware.adoc
+4,537-2381 files

FreeBSD/doc 0e303c3website/content/en/releases/14.5R schedule.adoc

14.5: Insert details specific to 14.5

Approved by:    re (implicit)
Sponsored by:   OpenSats Initiative
DeltaFile
+14-19website/content/en/releases/14.5R/schedule.adoc
+14-191 files

FreeBSD/src 240c229usr.sbin/diskinfo diskinfo.8 diskinfo.c

diskinfo: Align and alphabetize options

MFC after:      3 days

(cherry picked from commit afe57c12e97d5c8773d829c2914f35462a7cdd0c)
DeltaFile
+6-6usr.sbin/diskinfo/diskinfo.8
+5-5usr.sbin/diskinfo/diskinfo.c
+11-112 files

FreeBSD/src 4aef1aebin/sh histedit.c

sh: Increase default history size to POSIX mandated minimum of 128

The default history size in bin/sh is currently 100 however POSIX.1-2024
mandates that a default greater than or equal to 128 shall be used,
therefore this increases the default history size in /bin/sh to 128.

POSIX standards reference:
https://pubs.opengroup.org/onlinepubs/9799919799/utilities/sh.html#tag_20_110_08

MFC after:      3 days
Reviewed by:    emaste, jilles, jlduran, ziaee
Signed-off-by:  Kristofer Peterson <kris at tranception.com>
Closes:         https://github.com/freebsd/freebsd-src/pull/2093

(cherry picked from commit 81b2055c49dec8884d7bb23503f1dfeac37ac95d)
DeltaFile
+1-1bin/sh/histedit.c
+1-11 files

FreeBSD/src 12ca9c6bin/timeout timeout.1

timeout.1: Document non-POSIX options

MFC after:              3 days
Reviewed by:            Aaron Li <aly at aaronly.me>, ziaee
Differential Revision:  https://reviews.freebsd.org/D56090

(cherry picked from commit b1bc748430b5ee79ae103c464dbf5ebc8802f782)
DeltaFile
+5-1bin/timeout/timeout.1
+5-11 files

FreeBSD/doc 6898ef9website/content/en/releases/14.5R relnotes.adoc schedule.adoc

14.5: Insert version numbers

Approved by:    re (implicit)
Sponsored by:   OpenSats Initiative
DeltaFile
+6-6website/content/en/releases/14.5R/relnotes.adoc
+5-5website/content/en/releases/14.5R/schedule.adoc
+5-5website/content/en/releases/14.5R/installation.adoc
+4-5website/content/en/releases/14.5R/readme.adoc
+4-4website/content/en/releases/14.5R/_index.adoc
+4-4website/content/en/releases/14.5R/errata.adoc
+28-291 files not shown
+30-317 files

FreeBSD/doc ca6dd17website/content/en/releases/14.5R hardware.adoc relnotes.adoc

14.5: Add autogenerated files to website

These files are as produced by 'make generate-release'; subsequent
commits will fill in details specific to 14.5.

Approved by:    re (implicit)
Sponsored by:   OpenSats Initiative
DeltaFile
+867-0website/content/en/releases/14.5R/hardware.adoc
+207-0website/content/en/releases/14.5R/relnotes.adoc
+157-0website/content/en/releases/14.5R/readme.adoc
+90-0website/content/en/releases/14.5R/installation.adoc
+71-0website/content/en/releases/14.5R/errata.adoc
+64-0website/content/en/releases/14.5R/schedule.adoc
+1,456-01 files not shown
+1,487-07 files

FreeBSD/ports 2b9c7e6cad/fasm Makefile

cad/fasm: Fix dependency

Reported by:    fallout
DeltaFile
+1-1cad/fasm/Makefile
+1-11 files

FreeBSD/ports 61837aawww/p5-RT-Client-REST distinfo Makefile

www/p5-RT-Client-REST: Update 0.72 => 0.73

Changelog:
https://metacpan.org/release/DJZORT/RT-Client-REST-0.73/source/CHANGES

PR:             294567
Sponsored by:   UNIS Labs
DeltaFile
+3-3www/p5-RT-Client-REST/distinfo
+2-1www/p5-RT-Client-REST/Makefile
+5-42 files

FreeBSD/ports ab94ba4misc/openclaw pkg-plist Makefile, misc/openclaw/files package-lock.json package-lock-sharp.json

misc/openclaw: New port: Multi-channel AI gateway with extensible messaging integrations
DeltaFile
+75,163-0misc/openclaw/pkg-plist
+10,392-0misc/openclaw/files/package-lock.json
+610-0misc/openclaw/files/package-lock-sharp.json
+99-0misc/openclaw/Makefile
+24-0misc/openclaw/files/package-lock-node-addon-api.json
+7-0misc/openclaw/distinfo
+86,295-02 files not shown
+86,301-08 files