Skip to content

hardening: fix 0.1.3 P0/P1 findings across transport-core, net-sircl, fabric-tool & CI - #7

Merged
FujitsuPolycom merged 4 commits into
mainfrom
fix/0.1.3-p0-p1-hardening
Nov 30, 2026
Merged

FujitsuPolycom merged 4 commits into
mainfrom
fix/0.1.3-p0-p1-hardening

Conversation

@FujitsuPolycom

Copy link
Copy Markdown
Owner

Why

Pre-release audit of net-sircl 0.1.3 (856a79f) identified 5 release-blocking P0 defects (AArch64 alignment UB in mesh_marker.c, root privilege-boundary gaps in fabric-tool install-boot, accept head-of-line DoS + blocking handshake writes, irreversible process-wide relay-window poisoning + unchecked finalize refcounting, and an AB-BA lock inversion in shm_verbs.c) plus 8 P1 hardening, packaging, and portability issues across transport-core, net-sircl, fabric-tool, and CI.

What Changed

  • transport-core:
    • Fixed AB-BA lock-order inversion (fab_lock vs local) and overflow checks in src/shm_verbs.c.
    • Fixed sysfs.c and verbs.h portability edge cases, aligned topology.c parser parity with fabric-tool, and retired unused sircl_fabric.h/fabric.c.
  • net-sircl:
    • Replaced single-slot l->accepting (60s head-of-line DoS on stray probes) and blocking send_all() inside non-blocking connect/accept in net_sircl_connection.h, and enabled SO_KEEPALIVE.
    • Scoped relay-window error state cleanly and refcounted sircl_finalize(ctx) across ext-net v7–v10 and multi-comm v11–v12 (net_sircl_admission.h, net_sircl.c, net_sircl_compat.h).
    • Hardened DSO build with -fvisibility=hidden, symbol version script (net_sircl.map), full RELRO (-Wl,-z,relro,-z,now), and explicit SONAME, plus data-path edge fixes (net_sircl_plan.c, net_sircl_profile.h, net_sircl_config.h).
  • fabric-tool:
    • Fixed AArch64 strict-aliasing/alignment UB (uint32_t words[2] cast to uint64_t *) and added async-event handling in mesh_marker.c.
    • Enforced root:root ownership and 0755/0644 permissions in boot.py/cli.py, validated --tool for the root systemd timer, hardened atomic install/tee updates in ops.py/state.py, and aligned topology parsing (topology.py).
  • CI & Packaging:
    • Added an ASan+UBSan CI lane in .github/workflows/ci.yml (which also caught and fixed an 80-byte regMr leak in net-sircl/tests/layer_test.c peerloss mode).
    • Preserved executable bits and versioned root directories in transport-core/tools/package.py and updated SOURCE.json.

Verification

  • WSL Ubuntu 24.04 under both -O2 and ASan+UBSan:
    • transport-core: C tests + 7/7 planning tests passed.
    • net-sircl: 32/32 tests passed (zero leaks under ASan/UBSan).
    • fabric-tool: 210/210 pytest passed; mesh_marker.c compiled cleanly with -std=c11 -Wall -Wextra -Werror and passed ASan/UBSan checks.
    • Top-level tests/: 20/20 unittest passed (including test_release.py and test_topology_conformance.py).
    • check_release_safety.py: 0 findings across 157 files.

Risks / Follow-Ups

  • Tagging 0.1.3 should follow a live DGX Spark hardware qualification run on the merged candidate SHA (and CI passing on this PR).

…portability, topology parser parity (P0-5, P1-3, P1-4, P1-6)
…SO hardening, data-path edge cases (P0-3, P0-4, P1-1..P1-4, P1-8)
…all-boot & shell scripts, align topology parser (P0-1, P0-2, P1-5, P1-6)
@FujitsuPolycom
FujitsuPolycom merged commit fe6634c into main Nov 30, 2026
6 checks passed
@FujitsuPolycom
FujitsuPolycom deleted the fix/0.1.3-p0-p1-hardening branch November 30, 2026 16:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant