It will reuse the memory for other things when the whole slab is freed though. Not really realistic to change that without it being backed by virtual memory along with higher-level management of regions to avoid intense fragmentation and metadata waste. It would depend a lot on having much finer-grained slab caches, otherwise it's not going to be much of an alternative to a quarantine feature. Even then, a quarantine feature is still useful, but is less suitable for a mainstream feature due to performance cost. Even a small quarantine has a fairly high performance cost.
- Re: [PATCH RFC v2 0/6] Break heap spraying needed for ... Jann Horn
- Re: [PATCH RFC v2 0/6] Break heap spraying needed... Matthew Wilcox
- Re: [PATCH RFC v2 0/6] Break heap spraying ne... Jann Horn
- Re: [PATCH RFC v2 0/6] Break heap spraying ne... Kees Cook
- Re: [PATCH RFC v2 0/6] Break heap sprayin... Jann Horn
- Re: [PATCH RFC v2 0/6] Break heap sprayin... Daniel Micay
- Re: [PATCH RFC v2 0/6] Break heap sprayin... Christopher Lameter
- Re: [PATCH RFC v2 0/6] Break heap spraying ne... Christopher Lameter
- Re: [PATCH RFC v2 0/6] Break heap spraying needed... Alexander Popov
- Re: [PATCH RFC v2 0/6] Break heap spraying ne... Jann Horn
- Re: [PATCH RFC v2 0/6] Break heap sprayin... Alexander Popov