linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/1] Randomized slab caches for kmalloc()
@ 2023-06-16 11:18 GONG, Ruiqi
  2023-06-16 11:18 ` [PATCH v3 1/1] " GONG, Ruiqi
  2023-06-23  8:30 ` [PATCH v3 0/1] " Markus Elfring
  0 siblings, 2 replies; 10+ messages in thread
From: GONG, Ruiqi @ 2023-06-16 11:18 UTC (permalink / raw)
  To: Vlastimil Babka, Andrew Morton, Joonsoo Kim, David Rientjes,
	Pekka Enberg, Christoph Lameter, Tejun Heo, Dennis Zhou,
	Alexander Potapenko, Marco Elver, Kees Cook, Jann Horn
  Cc: Roman Gushchin, Hyeonggon Yoo, Dmitry Vyukov, Alexander Lobakin,
	Pedro Falcato, Paul Moore, James Morris, Serge E . Hallyn,
	Wang Weiyang, Xiu Jianfeng, linux-mm, linux-hardening,
	linux-kernel, gongruiqi1

I adapted the v2 patch to the latest linux-next tree and made the v3
patch without "RFC", since this idea seems to be acceptable in general
based on previous dicussion with mm and hardening folks. Please check
the link specified below for more details of the discussion, and further
suggestions are welcome.

v3:
  - Replace SLAB_RANDOMSLAB with the new existing SLAB_NO_MERGE flag.
  - Shorten long code lines by wrapping and renaming.
  - Update commit message with latest perf benchmark and additional
    theorectical explanation.

v2:
  - Use hash_64() and a per-boot random seed to select kmalloc() caches.
  - Change acceptable # of caches from [4,16] to {2,4,8,16}, which is
    more compatible with hashing.
  - Supplement results of performance and memory overhead tests.
  - Link: https://lore.kernel.org/all/20230508075507.1720950-1-gongruiqi1@huawei.com/

v1:
  - Link: https://lore.kernel.org/all/20230315095459.186113-1-gongruiqi1@huawei.com/

GONG, Ruiqi (1):
  Randomized slab caches for kmalloc()

 include/linux/percpu.h  | 12 ++++++---
 include/linux/slab.h    | 20 ++++++++++++---
 mm/Kconfig              | 49 ++++++++++++++++++++++++++++++++++++
 mm/kfence/kfence_test.c |  6 +++--
 mm/slab.c               |  2 +-
 mm/slab.h               |  2 +-
 mm/slab_common.c        | 55 +++++++++++++++++++++++++++++++++++++----
 7 files changed, 130 insertions(+), 16 deletions(-)

-- 
2.25.1



^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2023-06-26  9:19 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-16 11:18 [PATCH v3 0/1] Randomized slab caches for kmalloc() GONG, Ruiqi
2023-06-16 11:18 ` [PATCH v3 1/1] " GONG, Ruiqi
2023-06-21 18:21   ` Kees Cook
2023-06-25 11:25     ` GONG, Ruiqi
2023-06-22 13:56   ` Vlastimil Babka
2023-06-22 20:10     ` Kees Cook
2023-06-25 12:01       ` GONG, Ruiqi
2023-06-23  8:30 ` [PATCH v3 0/1] " Markus Elfring
2023-06-26  0:56   ` GONG, Ruiqi
2023-06-26  9:18     ` [v3 " Markus Elfring

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).