Prevent get_vma_iter from returning junk instances

This commit is contained in:
Andrew Case
2025-01-03 19:43:01 +00:00
parent e24311ff13
commit c9136cabf6
@@ -872,9 +872,10 @@ class mm_struct(objects.StructType):
with contextlib.suppress(exceptions.InvalidAddressException):
for vma in self._do_get_vma_iter():
# this catches invalid instances returned by the internal interator functions
vma.vm_start
yield vma
# this catches invalid instances returned by the internal interator functions
vma.vm_start
yield vma
class super_block(objects.StructType):
# include/linux/kdev_t.h