Linux kernel heap feng shui in 2022
An article by and describing the kernel changes that affected exploitation techniques for slab-related vulnerabilities over the last few years.
duasynt.com/blog/linux-ker
Conversation
I believe the "post 5.0" part should be "post 5.9". Using separate caches for accounting was removed in this patch:
3
6
yes that should be post 5.9 up to 5.14. and it applies to kmalloc allocations only, not special caches with SLAB_ACCOUNT. thanks
1
4
Ah, so wrt kmalloc caches: they are not mergeable with non-kmalloc ones ever since 4.16 due to hardened usercopy, and these newer patches only affect whether GFP_KERNEL_ACCOUNT kmalloc allocations get dispatched into a different set of kmalloc caches than GFP_KERNEL ones. Right?


