Re: [PATCH 0/2] Improve dmesg output for swapfile+hibernation
From: Christoph Hellwig
Date: Mon May 27 2024 - 07:20:39 EST
On Mon, May 27, 2024 at 11:06:11AM +0000, Sukrit.Bhatnagar@xxxxxxxx wrote:
> We can pass the starting physical block offset of a swapfile into
> /sys/power/resume_offset, and hibernate can directly read/write
> into it using the swap extents information created by iomap during
> swapon. On resume, the kernel would read this offset value from
> the commandline parameters, and then access the swapfile.
Reading a physical address from userspace is not a proper interface.
What is this code even trying to do with it?