Skip to content

Commit 23453f5

Browse files
authored
Merge pull request #580 from volatilityfoundation/issues/large-page-fix
Layers: Fix bug where PAT flag is treated as address
2 parents bcdec8a + 2a78314 commit 23453f5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

volatility3/framework/layers/intel.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,9 @@ def _translate_entry(self, offset: int) -> Tuple[int, int]:
135135
"Page Fault at entry " + hex(entry) + " in table " + name)
136136
# Check if we're a large page
137137
if large_page and (entry & (1 << 7)):
138+
# Mask off the PAT bit
139+
if entry & (1 << 12):
140+
entry -= (1 << 12)
138141
# We're a large page, the rest is finished below
139142
# If we want to implement PSE-36, it would need to be done here
140143
break

0 commit comments

Comments
 (0)