NetBSD/src Mge39ys — sys/arch/arm/imx imx51_esdhc.c, sys/arch/evbarm/kobo kobo_machdep.c

   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.
VersionDeltaFile
1.10+20-2sys/arch/evbarm/kobo/kobo_machdep.c
1.5+7-2sys/arch/arm/imx/imx51_esdhc.c
+27-42 files

OPNSense/core 0a62361 — src/opnsense/www/css/flags/1x1 sh-hl.svg es-ga.svg, src/opnsense/www/css/flags/4x3 sh-hl.svg es-ga.svg

css: update country flags, partial sync with upstream (https://github.com/lipis/flag-icons), add license (#11370)
DeltaFile
+468-0src/opnsense/www/css/flags/1x1/sh-ac.svg
+468-0src/opnsense/www/css/flags/4x3/sh-ac.svg
+187-0src/opnsense/www/css/flags/4x3/es-ga.svg
+187-0src/opnsense/www/css/flags/1x1/es-ga.svg
+164-0src/opnsense/www/css/flags/4x3/sh-hl.svg
+164-0src/opnsense/www/css/flags/1x1/sh-hl.svg
+1,638-028 files not shown
+2,710-034 files

OPNSense/core b5ec2ec — src/opnsense/mvc/app/views/OPNsense/Kea leases6.volt leases4.volt

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)
DeltaFile
+35-15src/opnsense/mvc/app/views/OPNsense/Kea/leases4.volt
+34-14src/opnsense/mvc/app/views/OPNsense/Kea/leases6.volt
+69-292 files

HardenedBSD/src a09f2cc — crypto/openssl/crypto/objects obj_dat.h, crypto/openssl/test evp_extra_test.c quicapitest.c

Merge remote-tracking branch 'rad/hardened/current/master' into hardened/current/pledge
DeltaFile
+2,523-2,523crypto/openssl/crypto/objects/obj_dat.h
+846-1crypto/openssl/test/radix/quic_tests.c
+545-172sys/dev/mpi3mr/mpi3mr.c
+0-713tools/tools/locale/etc/charmaps.xml
+649-3crypto/openssl/test/quicapitest.c
+583-3crypto/openssl/test/evp_extra_test.c
+5,146-3,4151,096 files not shown
+12,113-5,6351,102 files

HardenedBSD/src ceb349a — crypto/openssl/crypto/objects obj_dat.h, crypto/openssl/test evp_extra_test.c quicapitest.c

Merge branch 'freebsd/current/main' into hardened/current/master
DeltaFile
+2,523-2,523crypto/openssl/crypto/objects/obj_dat.h
+846-1crypto/openssl/test/radix/quic_tests.c
+545-172sys/dev/mpi3mr/mpi3mr.c
+0-713tools/tools/locale/etc/charmaps.xml
+649-3crypto/openssl/test/quicapitest.c
+583-3crypto/openssl/test/evp_extra_test.c
+5,146-3,4151,096 files not shown
+12,113-5,6351,102 files

HardenedBSD/src c52a4f8 — sys/ufs/ffs ffs_vnops.c ffs_softdep.c, sys/ufs/ufs ufs_vnops.c

Merge branch 'freebsd/15-stable/main' into hardened/15-stable/main
DeltaFile
+584-0tools/test/stress2/misc/mkdir_blkreuse.sh
+386-0tests/sys/fs/ufs/sync_test.c
+171-56sys/ufs/ffs/ffs_softdep.c
+191-0tools/test/stress2/misc/nlink6.sh
+83-38sys/ufs/ffs/ffs_vnops.c
+19-23sys/ufs/ufs/ufs_vnops.c
+1,434-1177 files not shown
+1,450-12213 files

OPNSense/core 81085f8 — src/opnsense/scripts/interfaces ifctl.sh

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)
DeltaFile
+17-12src/opnsense/scripts/interfaces/ifctl.sh
+17-121 files

HardenedBSD/ports 708df72 — devel/electron44/files patch-electron_spec_api-browser-window.spec.ts patch-third__party_electron__node_src_compile__cache.cc, games/colorcode/files patch-qt6

Merge branch 'freebsd/main' into hardenedbsd/main
DeltaFile
+489-503security/rage-encryption/distinfo
+243-250security/rage-encryption/Makefile.crates
+90-0games/colorcode/files/patch-qt6
+68-0security/vuxml/vuln/2026.xml
+0-45devel/electron44/files/patch-third__party_electron__node_src_compile__cache.cc
+20-20devel/electron44/files/patch-electron_spec_api-browser-window.spec.ts
+910-81859 files not shown
+1,225-96065 files

