type-based slab allocation: kmalloc_obj family
summary
Proposal changes slab allocator to be type-aware by introducing kmalloc_obj() v4/v5 so allocations return typed pointers instead of void, and it converts the ~20,000 kmalloc callsites while uncovering about six real type mismatches. It implements automatic flexible-array counter assignment (signed counters map negative to zero for safety), simplifies macros from large complex expansions to two-line forms, covers kmalloc/kv wrappers now and leaves devm_kmalloc as an extension to implement.
AI-written summary · about
