[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.DEB.2.22.394.2010120754010.150059@www.lameter.com>
Date: Mon, 12 Oct 2020 08:01:04 +0000 (UTC)
From: Christopher Lameter <cl@...ux.com>
To: Kees Cook <keescook@...omium.org>
cc: Andrew Morton <akpm@...ux-foundation.org>, stable@...r.kernel.org,
Marco Elver <elver@...gle.com>,
Jonathan Corbet <corbet@....net>,
Pekka Enberg <penberg@...nel.org>,
David Rientjes <rientjes@...gle.com>,
Joonsoo Kim <iamjoonsoo.kim@....com>,
Vlastimil Babka <vbabka@...e.cz>, Roman Gushchin <guro@...com>,
linux-kernel@...r.kernel.org, linux-doc@...r.kernel.org,
linux-mm@...ck.org
Subject: Re: [PATCH v2 2/3] mm/slub: Fix redzoning for small allocations
On Fri, 9 Oct 2020, Kees Cook wrote:
> Store the freelist pointer out of line when object_size is smaller than
> sizeof(void *) and redzoning is enabled.
>
> (Note that no caches with such a size are known to exist in the kernel
> currently.)
Ummm... The smallest allowable cache size is sizeof(void *) as I recall.
mm/slab_common.c::kmem_sanity_check() checks the sizes when caches are
created.
NAK.
Powered by blists - more mailing lists