Skip to content

Linux: read an inode's page cache and an IDR through their own kernel - #2085

Open
miqsoft wants to merge 2 commits into
volatilityfoundation:developfrom
miqsoft:fix/linux-pagecache-own-kernel
Open

miqsoft wants to merge 2 commits into
volatilityfoundation:developfrom
miqsoft:fix/linux-pagecache-own-kernel

Conversation

@miqsoft

@miqsoft miqsoft commented Nov 9, 2026

Copy link
Copy Markdown

Fixes #2084

inode.get_pages() and IDR._new_kernel_get_entries() passed the hardcoded module name "kernel" to PageCache / IDStorage. They now take the module from the object's symbol table with LinuxUtilities.get_module_from_volobj_type(), as the other Linux extensions already do.

With a single kernel named kernel this is the same module, so nothing changes. With a differently named kernel module the call no longer fails with KeyError: 'kernel', and with two kernels in one context the page cache is read through the right one.

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.
@eve-mem

eve-mem commented Nov 11, 2026

Copy link
Copy Markdown
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.

🦊

@miqsoft

miqsoft commented Nov 12, 2026

Copy link
Copy Markdown
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.

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.

Linux: inode.get_pages() and IDR read through a hardcoded "kernel" module instead of their own kernel

2 participants