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

Andrew Lunn andrew at lunn.ch
Wed May 18 05:27:05 PDT 2022


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



More information about the linux-arm-kernel mailing list