net-proxy/dae: add 2.1.3, drop 2.1.2-r1

Signed-off-by: Zakk <zakk@gentoozh.org>
This commit is contained in:
Zakk committed 2026-11-21 20:11:01 +11:00
1 parent f39e0efe61
commit 5f48661ead
4 files changed
+1 -80

No files matched your search

+1 -1
View File
@@ -1,2 +1,2 @@
DIST dae-1.1.0.zip 133260908 BLAKE2B 9a38543442635fac1b0e8c234ceb0ed39a569005615fc9eb50c86f125369dbd81d768b509b45db299ae013bc1a2ea0b59f88038cba01746808ecffabfd6e5bb2 SHA512 f865626b37b8bc8b5af4ffc07a704e19c41cbfffa625e21c3ce6d589604dc4c7717ceb3a9f96055ebacc1695252b5e9d0f0e69b40cef5e7f501bf57cbbb963cd
DIST dae-2.1.2.zip 302297790 BLAKE2B b14841ac8598e909afb5c9a072761e97b7f432742af98240d95af68a8ce81995b35ff85b1f7de096bf933e4a2020d44bd44f313212355714290b5f053dd26425 SHA512 dc291a2ed029d1ffa2735991b2faf16e25543c3230bf76439beca43c44340c12d2468df0e9c77ab08bbcee8e5d4b732e466add33256145f4ce445082865a4e9a
DIST dae-2.1.3.zip 302308977 BLAKE2B c3ee5e8c867ed72ff62d0cbbbcb1c86d0930ea267462a8ee222c86986bec1c55d28183bb6f480cdfb1aaf76cd0f33838583a489b3e9755627e95b18ce9866010 SHA512 7655527ce323054909a03e10c4f0736b32dd6f95976340f64de643f135c27b6adf77ff362cf60da53d8f82af6be6306008f75a33c59a5add5f38d73d7940fa61
@@ -28,12 +28,6 @@ BDEPEND="
>=dev-lang/go-1.27.0
"
PATCHES=(
# from upstream, remove when bump
"${FILESDIR}/${P}-clang-23-pname-bound.patch"
"${FILESDIR}/${P}-bpf-test-stack.patch"
)
pkg_pretend() {
local CONFIG_CHECK="
~BPF
@@ -1,47 +0,0 @@
https://github.com/daeuniverse/dae/commit/e35410568009a7e1b49090aaba265c9992fc6b46
https://github.com/daeuniverse/dae/pull/1176
Keep the BPF test setup programs within the 512-byte stack limit that
kernels before 6.9 enforce. Merged after 2.1.2.
diff --git a/control/kern/tests/bpf_test.c b/control/kern/tests/bpf_test.c
index d7b686c711..df6af93d1f 100644
--- a/control/kern/tests/bpf_test.c
+++ b/control/kern/tests/bpf_test.c
@@ -165,7 +165,9 @@ setup_routing_epoch_lan_ingress(struct __sk_buff *skb, __u32 active_slot)
return ret;
}
-static __always_inline int
+// Not inlined: its stack would sit under do_tproxy_lan_ingress in the
+// caller, and before 6.9 the chain then exceeds the 512-byte limit.
+static __noinline int
set_routing_epoch_domain_rule(__u32 slot, __u8 outbound, __u32 bitmap)
{
struct match_set domain_rule = {};
@@ -743,8 +745,8 @@ int testpktgen_wan_egress_tcp_non_syn_stateless_passthrough(struct __sk_buff *sk
false, true, true);
}
-SEC("tc/setup/wan_egress_tcp_non_syn_stateless_passthrough")
-int testsetup_wan_egress_tcp_non_syn_stateless_passthrough(struct __sk_buff *skb)
+// Not inlined, for the same reason as set_routing_epoch_domain_rule.
+static __noinline int set_wan_egress_port_443_rule(void)
{
struct match_set ms = {};
struct port_range pr = {443, 443};
@@ -755,8 +757,13 @@ int testsetup_wan_egress_tcp_non_syn_stateless_passthrough(struct __sk_buff *skb
ms.outbound = OUTBOUND_USER_DEFINED_MIN;
ms.must = false;
ms.mark = 0;
- bpf_map_update_elem(&routing_map, &zero_key, &ms, BPF_ANY);
+ return bpf_map_update_elem(&routing_map, &zero_key, &ms, BPF_ANY);
+}
+SEC("tc/setup/wan_egress_tcp_non_syn_stateless_passthrough")
+int testsetup_wan_egress_tcp_non_syn_stateless_passthrough(struct __sk_buff *skb)
+{
+ set_wan_egress_port_443_rule();
set_routing_fallback(OUTBOUND_DIRECT, true);
return do_tproxy_wan_egress(skb, 14, NULL);
@@ -1,26 +0,0 @@
https://github.com/daeuniverse/dae/commit/192d7e1db3b2953ed6f7525ff1efdd947d6d59d4
https://github.com/daeuniverse/dae/pull/1172
clang 23 computes arg_buf + offset before the bound check, so the verifier
rejects the cgroup socket programs with "invalid variable-offset read from
stack" and dae fails to start. Merged after 2.1.2.
diff --git a/control/kern/tproxy.c b/control/kern/tproxy.c
index 014f0af37c..6dac4afd53 100644
--- a/control/kern/tproxy.c
+++ b/control/kern/tproxy.c
@@ -4235,8 +4235,12 @@ static __always_inline int get_pid_pname(struct pid_pname *pid_pname)
u8 offset = ctx.l;
for (u8 i = 0; i < TASK_COMM_LEN; i++) {
- if (offset + i < MAX_ARG_LEN && arg_buf[offset + i] != '\0') {
- pid_pname->pname[i] = arg_buf[offset + i];
+ __u32 idx = offset + i;
+
+ // Keep clang from splitting idx back into offset + i.
+ barrier_var(idx);
+ if (idx < MAX_ARG_LEN && arg_buf[idx] != '\0') {
+ pid_pname->pname[i] = arg_buf[idx];
} else {
pid_pname->pname[i] = '\0';
break;