LLVM/project 2794d8a — llvm/test/CodeGen/AMDGPU trunc-select-narrowing.ll, llvm/test/CodeGen/SystemZ trunc-select-narrowing.ll

[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]
DeltaFile
+268-0llvm/test/CodeGen/X86/trunc-select-narrowing.ll
+56-0llvm/test/CodeGen/AMDGPU/trunc-select-narrowing.ll
+22-0llvm/test/CodeGen/SystemZ/trunc-select-narrowing.ll
+346-03 files

LLVM/project 62801a5 — llvm/lib/Transforms/Vectorize VPlanTransforms.cpp

Address review comments
DeltaFile
+3-4llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
+3-41 files

LLVM/project 8e64412 — llvm/lib/Target/AMDGPU SIISelLowering.cpp, llvm/test/CodeGen/AMDGPU combine_andor_with_cmps_nnan.ll fminimum3.ll

[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>
DeltaFile
+138-0llvm/test/CodeGen/AMDGPU/fmaximum3.ll
+86-0llvm/test/CodeGen/AMDGPU/fminimum3.ll
+11-6llvm/lib/Target/AMDGPU/SIISelLowering.cpp
+6-7llvm/test/CodeGen/AMDGPU/combine_andor_with_cmps_nnan.ll
+241-134 files

HardenedBSD/ports a8b110c — security/rage-encryption Makefile Makefile.crates

security/rage-encryption: Update to 0.13.0
DeltaFile
+489-503security/rage-encryption/distinfo
+243-250security/rage-encryption/Makefile.crates
+2-3security/rage-encryption/Makefile
+734-7563 files

HardenedBSD/ports 3d670c4 — x11/xterm Makefile distinfo

x11/xterm: Update to 413
DeltaFile
+3-3x11/xterm/distinfo
+1-2x11/xterm/Makefile
+4-52 files

FreeBSD/ports 3d670c4 — x11/xterm Makefile distinfo

x11/xterm: Update to 413
DeltaFile
+3-3x11/xterm/distinfo
+1-2x11/xterm/Makefile
+4-52 files

FreeBSD/ports a8b110c — security/rage-encryption Makefile Makefile.crates

security/rage-encryption: Update to 0.13.0
DeltaFile
+489-503security/rage-encryption/distinfo
+243-250security/rage-encryption/Makefile.crates
+2-3security/rage-encryption/Makefile
+734-7563 files

OPNSense/core 6b5f817 — src/opnsense/scripts/suricata/lib downloader.py

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)
DeltaFile
+2-1src/opnsense/scripts/suricata/lib/downloader.py
+2-11 files

OPNSense/core 2bb1204 — src/opnsense/scripts/suricata/lib downloader.py

Services: Intrusion Detection - also catch error during  read for https://github.com/opnsense/core/issues/11166

(cherry picked from commit 38b3348603ce3d3c5aac8900447147fe65f8c97e)
DeltaFile
+18-18src/opnsense/scripts/suricata/lib/downloader.py
+18-181 files

OPNSense/core 166d300 — src/opnsense/scripts/suricata listAlertLogs.py

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)
DeltaFile
+2-1src/opnsense/scripts/suricata/listAlertLogs.py
+2-11 files

OPNSense/core 5ff636a — src/opnsense/www/js/widgets Swap.js

dashboard: round swap widget values to integer MB (#11277)

(cherry picked from commit 053a0895355cd433f4694458c9fac51d4dae9199)
DeltaFile
+7-2src/opnsense/www/js/widgets/Swap.js
+7-21 files

OPNSense/core 6080ac1 — src/opnsense/scripts/openvpn ovpn_service_control.php

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]
DeltaFile
+9-1src/opnsense/scripts/openvpn/ovpn_service_control.php
+9-11 files

OPNSense/core 4e46350 — src/opnsense/service/templates/OPNsense/IDS +TARGETS

Services: Intrusion Detection - flush out rule-updater.config with chmod 600, requires https://github.com/opnsense/core/commit/53a373d58069e8ad06cb4c4e231ac2d0cb9f2ce9

(cherry picked from commit 97850e56127c046773930a71791e68dce800fe3d)
DeltaFile
+1-1src/opnsense/service/templates/OPNsense/IDS/+TARGETS
+1-11 files

OPNSense/core 2b8bcf9 — . plist, src/opnsense/service/modules template.py

configd/templates - repair unittests by adding an optional test template directory in the Template() constructor, reintroducing OPNsense/Sample in that scope

