To configure the kernel to zero out memory before allocating it, add the
init_on_alloc=1
argument to the default GRUB 2 command line.
To ensure that init_on_alloc=1
is added as a kernel command line
argument to newly installed kernels, add init_on_alloc=1
to the
default Grub2 command line for Linux operating systems. Modify the line within
/etc/default/grub
as shown below:
GRUB_CMDLINE_LINUX="... init_on_alloc=1 ..."
Run the following command to update command line for already installed kernels:# grubby --update-kernel=ALL --args="init_on_alloc=1"