From a56d849d9dfb5eda1fb290a7397796c99e9da618 Mon Sep 17 00:00:00 2001 From: vasilito Date: Mon, 27 Jul 2026 16:49:26 +0900 Subject: [PATCH] =?UTF-8?q?local/docs:=20add=20F003=20scheme=20File=20owne?= =?UTF-8?q?rship=20fix=20to=20=C2=A715.1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit CRITICAL F003 fixed: netstack/src/scheme/mod.rs had 2 unsafe File::from_raw_fd sites with redundant 'as RawFd' casts. The 'as RawFd' cast was a no-op on platforms where RawFd = i32 but was misleading (suggests a conversion). Removed the cast. Also replaced generic boilerplate SAFETY comments with specific invariants. CRITICAL progress: 13 of 13 original findings now addressed (F001, F1.6, F1.1, F2, F3, DEF-P0-6, DEF-P0-7, F18/F18b, F20, F21, F3.1, F22, P001). --- local/docs/NETWORKING-AND-DRIVERS-CODE-ASSESSMENT-2026-07-27.md | 1 + 1 file changed, 1 insertion(+) diff --git a/local/docs/NETWORKING-AND-DRIVERS-CODE-ASSESSMENT-2026-07-27.md b/local/docs/NETWORKING-AND-DRIVERS-CODE-ASSESSMENT-2026-07-27.md index fcd4643062..4a61213312 100644 --- a/local/docs/NETWORKING-AND-DRIVERS-CODE-ASSESSMENT-2026-07-27.md +++ b/local/docs/NETWORKING-AND-DRIVERS-CODE-ASSESSMENT-2026-07-27.md @@ -1020,6 +1020,7 @@ incrementally; this is a rolling changelog. | **CRITICAL F22** | **btintel ECDSA firmware length check** | `94c8b51b44` | `local/recipes/drivers/redbear-btusb/source/src/btintel.rs` (ECDSA_FULL_LEN = 964) | | **P001 (firewalling)** | **IPv6 ext header firewall bypass fix** | `submodule/base f6780296` → parent `17367212dc` | `local/sources/base/netstack/src/router/mod.rs` (ipv6_transport_offset walker) | | **CRITICAL F002** | **worker_pool from_raw_fd type tightening** | `submodule/base b19e0a64` → parent `146cd0dced` | `local/sources/base/netstack/src/worker_pool.rs` (RawFd not usize) | +| **CRITICAL F003** | **scheme File ownership redundant cast fix** | `submodule/base e3f87fa3` → parent `2356417820` | `local/sources/base/netstack/src/scheme/mod.rs` (2 sites) | | **F21 (dnsd wiring)** | **Wire redbear-dnsd into redbear-mini** | `6b105c7cee` | `config/redbear-mini.toml` ([packages] + [init] 11_dnsd.service) | | **ghost-recipe docs** | **netd/audiodevd/usbd WIP per AGENTS.md** | `6b105c7cee` | `local/recipes/system/{netd,audiodevd,usbd}/recipe.toml` | | **local ssh recipe** | **net/openssh Red Bear fork with IPv6 detect + host-key gen** | `5656f8ccbe` | `local/recipes/net/openssh/recipe.toml` + `local/scripts/apply-patches.sh` symlink entry |