v1
2026-08-06
修复 memalloc 递归释放 · v1
引入KMALLOC_NO_OBJ_EXT类型,防止kmalloc类型间循环,解决memalloc profiling递归问题。
原始补丁链接
子 Patch(2)
1/2
lib/alloc_tag: introduce mem_alloc_profiling_permanently_disabled()
新增 mem_alloc_profiling_permanently_disabled(),区分暂时关闭与永久禁用;后者才可安全跳过 KMALLOC_NO_OBJ_EXT 缓存等启动优化。
2/2
mm/slab: prevent unbounded recursion in free path with new kmalloc type
修复 slabobj_ext 数组可在不同 kmalloc 缓存间成环(如 kmalloc-512 与 1k 互存)导致释放路径无限递归;需打破跨缓存递归分配。