Repository navigation
Conversation
inode.get_pages() and IDR._new_kernel_get_entries() passed the module name "kernel" to PageCache / IDStorage. In a context that holds two kernels (a VM host and a guest stacked on a layer built from the host's VMM process) the module named "kernel" is the host's, so a guest inode's page cache was walked with the host's layer and symbols and failed with "Invalid cached page address". Take the module from the object's symbol table instead (LinuxUtilities.get_module_from_volobj_type), as the other Linux extensions already do; with a single kernel this is the same module.
Contributor
|
This makes one sense to me! I think it would need a version bump as its touching the extensions but otherwise it seems good. 🦊 |
Author
|
Thanks! PATCH bump to 2.28.4 pushed. It touches the same line as #2083, so I'll rebase whichever of the two merges second to 2.28.5. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #2084
inode.get_pages()andIDR._new_kernel_get_entries()passed the hardcoded module name"kernel"toPageCache/IDStorage. They now take the module from the object's symbol table withLinuxUtilities.get_module_from_volobj_type(), as the other Linux extensions already do.With a single kernel named
kernelthis is the same module, so nothing changes. With a differently named kernel module the call no longer fails withKeyError: 'kernel', and with two kernels in one context the page cache is read through the right one.