Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1621535 > unrolled thread

Re: [PATCH] mm: Add additional consistency check

Started byChristoph Lameter <cl@linux.com>
First post2017-04-11 20:40 +0200
Last post2017-04-11 20:40 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH] mm: Add additional consistency check Christoph Lameter <cl@linux.com> - 2017-04-11 20:40 +0200

#1621535 — Re: [PATCH] mm: Add additional consistency check

FromChristoph Lameter <cl@linux.com>
Date2017-04-11 20:40 +0200
SubjectRe: [PATCH] mm: Add additional consistency check
Message-ID<tv8RP-2eB-1@gated-at.bofh.it>
On Fri, 31 Mar 2017, Kees Cook wrote:

> As found in PaX, this adds a cheap check on heap consistency, just to
> notice if things have gotten corrupted in the page lookup.

Ok this only affects kmem_cache_free() and not kfree(). For
kmem_cache_free() we already have a lot of stuff in the hotpath due to
cgruops. If you want this also for kfree() then we need a separate patch.

Also for kmem_cache_free(): Here we always have a slab cache and thus we
could check the flags that could modify what behavior we want.

Acked-by: Christoph Lameter <cl@linux.com>

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web