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:
As an addition, using separate caches for accounting was introduced again in 5.14, as pointed out by :
2
7
👍 yes that needs to be 5.9 and prior to 5.14. and that's referring to kmem accounted general purpose allocations only
1
1
2
1
5
Show replies
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?
2
1
Show replies






