Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Swapped page read failure in Linux v6.1-rc4 #159

Closed
wants to merge 1 commit into from

Conversation

yukariatlas
Copy link
Contributor

@yukariatlas yukariatlas commented Nov 8, 2023

When using the "rd" command to access a memory address swapped out to zram, it checks the compression method.
Previously, it accessed the "compressor" field in the zram struct to obtain the method.
However, starting from Linux v6.1-rc4 (due to commit 7ac07a26dea7, "zram: preparation for multi-zcomp support"), this field has been replaced by "comp_algs," leading to the following errors.
rd: WARNING: Some pages are swapped out to zram. Please run mod -s zram.
rd: invalid user virtual address: ffff7d23f010 type: "64-bit UVADDR"

A kernel commit 7ac07a26dea7 (zram: preparation for multi-zcomp support)
in Linux replaces "compressor" with "comp_algs" in the zram struct.
If not fixed, the issue triggers the following error:
  rd: WARNING: Some pages are swapped out to zram. Please run mod -s zram.
  rd: invalid user virtual address: ffff7d23f010  type: "64-bit UVADDR"

Signed-off-by: Chengen Du <chengen.du@canonical.com>
@yukariatlas yukariatlas changed the title Fix 'rd' command for zram data display in Linux 6.1+ Swapped page read failure in Linux v6.1-rc4 Nov 8, 2023
@yukariatlas
Copy link
Contributor Author

I will submit this patch to the mailing list, mark this PR as closed.

@yukariatlas yukariatlas closed this Nov 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant