To enable randomization of the page allocator in the kernel, add the
page_alloc.shuffle=1
argument to the default GRUB 2 command line.
To ensure that page_alloc.shuffle=1
is added as a kernel command line
argument to newly installed kernels, add page_alloc.shuffle=1
to the
default Grub2 command line for Linux operating systems. Modify the line within
/etc/default/grub
as shown below:
GRUB_CMDLINE_LINUX="... page_alloc.shuffle=1 ..."
Run the following command to update command line for already installed kernels:# grubby --update-kernel=ALL --args="page_alloc.shuffle=1"