The KERNEL_DIRECT_IO option was removed from OpenWrt in 2017 together
with the out-of-tree hack to disable direct I/O, and direct I/O is
always available. Selecting the undefined symbol has no effect.
Signed-off-by: Sander van Deijck <sander@vandeijck.com>
KERNEL_MEMCG_SWAP_ENABLED and KERNEL_CFQ_GROUP_IOSCHED refer to kernel
symbols that no longer exist (MEMCG swap accounting is no longer a
separate option, and CFQ was removed in Linux 5.0). The selects have
no effect.
Signed-off-by: Sander van Deijck <sander@vandeijck.com>
KERNEL_MEMCG_KMEM and KERNEL_DEVPTS_MULTIPLE_INSTANCES refer to kernel
symbols that no longer exist: kernel memory accounting is always part of
MEMCG, and devpts always supports multiple instances. The selects have
no effect.
Signed-off-by: Sander van Deijck <sander@vandeijck.com>
This is a security release.
Security:
* Memory corruption when an application cancels its lookups after a connection failure.
* A DNS reply that arrived from a different server than the one queried could be accepted.
* Use-after-free of a lookup after shutting down a failed connection.
* Use-after-free when an application cancels lookups from a callback, or shuts a channel down.
* Use-after-free of a connection after the socket-state callback returns.
* Use-after-free when an application cancels lookups from a server-state callback.
* Use-after-free of a server record when an application changes its DNS servers from a callback.
* Use-after-free of a cached DNS answer while the application is still reading it.
* Buffer overflow when ares_dup() or ares_save_options() runs while another thread changes the srv
* Uninitialized memory returned for a numeric IPv6 name with a prefix length.
* The query cache could return an answer obtained using different EDNS options.
Fixes:
GHSA-wpr3-8q3r-4q8c
GHSA-fqh5-3x7m-wp44
GHSA-97vq-4mxv-7vhm
GHSA-rf6g-ww74-97qh
GHSA-mw23-pfg6-2x9r
GHSA-v33j-65h4-4ch8
GHSA-pj7p-v3cw-hq66
GHSA-grv7-fq5q-9vfc
GHSA-ph6c-3cvx-mq6v
GHSA-cfcv-8v2j-qj6r
GHSA-wrgc-prmw-27xh
Signed-off-by: Hirokazu MORIKAWA <morikw2@gmail.com>
With vnstat removed, let vnstat2 and vnstati2 provide vnstat and
vnstati, so apk can replace an installed vnstat with vnstat2 on upgrade.
Switching over keeps the existing setup working:
- /etc/config/vnstat uses the same section type and interface list in
both versions; options only vnstat 1.x knew are ignored.
- vnstatd imports vnStat 1.x databases from its DatabaseDir on first
start, also when run with --initdb as the init script does.
- vnStat 2.x ignores configuration keywords it doesn't know, so an
existing /etc/vnstat.conf keeps working.
The versioned provide also prevents vnstat and vnstat2 from being
installed side by side, so drop CONFLICTS:=vnstat, which apk ignores.
Signed-off-by: Sander van Deijck <sander@vandeijck.com>
vnstat 1.18 dates from 2018, and upstream has since moved to the 2.x
series, which is packaged as vnstat2. Nothing in the feeds depends on
vnstat; luci-app-vnstat2 already uses vnstat2.
The next commit lets vnstat2 provide vnstat, so existing installations
are upgraded to it.
Signed-off-by: Sander van Deijck <sander@vandeijck.com>
OVN 22.03 is built against the Open vSwitch 2.17 tree and does not build
with 3.7. Update to 26.03.2, the latest release of the 26.03 LTS branch
whose ovs submodule matches Open vSwitch 3.7 (3.7.0). 26.03.3 already
requires changes from Open vSwitch branch-3.7 that are not in 3.7.1,
e.g. the new compose_nd_ns() signature.
Patches:
- 0001: refreshed
Signed-off-by: Sander van Deijck <sander@vandeijck.com>
The 2.17 LTS branch reached end of life in February 2025. Update to
3.7.1 from the current 3.7 LTS branch.
Patches:
- 0007: refreshed, libbpf linking was removed upstream
- 0008: dropped, included upstream
The version bump checklist no longer needs to check the kernel versions
supported by the datapath module, as the Open vSwitch source tree does
not contain one anymore. Note instead that net/ovn has to be updated
along with it.
Signed-off-by: Sander van Deijck <sander@vandeijck.com>
The kmod-openvswitch-*-intree packages build the datapath shipped in the
Open vSwitch source tree, which only supports kernels 3.10 to 5.5. They
have not been buildable on any supported OpenWrt kernel since 22.03
(Linux 5.10). They still show up in menuconfig because kernel_version_cmp
is empty during the metadata scan, but selecting one only prints "intree
kmods selected but not supported".
Open vSwitch removed the out-of-tree datapath in 3.0. Remove the
packages together with the configure plumbing (--with-linux, KARCH,
OVS_KERNEL_MAKE_FLAGS), the patch for passing kernel make flags and the
README section. The kmod-openvswitch packages built from the kernel's
net/openvswitch are unchanged.
Signed-off-by: Sander van Deijck <sander@vandeijck.com>
kmod-lib-crc32c is only available with kernel 6.12 and is being removed
together with kernel 6.12 support. With kernel 6.18, CRC32C is provided
by the built-in CRC library, so the dependency is no longer needed.
Signed-off-by: Sander van Deijck <sander@vandeijck.com>
xkcptun is a lightweight, high-performance KCP-based secure tunnel
written in C (libevent2 + ikcp). This package ships both the client
(xkcp_client) and server (xkcp_server) daemons plus the xkcp_spy
monitoring tool, with a procd init script that renders per-instance
TOML configs from /etc/config/xkcptun.
Tunnels support tcp/udp forwarding, SOCKS5 and transparent REDIRECT
proxy modes, and can integrate with eBPF-based xdns-bpf for
domain-based transparent steering.
Compile tested: aarch64_cortex-a53 (chawrt 25.12 / OpenWrt snapshot)
Run tested: aarch64_cortex-a53 (clawwifi M3000 v1 router, client+server
pair with DNS and transparent TCP tunnels)
Signed-off-by: Dengfeng Liu <liudf0716@gmail.com>
Add a policy requiring human-written comments and contributions, with a
human in the loop responsible for LLM-generated code.
Signed-off-by: George Sapkin <george@sapk.in>
With gnupg removed, let gnupg2, gpgv2 and gnupg2-utils provide gnupg,
gpgv and gnupg-utils, so apk can replace an installed GnuPG 1.4 with
GnuPG 2 on upgrade.
gnupg2 already installs /usr/bin/gpg and /usr/bin/gpgv as alternatives,
and GnuPG 2 migrates a GnuPG 1.x secret keyring on first use.
Signed-off-by: Sander van Deijck <sander@vandeijck.com>
GnuPG 1.4 is the legacy branch; its last release, 1.4.23, dates from
June 2018. gnupg2 covers its uses, and fwknop, the last package
depending on it, now uses gnupg2.
The next commit lets gnupg2 provide gnupg, so existing installations
are upgraded to it.
Signed-off-by: Sander van Deijck <sander@vandeijck.com>
GnuPG 1.4 is being removed from the feed. Use gnupg2 for GPG support
instead. GPGME 2.x still works with either, but GnuPG 2 does all secret
key operations through gpg-agent, which is packaged in gnupg2-utils, so
depend on that as well.
While at it:
- fix fwknopd depending on the nonexistent FWKNOP_GPG symbol instead of
FWKNOPD_GPG; it only got gnupg through libfko so far.
- pass --with-gpg=/usr/bin/gpg. Without it, configure looks for gpg on
the build host, and libfko fails to build with GPG support if there
is none.
With GnuPG 2, the GPGME passphrase callback libfko uses only works in
loopback pinentry mode, which libfko does not select. Passphrase-
protected keys therefore need "pinentry-mode loopback" in gpg.conf, or
a key without a passphrase together with GPG_ALLOW_NO_PW, as described
in fwknopd(8).
Signed-off-by: Sander van Deijck <sander@vandeijck.com>
The host dependency for the server endpoint was guarded by
route_net_gateway (IPv4) and net_gateway_ipv6 (IPv6). Neither is a
reliable signal:
- OpenVPN only exports route_net_gateway when it builds a route list,
i.e. when route, redirect-gateway/redirect-private or pushed routes
are present. A client using route-nopull, or one that filters out
the pushed redirect-gateway, gets no host route at all. When another
VPN then holds the default route, the server endpoint is routed
through that VPN and the tunnel breaks.
- OpenVPN looks up net_gateway_ipv6 for the default destination
without a source address, which fails when source routing is enabled
on wan6 (the default), so the IPv6 host route was rarely added.
netifd resolves the gateway for a host dependency itself, so the guards
are not needed. Add the host dependency whenever trusted_ip or
trusted_ip6 is set, unless nohostroute is set, as WireGuard does.
Assisted-by: Claude:claude-opus-5-5
Signed-off-by: Erik Conijn <egc112@msn.com>
All targets have been switched to kernel 6.18, where CRC32C is part of
the built-in CRC library. Drop the conditional kmod-lib-crc32c
dependency, as kmod-lib-crc32c is going away together with kernel 6.12
support.
Signed-off-by: Sander van Deijck <sander@vandeijck.com>
The kernel's nexthop compatibility dump contains both nhid and its
expanded via/dev fields. Replaying both makes iproute2 reject the route.
Remove the redundant ID from expanded routes, keeping ID-only routes
and other attributes intact.
Cover the parser cases in the existing package test.sh and bump the
package version.
Fixes: #27066
Signed-off-by: Yuen Su <zypulsecore@gmail.com>
Fixes several CVEs:
- CVE-2026-19630: Crafted DNS messages could exhaust CPU while being parsed.
- CVE-2026-94300: Fix remote termination of named under concurrent GSS-TSIG
traffic.
- CVE-2026-96888: Possible crash with redirect and qname-minimization strict.
- CVE-2026-97313: Fix a bug when resuming from a query initiated by RPZ.
Refresh patches
Signed-off-by: Noah Meyerhans <frodo@morgul.net>
The rootfs archive the OCI tests unpack is installed among the test
binaries in /usr/libexec/oci-runtime-test, where the packages CI
expects every file to be executable, so the generic tests of
oci-runtime-tests fail on every architecture that builds it. Install
the archive in /usr/share/oci-runtime-test and link it from its old
place, where test harnesses copy it into the test directory from.
Fixes: 6b9fdf2e77 ("oci-runtime-tools: add package")
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
The hugetlb tests fail on kernels without huge pages or the hugetlb
cgroup controller, and the rlimit test sets limits of 4 GiB and more
that a 32-bit kernel turns into RLIM_INFINITY, so they fail against
every runtime on most OpenWrt targets. Carry the pending upstream
fixes that skip the hugetlb tests on such kernels, report a refused
hugetlb container as a failed test and leave out the rlimits the host
cannot hold.
Link: https://github.com/opencontainers/runtime-tools/pull/823
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Security release with fixes for two critical remote code execution
flaws caused by state corruption after a bailout.
Fixes: CVE-2026-109618
Fixes: CVE-2026-109619
Changelog: https://www.php.net/ChangeLog-8.php#8.4.27
Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
The textual prefix fallback can truncate addresses containing 7-9 and
select an address outside the delegated network. Use ip's existing CIDR
filter to select an assigned global address within the delegated prefix.
Preserve direct netifd addresses and existing non-PD fallbacks.
Add regression cases to test.sh and bump the package version.
Fixes: 75a96faba7 ("mwan3: common.sh: fix src_ip detection for ipv6-PD")
Signed-off-by: Yuen Su <zypulsecore@gmail.com>
A capture on the "any" interface uses the Linux cooked capture link
type, and tcpdump-mini has no decoder for it: OpenWrt's tcpdump-mini
patch leaves the LINUX_SLL and LINUX_SLL2 entries out of tcpdump's
decoder table, so every packet comes out as UNSUPPORTED. With
adb_repiface set to "any", which adblock also falls back to when it
finds no LAN device, the DNS report then stays empty, while the README
names tcpdump-mini as enough. Say that "any" needs the full tcpdump.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Marco Martins <marcomartins86@gmail.com>
acl 2.4.0 declares acl_get_file_at(), acl_set_file_at() and
acl_delete_def_file_at() in sys/acl.h, which clash with the static
helpers of the same names in tar's src/xattrs.c and break the build
with POSIX ACL support. Backport the upstream commit that renames the
helpers with a tar_ prefix; no tar release contains it yet.
Fixes: 0f5b47363e ("acl: update to 2.4.0")
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
An empty mwan3track state file becomes NaN in the rpcd response. Default
failed integer conversions to zero, as the shell handler did.
Add a focused regression for the installed integer helpers in a separate
ucode file called from test.sh, and bump the package version.
Fixes: #29653
Signed-off-by: Yuen Su <zypulsecore@gmail.com>