archive mirror
 help / color / mirror / Atom feed
From: Christopher Lameter <>
To: Kees Cook <>
Cc: Andrew Morton <>,
	Pekka Enberg <>,
	David Rientjes <>,
	Joonsoo Kim <>,
	Daniel Micay <>,
	Vitaly Nikolenko <>,
	Silvio Cesare <>,,
Subject: Re: [PATCH] slub: Relocate freelist pointer to middle of object
Date: Sun, 8 Mar 2020 19:21:09 +0000 (UTC)	[thread overview]
Message-ID: <> (raw)
In-Reply-To: <202003051624.AAAC9AECC@keescook>

On Thu, 5 Mar 2020, Kees Cook wrote:

> Instead of having the freelist pointer at the very beginning of an
> allocation (offset 0) or at the very end of an allocation (effectively
> offset -sizeof(void *) from the next allocation), move it away from
> the edges of the allocation and into the middle. This provides some
> protection against small-sized neighboring overflows (or underflows),
> for which the freelist pointer is commonly the target. (Large or well
> controlled overwrites are much more likely to attack live object contents,
> instead of attempting freelist corruption.)

Sounds good. You could even randomize the position to avoid attacks on via
the freelist pointer.

Acked-by: Christoph Lameter <>

  reply	other threads:[~2020-03-08 19:21 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-06  0:26 Kees Cook
2020-03-08 19:21 ` Christopher Lameter [this message]
2020-03-11 14:48   ` David Laight
2020-03-11 17:37     ` Kees Cook
2020-03-11 17:44     ` Kees Cook
2020-03-15 14:11       ` Christopher Lameter

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \ \ \ \ \ \ \ \ \ \
    --subject='Re: [PATCH] slub: Relocate freelist pointer to middle of object' \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
on how to clone and mirror all data and code used for this inbox