Merge pull request #996 from eve-mem/Linux-Change-get_process_memory_sections-to-use-get_vma_iter

Linux: fix bug where get_process_memory_sections fails with 6.1+ kernels
This commit is contained in:
ikelos
2023-09-03 21:41:43 +01:00
committed by GitHub
@@ -203,7 +203,7 @@ class task_struct(generic.GenericIntelProcess):
) -> Generator[Tuple[int, int], None, None]:
"""Returns a list of sections based on the memory manager's view of
this task's virtual memory."""
for vma in self.mm.get_mmap_iter():
for vma in self.mm.get_vma_iter():
start = int(vma.vm_start)
end = int(vma.vm_end)