CHIZI-0618:sing-ebpf dev 补齐 sk_storage 元数据与共享回包余量
CHIZI-0618 表示,sing-ebpf dev 的 1ad3877 提交会在每次 cgroup map 尝试时清除旧 UDP 回退原因,为 sk_storage 设置 NO_PREALLOC、4 字节 key、20 字节 value 和显式 BTF 元数据,同时保留 cookie 回退;TC 共享返回重定向预留 128 字节余量,ApplySocketMark 拒绝关闭后的调用。作者称 NDK r29/Clang 21 检查及 with_ebpf 测试通过;Broadcom DHD 特定行为仍待真机验证,扩展余量失败时保持原行为。
作者原文@CHIZI-0618Implemented and pushed on dev in commit 1ad387704ba27681a47049493428dcb4aaa0c1b4. Fixed stale udp_release_fallback_reason clearing on every cgroup-map attempt; made sk_storage map loading provide NO_PREALLOC, 4-byte key, 20-byte value, and explicit BTF key/value metadata while retaining cookie fallback; reserved 128 bytes of headroom on the TC shared return redirect and regenerated little-/big-endian objects; and made ApplySocketMark reject shutdown. Validation: make check with Android NDK r29/Clang 21 and go test -tags with_ebpf ./... pass. The DHD-specific behavior still needs device verification; helper grow failure retains previous behavior.