(cherry picked from commit e8afac3cd84bff9ebce99fa1d45785b16fceed6a)
(cherry picked from commit 123b75b189cebce84934b73174480305dfd370b5)
DeltaFile
+36-0src/opnsense/service/tests/templates/OPNsense/Sample/example_simple_page.txt
+18-0src/opnsense/service/tests/templates/OPNsense/Sample/example_config.txt
+7-4src/opnsense/service/modules/template.py
+3-2src/opnsense/service/tests/template.py
+4-0plist
+2-0src/opnsense/service/tests/templates/OPNsense/Sample/example_parent.txt
+70-61 files not shown
+72-67 files

OPNSense/core e62ec71 — src/opnsense/scripts/filter/lib/alias arpcache.py, src/opnsense/scripts/suricata rule-updater.py

misc: safeguard lock files in /tmp a bit further.

(cherry picked from commit d73d61ae7659b3ab7457809d85f79ca470a7a53b)
(cherry picked from commit eada1060394fe3b11ee7ff32b6ac4efe45e6064e)
DeltaFile
+3-0src/opnsense/scripts/filter/lib/alias/arpcache.py
+1-1src/opnsense/scripts/unbound/blocklists.py
+1-1src/opnsense/scripts/suricata/rule-updater.py
+5-23 files

OPNSense/core ac2bbe5 — src/opnsense/service/modules template.py, src/opnsense/service/tests template.py

configd/templates - extend +TARGETS with chmod support

(cherry picked from commit 53a373d58069e8ad06cb4c4e231ac2d0cb9f2ce9)
(cherry picked from commit f1c1cde32eb1c0fc4cad4863009da5322a5f9cb8)
DeltaFile
+10-4src/opnsense/service/modules/template.py
+8-0src/opnsense/service/tests/template.py
+1-1src/opnsense/service/tests/templates/OPNsense/Sample/+TARGETS
+19-53 files

OPNSense/core 73e0ac6 — src/opnsense/mvc/app/views/OPNsense/Kea leases6.volt leases4.volt, src/opnsense/scripts/kea get_kea_leases.py

