From: Vlastimil Babka Date: Tue, 18 Jul 2023 08:16:05 +0000 (+0200) Subject: Merge branch 'slab/for-6.6/random_kmalloc' into slab/for-next X-Git-Tag: block-6.6-2023-09-08~17^2 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=3d053e8060430b86bad0854b7c7f03f15be3a7e5;p=linux-2.6-block.git Merge branch 'slab/for-6.6/random_kmalloc' into slab/for-next Merge the new hardening feature to make heap spraying harder, by GONG, Ruiqi. 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. In line with SLAB deprecation, this is a SLUB only feature, incompatible with SLUB_TINY due to the memory overhead of the extra cache copies. --- 3d053e8060430b86bad0854b7c7f03f15be3a7e5