java-topology/defects/linux/patch
russell@unturf.com 9cc2a89d0f linux: add complexity gate headers to all 8 patches; fix 0003/0007/0008 code issues
- All 8 patches now carry required # CWE-407 / # Defect / # Fix / # Complexity gate
  header blocks per patch file format spec
- linux-0001 (headerdep.pl): header only — code was correct
- linux-0002 (auditsc.c): header + explicit break to prevent ctx->names_list fall-through
- linux-0003 (dev.c): rewrote fix — skip altname loop when format has no percent-d
  placeholder; removes duplicate bounds check from prior draft
- linux-0004 (neighbour.c): header + cleaned up ifdef guards; xarray with fallback
- linux-0005 (component.c): header + existing hash fast-path retained
- linux-0006 (btf.c): header + fixed cache hit path — no longer re-runs
  btf_find_by_name_kind on hit; uses stored btf_id directly
- linux-0007 (pktgen.c): rewrote fix — replaced xa_for_each (O(N)) with dual
  DECLARE_HASHTABLE: dev_ht (by dev*) and name_ht (by jhash(ifname))
- linux-0008 (taskstats.c): fixed mixed list_for_each_entry/hash_for_each_possible
  syntax; clean replacement of duplicate-pid list scan with hash_for_each_possible
- Combined patch: linux-0001..0008-hashstruct.patch (8 defects, was missing 0004)
- outreach/linux.md: updated to 8 defects, corrected numbering (0001=headerdep,
  0002=auditsc, 0003=dev, 0004=neighbour, 0005-0008 as before)
2026-04-04 11:33:15 -04:00
..
linux-0001-0002-0003-0004-0005-0006-0007-0008-hashstruct.patch linux: add complexity gate headers to all 8 patches; fix 0003/0007/0008 code issues 2026-04-04 11:33:15 -04:00
linux-0001-headerdep-hash.patch linux: add complexity gate headers to all 8 patches; fix 0003/0007/0008 code issues 2026-04-04 11:33:15 -04:00
linux-0002-audit-filter-inodes-quadratic.patch linux: add complexity gate headers to all 8 patches; fix 0003/0007/0008 code issues 2026-04-04 11:33:15 -04:00
linux-0003-dev-alloc-name-nested-altname.patch linux: add complexity gate headers to all 8 patches; fix 0003/0007/0008 code issues 2026-04-04 11:33:15 -04:00
linux-0004-neigh-parms-xarray-lookup.patch linux: add complexity gate headers to all 8 patches; fix 0003/0007/0008 code issues 2026-04-04 11:33:15 -04:00
linux-0005-component-find-quadratic.patch linux: add complexity gate headers to all 8 patches; fix 0003/0007/0008 code issues 2026-04-04 11:33:15 -04:00
linux-0006-btf-module-scan-hash.patch linux: add complexity gate headers to all 8 patches; fix 0003/0007/0008 code issues 2026-04-04 11:33:15 -04:00
linux-0007-pktgen-thread-dev-xarray.md bazel-0003 + kicad-0002: build toolchain feature check + PCB zone filler O(Z²×L²); count 601→603 2026-03-27 22:38:32 -04:00
linux-0007-pktgen-thread-dev-xarray.patch linux: add complexity gate headers to all 8 patches; fix 0003/0007/0008 code issues 2026-04-04 11:33:15 -04:00
linux-0008-taskstats-listener-hashset.md bazel-0003 + kicad-0002: build toolchain feature check + PCB zone filler O(Z²×L²); count 601→603 2026-03-27 22:38:32 -04:00
linux-0008-taskstats-listener-hashset.patch linux: add complexity gate headers to all 8 patches; fix 0003/0007/0008 code issues 2026-04-04 11:33:15 -04:00
linux-deeper-CLEAN.md bazel-0003 + kicad-0002: build toolchain feature check + PCB zone filler O(Z²×L²); count 601→603 2026-03-27 22:38:32 -04:00