Linux: fix bug where get_process_memory_sections fails with 6.1+ kernels

This commit is contained in:
Eve
2023-08-17 13:38:23 +01:00
committed by GitHub
parent 581c493f4f
commit 804d68d94d
@@ -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)