Re: [RFC 4/6] mm: swap: Add randomization check for swapon/off calls

From: Andrew Lunn
Date: Wed May 18 2022 - 08:28:00 EST


On Wed, May 18, 2022 at 01:18:39PM +0530, Vivek Kumar wrote:
> Add addtional check on swapon/swapoff sycalls to disable
> randomization of swap offsets if GENHD_FL_NO_RANDOMIZE
> flag is passed.

Is there already a flag in the image header which tells you if the
image is randomozied or not? I assume the bootloader needs to know,
doing a linear read of a randomized image is not going to end well.

Andrew