unr(9): fix iterator with trivial unit allocations
Hoist the check that we've scanned all the unrs to the top of the
loop since none might have been allocated e.g., if we've only used
allocated units in order with alloc_unr() and never freed any.
Add a test of the trivial case.
Reviewed by: kib, markj
Sponsored by: Innovate UK
Fixes: a014e0a3987a ("unr(9): add iterator interface")
Differential Revision: https://reviews.freebsd.org/D62139
ports.cgi: clarify the help page
Explain that ^ anchors a search at the start of a name, and that
the Dependencies search is the reverse of the Dependencies list
shown for each port. Simplify the Package Name description,
rename "External Links" to "Result Links" and shorten the
FreshPorts link text.
ports.cgi: style the "nothing found" message
Show "Sorry, nothing found." in a larger font and give the
message and the result counter ids for styling.
www/mod_auth_kerb2: Deprecate and mark BROKEN
The module uses the krb5_rc_dfl_* interfaces, which MIT Kerberos no
longer exports. The module builds but cannot be loaded with the
GSSAPI_MIT option, and with the default GSSAPI_BASE option on
FreeBSD 15.1, where the base Kerberos is MIT. The last upstream release
is from 2008.
Mark GSSAPI_MIT and GSSAPI_BASE on FreeBSD 15.1 and later as BROKEN and
deprecate the port in favor of www/mod_auth_gssapi, with removal on
2027-01-31.
PR: 279586
Sponsored by: Netzkommune GmbH
(cherry picked from commit bd300f00c97dfd58dae7337ef7b0ee812cdb1477)
www/mod_auth_kerb2: Fix build with the GSSAPI_HEIMDAL option
With the GSSAPI_HEIMDAL option enabled the build fails with
"incompatible function pointer types", because accept_sec_token is
declared with a const gss_cred_id_t argument while Heimdal's
gss_accept_sec_context() takes a gss_const_cred_id_t. Use
gss_const_cred_id_t in the pointer type, applied only for this option.
PR: 277660
Sponsored by: Netzkommune GmbH
(cherry picked from commit 8a6b778f837584591f037034a557423f12a6c967)
www/mod_auth_kerb2: Deprecate and mark BROKEN
The module uses the krb5_rc_dfl_* interfaces, which MIT Kerberos no
longer exports. The module builds but cannot be loaded with the
GSSAPI_MIT option, and with the default GSSAPI_BASE option on
FreeBSD 15.1, where the base Kerberos is MIT. The last upstream release
is from 2008.
Mark GSSAPI_MIT and GSSAPI_BASE on FreeBSD 15.1 and later as BROKEN and
deprecate the port in favor of www/mod_auth_gssapi, with removal on
2027-01-31.
PR: 279586
Sponsored by: Netzkommune GmbH
dummynet: mark sysctls as CTLFLAG_VNET
sysctl_hash_size() and sysctl_limits() read and write V_dn_cfg, the current
VNET's dummynet configuration, but their sysctls lack CTLFLAG_VNET, so a VNET
jail reads its own values (100 slots, 64 buckets) and cannot set them: a queue
longer than 100 packets cannot be configured in a jail, and the host's setting
Reviewed by: kp
Sponsored by: Rubicon Communications, LLC ("Netgate")
pf: fix error handling in pf_ioctl_addrule()
If we bail out of pf_ioctl_addrule() before the pf_addr_setup() calls
the subsequent pf_free_rule() will end up dereferencing a NULL pointer.
Check for NULL before freeing dynaddr or tables.
PR: 301184
Submitted by: laamalif at proton.me
Reviewed by: kp
Sponsored by: Rubicon Communications, LLC ("Netgate")
pfsync: account for second tickover in bulk updates
When one peer requests a bulk update it keeps track of when it sent this
request. The exporting peer includes 'endtime', indicating how long it
took to send the entire update along with its final message.
That allows the receiving peer to verify that the entire update was done
in response to its most recent request. However, due to different second
tickovers this calculation might be off by one.
Use milliseconds internally. This does not change the wire protocol,
'endtime' is still expressed in seconds. When the exporting peer
computes this value it will implicitly round down.
PR: 300824
Sponsored by: Rubicon Communications, LLC ("Netgate")
cpufreq_dt: Do not use an uninitialised OPP when restoring the state
cpufreq_dt_set() only looks up the current OPP (copp) when the voltage
cannot be read from the regulator. When it can, which is the usual
case, copp is never set but the two error paths that restore the
previous state still use it: a failure to set the clock reads the
voltage limits of copp and a failure to lower the voltage reads its
frequency.
Restore the frequency with the one that was read from the clock before
the change, and look up the current OPP when the voltage has to be
restored, skipping it if there is none.
Fixes: a701764e9c50 ("Improve cpufreq_dt.")
Reported by: llm-postcr
cpufreq_dt: Use all the OPPs when the hardware version is unknown
An OPP with opp-supported-hw is only used if the hardware version, given
by the vendor specific code, matches it. When no vendor class handles
the OPP table, for example the ones of the TI and i.MX SoCs, the version
is unknown, so every OPP that has the property was dropped and the table
ended up empty. The driver still attached and cpufreq_dt_find_opp()
returned a pointer to an entry that does not exist, using an
uninitialised index.
Use all the OPPs when the hardware version is unknown, as if the
property was not there, which is what the driver did before the
property was honored. Also make cpufreq_dt_find_opp() return NULL for
an empty table, as its callers already expect.
Fixes: 7178a47a4ffd ("cpufreq_dt: Honor opp-supported-hw and opp-microvolt-<name>")
Reported by: llm-postcr