Services: Kea DHCPv4/6: Preselect the subnet when converting a dynamic lease to a reservation (#11362)

(cherry picked from commit d4e812936d8ecc112335aad4190181e386eb375d)
DeltaFile
+7-0src/opnsense/scripts/kea/get_kea_leases.py
+1-0src/opnsense/mvc/app/views/OPNsense/Kea/leases6.volt
+1-0src/opnsense/mvc/app/views/OPNsense/Kea/leases4.volt
+1-0src/opnsense/mvc/app/views/OPNsense/Kea/dhcpv6.volt
+1-0src/opnsense/mvc/app/views/OPNsense/Kea/dhcpv4.volt
+11-05 files

OPNSense/core 5af578b — src/opnsense/mvc/app/models/OPNsense/Kea/FieldTypes KeaOptionDataField.php

Services: Kea DHCPv4: Enable String encoding for DHCP Option 252. (#11335)

(cherry picked from commit 40a071bdb64a5774717ed8becbd74d73b66c2bae)
DeltaFile
+1-0src/opnsense/mvc/app/models/OPNsense/Kea/FieldTypes/KeaOptionDataField.php
+1-01 files

OPNSense/core a2f013a — . plist, src/opnsense/mvc/app/controllers/OPNsense/Unbound/forms general.xml

unbound: safesearch: seperate provider selection (#10914)

(cherry picked from commit f549392ee437319c6240fb72c362ff45792617c3)
(cherry picked from commit a1390c8676771b06701d8c6e0aab85d2ba452b35)
(cherry picked from commit 7978d78581f852ddac62015e05ac72d7029a4bca)
DeltaFile
+62-0src/opnsense/mvc/app/models/OPNsense/Unbound/Migrations/M1_0_16.php
+28-6src/opnsense/service/templates/OPNsense/Unbound/core/safesearch.conf
+12-2src/opnsense/mvc/app/models/OPNsense/Unbound/Unbound.xml
+5-5src/opnsense/mvc/app/controllers/OPNsense/Unbound/forms/general.xml
+3-1src/opnsense/mvc/app/models/OPNsense/Unbound/Migrations/M1_0_13.php
+1-0plist
+111-146 files

LLVM/project 698dbee — llvm/test/Transforms/InstCombine ctpop.ll

Precommit tests
DeltaFile
+41-0llvm/test/Transforms/InstCombine/ctpop.ll
+41-01 files

LLVM/project 07e2371 — llvm/lib/Transforms/InstCombine InstCombineAddSub.cpp, llvm/test/Transforms/InstCombine ctpop.ll

[InstCombine] Fold trunc(ctpop(A)) + trunc(ctpop(B)) -> trunc(ctpop(A) + ctpop(B))

This allows the combine added in #231321 to kick in and fold the motivating ctpop case in automotive-bitcount:

```c
static char bits[256] = {0, 1, 1, 2, 1, 2, 2, 3, 1, 2, 2, 3, 2, 3, 3, 4, 1, 2, 2, 3, 2, 3, 3, 4, 2, 3, 3, 4, 3, 4, 4, 5, 1, 2, 2, 3, 2, 3, 3, 4, 2, 3, 3, 4, 3, 4, 4, 5, 2, 3, 3, 4, 3, 4, 4, 5, 3, 4, 4, 5, 4, 5, 5, 6, 1, 2, 2, 3, 2, 3, 3, 4, 2, 3, 3, 4, 3, 4, 4, 5, 2, 3, 3, 4, 3, 4, 4, 5, 3, 4, 4, 5, 4, 5, 5, 6, 2, 3, 3, 4, 3, 4, 4, 5, 3, 4, 4, 5, 4, 5, 5, 6, 3, 4, 4, 5, 4, 5, 5, 6, 4, 5, 5, 6, 5, 6, 6, 7, 1, 2, 2, 3, 2, 3, 3, 4, 2, 3, 3, 4, 3, 4, 4, 5, 2, 3, 3, 4, 3, 4, 4, 5, 3, 4, 4, 5, 4, 5, 5, 6, 2, 3, 3, 4, 3, 4, 4, 5, 3, 4, 4, 5, 4, 5, 5, 6, 3, 4, 4, 5, 4, 5, 5, 6, 4, 5, 5, 6, 5, 6, 6, 7, 2, 3, 3, 4, 3, 4, 4, 5, 3, 4, 4, 5, 4, 5, 5, 6, 3, 4, 4, 5, 4, 5, 5, 6, 4, 5, 5, 6, 5, 6, 6, 7, 3, 4, 4, 5, 4, 5, 5, 6, 4, 5, 5, 6, 5, 6, 6, 7, 4, 5, 5, 6, 5, 6, 6, 7, 5, 6, 6, 7, 6, 7, 7, 8};

int CDECL ntbl_bitcount(long int x)
{
      return
            bits[ (int) (x & 0x0000000FUL)       ] +
            bits[ (int)((x & 0x000000F0UL) >> 4) ] +
            bits[ (int)((x & 0x00000F00UL) >> 8) ] +
            bits[ (int)((x & 0x0000F000UL) >> 12)] +
            bits[ (int)((x & 0x000F0000UL) >> 16)] +
            bits[ (int)((x & 0x00F00000UL) >> 20)] +
            bits[ (int)((x & 0x0F000000UL) >> 24)] +
            bits[ (int)((x & 0xF0000000UL) >> 28)];
}
```
DeltaFile
+5-12llvm/test/Transforms/InstCombine/ctpop.ll
+6-0llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp
+11-122 files

LLVM/project f6c6351 — llvm/lib/Transforms/InstCombine InstCombineAddSub.cpp, llvm/test/Transforms/InstCombine ctpop.ll

[InstCombine] Fold ctpop(X >> C) + ctpop(X & M) -> ctpop(X & (M | (-1 << C)))

Following up from #231225, automotive-bitcount in llvm-test-suite and GCC use a "per-nibble" ctpop table lookup, where they split the operation up into smaller ctpop table lookups over chunks of the input:

```c
unsigned table_u32(unsigned x) {
  static const unsigned char ctpop[16] = {0, 1, 1, 2, 1, 2, 2, 3, 1, 2, 2, 3, 2, 3, 3, 4};
  return ctpop[x & 15] + ctpop[(x >> 4) & 15];
}
```

PR #231225 now converts the individual table lookups to ctpop intrinsics, so we're left with `ctpop(X & 0xf) + ctpop((X >> 4) & 0xf) + ctpop((X >> 8) & 0xf) + ...`. Now that `ctpop((X >> C) & M)` is canonicalized to `ctpop(X & (M << C))`, the existing `ctpop(A) + ctpop(B) -> ctpop(A | B)` fold for disjoint A and B combines most of these.

The one piece it can't handle is the top chunk of a full-width chain, which is a plain `ctpop(X >> C)` with no mask. This folds it with the lower bits directly.

This needs to come before the disjoint fold, which would otherwise combine e.g. `ctpop(X >> 12) + ctpop(X & 0xf00)` into `ctpop((X >> 12) | (X & 0xf00))`, which can't be folded any further.
DeltaFile
+6-22llvm/test/Transforms/InstCombine/ctpop.ll
+11-0llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp
+17-222 files