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
As an addition, using separate caches for accounting was introduced again in 5.14, as pointed out by :
i think the caches get merged if CONFIG_MEMCG isn’t enabled, if anyone is curious.
1
7
ahh what I was referring to is general purpose allocations with GFP_KERNEL_ACCOUNT. that's true MEMCG would make accounted special-purpose caches non-mergeable regardless of the kern version. if it's disabled then there's no kmem accounting. I'll expand 👍
1
2
Show replies





