kernel: Activate CONFIG_SLAB_FREELIST_HARDENED
authorHauke Mehrtens <hauke@hauke-m.de>
Sat, 22 Apr 2023 13:07:36 +0000 (15:07 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Sat, 29 Apr 2023 10:38:09 +0000 (12:38 +0200)
commitff536eca585431a9c90b9e835df818a27decf730
treea709733c826d61a75eb8b396cb12fe012ca04017
parent2bab7d273e02bb463c121233d5d7e74157844305
kernel: Activate CONFIG_SLAB_FREELIST_HARDENED

This activates some extra checks in SLAB or SLUB to make it harder to
execute kernel heap exploits. This adds a minor performance
degradation which I haven't measured-.

Many mainstream Linux distributions also activate this option.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
target/linux/generic/config-5.10
target/linux/generic/config-5.15