From: Vlastimil Babka <vbabka@suse.cz>
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: David Rientjes <rientjes@google.com>,
Joonsoo Kim <iamjoonsoo.kim@lge.com>,
Christoph Lameter <cl@linux.com>,
Pekka Enberg <penberg@kernel.org>,
Andrew Morton <akpm@linux-foundation.org>,
"linux-mm@kvack.org" <linux-mm@kvack.org>,
LKML <linux-kernel@vger.kernel.org>,
patches@lists.linux.dev,
Roman Gushchin <roman.gushchin@linux.dev>,
Hyeonggon Yoo <42.hyeyoo@gmail.com>,
Kees Cook <keescook@chromium.org>
Subject: [GIT PULL] slab updates for 6.6
Date: Tue, 29 Aug 2023 15:22:37 +0200 [thread overview]
Message-ID: <eea66c95-8b95-49b1-18f5-5bd92f73f60e@suse.cz> (raw)
Hi Linus,
please pull the latest slab updates from:
git://git.kernel.org/pub/scm/linux/kernel/git/vbabka/slab.git tags/slab-for-6.6
This happens to be a small one (due to summer I guess), and all hardening
related.
Thanks,
Vlastimil
======================================
* Randomized kmalloc caches, by GONG, Ruiqi.
A new opt-in hardening feature to make heap spraying harder. It
creates multiple (16) copies of kmalloc caches, reducing the
chance of an attacker-controllable allocation site to land in
the same slab as e.g. an allocation site with use-after-free
vulnerability. The selection of the copy is derived from the
allocation site address, including a per-boot random seed.
* Stronger typing for hardened freelists in SLUB, by Jann Horn
Introduces a custom type for hardened freelist entries instead
of "void *" as those are not directly dereferencable.
While reviewing this, I've noticed opportunities for further
cleanups in that code and added those on top.
----------------------------------------------------------------
GONG, Ruiqi (1):
Randomized slab caches for kmalloc()
Jann Horn (1):
mm/slub: refactor freelist to use custom type
Vlastimil Babka (3):
mm/slub: remove redundant kasan_reset_tag() from freelist_ptr calculations
mm/slub: remove freelist_dereference()
Merge branch 'slab/for-6.6/random_kmalloc' into slab/for-next
include/linux/percpu.h | 12 +++++++---
include/linux/slab.h | 23 +++++++++++++++++---
mm/Kconfig | 17 +++++++++++++++
mm/kfence/kfence_test.c | 7 ++++--
mm/slab.c | 2 +-
mm/slab.h | 2 +-
mm/slab_common.c | 49 ++++++++++++++++++++++++++++++++++++-----
mm/slub.c | 58 ++++++++++++++++++++++++++++---------------------
8 files changed, 130 insertions(+), 40 deletions(-)
~
next reply other threads:[~2023-08-29 13:22 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-29 13:22 Vlastimil Babka [this message]
2023-08-29 20:18 ` [GIT PULL] slab updates for 6.6 pr-tracker-bot
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:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=eea66c95-8b95-49b1-18f5-5bd92f73f60e@suse.cz \
--to=vbabka@suse.cz \
--cc=42.hyeyoo@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=cl@linux.com \
--cc=iamjoonsoo.kim@lge.com \
--cc=keescook@chromium.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=patches@lists.linux.dev \
--cc=penberg@kernel.org \
--cc=rientjes@google.com \
--cc=roman.gushchin@linux.dev \
--cc=torvalds@linux-foundation.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).