firmware: do revision/patch and .0 version strips where they matter
This moves stripping to the functions it matters. Also reduces diff
against stable.
Reland "Improve isGuaranteedNotToBeUndefOrPoison for global variables (#247136)" (#247682)
This was reverted by #247651 due to an issue with getGlobalSize not
handling opaque struct types. The fix is trivial and we can just return
0 for those cases. Added an extra freeze_of_gep_opaque_global test for
this in InstCombine/freeze.ll.
kobo: Fix detection of the non-removable SD card.
The SD card was not recognized as a non-removable card.
Tested: KOBO and NETWALKER kernels build with no warnings.
On a Kobo Glo (N613), ld0 did not attach before this change. With
this change, "ld0 at sdmmc0" appears and the card is read in 4-bit
mode at 50 MHz. NETWALKER is build-tested only.
Services: Kea DHCPv4/6: Offer one "Add Reservation" button per lease identifier
A reservation is matched on exactly one identifier (MAC address or
client id for DHCPv4, DUID or MAC address for DHCPv6), but the leases
pages passed both to the reservation dialog, which the model then
refused to save.
Show a button for each identifier the lease has and pass only that one,
so the choice stays with the user and the dialog can be saved as is.
Co-Authored-By: Claude Fable 5.2 <noreply at anthropic.com>
(cherry picked from commit afb5708cd9182567847612c9105d4ff674fe468a)
interfaces: ifctl: remove eval and hash interface names for variable use
Simplify the export and print and use a md5 checksum. We could still
return garbage names to the caller, but that's only because they do
exist and FreeBSD virtually has no restrictions on the interface name
except when tools prohibit something due to implementation choices.
Reported by: squirt1e, outis, atum (MiniMax Cyber)
(cherry picked from commit 80f190d8a61bd2cb42e3b6f9f5f0134658791561)
[DAG] Add trunc(select) narrowing tests (NFC)
DAGCombiner::visitTRUNCATE narrows trunc(select c, a, b) to
select c, (trunc a), (trunc b) when truncating is free. These tests pin
its current output for #223763, which stops it for i8 on X86 with CMOV.
All test IR is what opt -O2 produces for x86-64, s390x and amdgcn with
their real datalayouts, so it is IR the backend can see. InstCombine
already narrows a trunc of a select with a constant arm, so that case
only comes from truncates the DAG creates, here a shift amount.
X86 (x86-64, i686 with and without CMOV):
- trunc_select_i8: computed arms of an i32 select truncated to i8. With
CMOV, LowerSELECT widens the i8 select with a MOVZX of each arm
computed in i8.
- trunc_select_i32: an i64 select truncated to i32, which has a CMOV of
its own width.
- trunc_select_i7: an illegal type, legalized to i8.
- trunc_select_shift_amount: a select of two constant shift amounts,
[14 lines not shown]
[AMDGPU] Preserve flags in min3/max3 combines (#248023)
The combines:
min(min(a, b), c) -> min3(a, b, c)
min(a, min(b, c)) -> min3(a, b, c)
min(min(a, b), min(c, d)) -> min(min3(a, b, c), d)
dropped the flags on the new nodes. Keep the flags that are common to all of
the nodes being replaced.
Without nnan the new 2-operand node in the last case may be lowered with an
extra canonicalize of its operand, and users of a min3/max3 may need a NaN
check that would otherwise be known to be redundant.
Assisted-by: Claude Fable 5.2 <noreply at anthropic.com>
IDS: add a timeout to rule downloads (#11303)
A server that accepts the connection and never answers kept
rule-updater.py waiting indefinitely while it holds the lock, so every
later "ids update" exited early while configd reported OK.
(cherry picked from commit 0aa19d8c001cb9dd6d0d22a6c5ab359ef4ab033b)
IDS: list rotated alert logs in rotation order (#11295)
The alert log selector listed the eve.json files sorted as text, so
with more than ten rotated logs eve.json.10 came before eve.json.2
and the dates were out of order. Sort on the rotation number instead.
(cherry picked from commit 2b8c230c17e7ebcd9b022a5343fda32478ee2033)
VPN: OpenVPN: Instances - recreate a leftover DCO interface before start (#11344)
* VPN: OpenVPN: Instances - recreate a leftover DCO interface before start
if_ovpn keeps the UDP socket of the first peer until the interface is
destroyed. OpenVPN only destroys interfaces it created itself, and
setup_interface() always creates it first, so after a restart with a
client connected, or a crash, the next bind fails with EADDRINUSE and
the instance stays down until a reboot.
Destroy the interface before creating it again when no process is
using it.
refs https://github.com/opnsense/core/issues/10784
* VPN: OpenVPN: Instances - only set up the interface when the instance is not running
setup_interface() forces the interface down before handing it over to
OpenVPN. A start on an instance that is already running did the same to
[7 lines not shown]