Closed GoogleCodeExporter closed 9 years ago
I think this same class factory is used for all the _MMVAD structures
and so for deeper structures in the list, the parent will not be an
_EPROCESS but something else. This patch attempts to traverse up the
tree to find the _EPROCESS.
My understanding of the -o option is simply to allow someone to
specify the eprocess in terms of the physical offset. I think we need
to separate these concerns and just have some utility for converting
an _EPROCESS from physical to virtual AS (maybe another module), while
requiring the offset here to be given in the virtual AS.
The correct solution is probably to switch AS to the process AS when
getting the initial MMVAD rather than use the __new__ method, this way
for all members of the tree, they will always use the process AS.
Michael.
Original comment by scude...@gmail.com
on 21 Feb 2012 at 2:38
Thanks for the explanation Scudette! So I applied the temporary patch in r1457
and will leave this issue open for discussing a more correct/thorough solution
like removing __new__.
Original comment by michael.hale@gmail.com
on 21 Feb 2012 at 2:43
So actually the obj_type for both will be _EPROCESS. Unfortunately at the
moment that isn't exposed so we're relying on obj_name (which is the name of
the element within the struct, rather than the type that element has). This
should also answer a question scudette posed, which was what's the difference
between theType and name, one is the type of the element and the other's the
name of the element...
So, ideally the patch should add a property to objects called obj_type or
obj_thetype which then just returns _vol_thetype, and then we use that to
determine when we hit an EPROCESS, rather than the name of the field. MHL,
want to have a crack at that, or should I do it on the weekend?
Original comment by mike.auty@gmail.com
on 21 Feb 2012 at 8:31
This issue was closed by revision r1460.
Original comment by michael.hale@gmail.com
on 22 Feb 2012 at 2:40
Original issue reported on code.google.com by
michael.hale@gmail.com
on 21 Feb 2012 at 2:24