rumpk/libs/membrane
Markus Maiwald eaf753c70c feat(membrane): Hardened LwIP memory manager & stabilized DHCP/DNS
PROBLEM RESOLVED: memp_malloc NULL pointer crashes (0x18/0x20 offsets)

CRITICAL FIXES:
- Nuclear fail-safe in memp.c for mission-critical protocol objects
  * Direct heap fallback for UDP_PCB, TCP_PCB, PBUF, SYS_TMR pools
  * Handles ABI/relocation failures in memp_pools[] descriptor array
  * Prevents ALL NULL dereferences in protocol allocation paths

- Iteration-based network heartbeat in net_glue.nim
  * Drives LwIP state machines independent of system clock
  * Resolves DHCP/DNS timeout issues in QEMU/freestanding environments
  * Ensures consistent protocol advancement even with time dilation

- Unified heap configuration (MEMP_MEM_MALLOC=1, LWIP_TIMERS=1)
  * 2MB heap for network operations
  * Disabled LwIP stats to avoid descriptor corruption
  * Increased pool sizes for robustness

VERIFICATION:
 DHCP: Reliable IP acquisition (10.0.2.15)
 ICMP: Full Layer 2 connectivity confirmed
 DNS: Query enqueuing operational (secondary crash isolated)
 VirtIO: 12-byte header alignment maintained

NEXT: Final DNS request table hardening for complete resolution

 Signature: CORRECTNESS > SPEED
2026-01-07 23:47:04 +01:00
..
external/lwip feat(membrane): Hardened LwIP memory manager & stabilized DHCP/DNS 2026-01-07 23:47:04 +01:00
fonts feat(kernel): implement Sv39 fiber memory isolation and hardened ELF loader 2026-01-05 16:36:25 +01:00
fs feat(kernel): implement System Truth Ledger and Causal Trace 2026-01-06 03:37:53 +01:00
include feat(membrane): Hardened LwIP memory manager & stabilized DHCP/DNS 2026-01-07 23:47:04 +01:00
blk.nim Rumpk Stability, NipBox Boot, and Repository Cleanup 2026-01-04 21:39:06 +01:00
clib.c feat(membrane): Hardened LwIP memory manager & stabilized DHCP/DNS 2026-01-07 23:47:04 +01:00
compositor.nim Rumpk Stability, NipBox Boot, and Repository Cleanup 2026-01-04 21:39:06 +01:00
config_ledger.nim feat(kernel): implement System Truth Ledger and Causal Trace 2026-01-06 03:37:53 +01:00
ion.zig Rumpk Stability, NipBox Boot, and Repository Cleanup 2026-01-04 21:39:06 +01:00
ion_client.nim Network: Phase 36 Component (DHCP, VirtIO 12B, Hardened Logs) 2026-01-07 14:48:40 +01:00
kdl.nim feat(kernel): implement Sv39 fiber memory isolation and hardened ELF loader 2026-01-05 16:36:25 +01:00
libc.nim feat(membrane): Hardened LwIP memory manager & stabilized DHCP/DNS 2026-01-07 23:47:04 +01:00
libc_net.nim Rumpk Stability, NipBox Boot, and Repository Cleanup 2026-01-04 21:39:06 +01:00
libc_shim.zig feat(kernel): implement Sv39 fiber memory isolation and hardened ELF loader 2026-01-05 16:36:25 +01:00
net_glue.nim feat(membrane): Hardened LwIP memory manager & stabilized DHCP/DNS 2026-01-07 23:47:04 +01:00
socket.nim Rumpk Stability, NipBox Boot, and Repository Cleanup 2026-01-04 21:39:06 +01:00
sys_arch.c feat(membrane): Hardened LwIP memory manager & stabilized DHCP/DNS 2026-01-07 23:47:04 +01:00
term.nim feat(kernel): implement Sv39 fiber memory isolation and hardened ELF loader 2026-01-05 16:36:25 +01:00
term_font.nim feat(kernel): implement Sv39 fiber memory isolation and hardened ELF loader 2026-01-05 16:36:25 +01:00