Files
RedBear-OS/local/recipes
vasilito f0cb2cbe49 linux-kpi: P2 transmute audit — add SAFETY comments, type safety
IMPROVEMENT-PLAN.md §10.3 item 7: HIGH severity transmute audit.

mac80211.rs:469:
- RxCallback type changed from extern "C" fn to unsafe extern "C" fn
- Callback call now wrapped in unsafe { } (correct for FFI callback)
- Added SAFETY comment: explains HashMap<usize,usize> storage pattern
  and why usize→fn pointer transmute is sound (same size, valid ABI)

timer.rs:202:
- Added SAFETY comment: explains Linux kernel timer callback ABI
  (setup_timer/mod_timer always uses void (*)(unsigned long))
- transmute remains (necessary: usize from C → fn pointer)

Both transmutes are now documented with soundness invariants.
No actual UB was found — both transmutes were already safe.
The fix is documentation, not behavioral change.
2026-07-08 10:44:19 +03:00
..
2026-07-05 22:29:19 +03:00
2026-07-05 22:29:19 +03:00
2026-07-05 22:29:19 +03:00
2026-07-05 22:29:19 +03:00
2026-07-05 22:29:19 +03:00
2026-07-05 22:29:19 +03:00
2026-07-08 01:14:36 +03:00