-
Notifications
You must be signed in to change notification settings - Fork 253
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[LIBHOOK] makes the xen virtual machine hang #1740
Comments
Hello, I am writing here since I was on the point of starting a new issue but maybe we have the same problem. I am experiencing domain freezing while running Codemon for monitoring the whole userspace in Windows 10 20H1 and my output look really similar to that above. It happens sometimes and, at the moment, I cannot really reproduce arbitrarily the error. I suppose there is some trouble in managing events. My guess is that some event is not correctly handled because of some sort of lack of atomicity in removing/adding events and the domain is suspended during singlestepping but I have no idea on how to verify that this is the case. |
Debugging that type of error is really difficult. What may help is to verify if this is a new issue or if you had the same problem with older versions. If its an issue only happening with a newer version then some recent change might have broke the logic to fix, which should easier. If its happening with older versions as well, then the logic was already broken and its much harder to figure out why. |
Ok ok, I would like to try to debug it but I am not very proficient yet working with Xen. As I was saying, my suspicion is that event management is somehow broken. Maybe passing through the vm_event interface I could figure out what makes my domU hang dumping events and checking which one is not managed by the stack libvmi+drakvuf+codemon. As an alternative, I could try to write a more concise stress test for memaccess events to try to understand what is wrong. Do you have any advice for me, Tamas? |
I tested version 1.0 and this problem was also present. I noticed that by setting |
At last, I was able to make Xen freeze at the beginning of the execution by commenting this part of the codes. Lines 1144 to 1145 in 67477d0
Lines 1515 to 1525 in 67477d0
|
Hello , Lines 1184 to 1198 in 1859dc9
Lines 1216 to 1229 in 1859dc9
for example : vmi_set_mem_event(vmi, container->memaccess.gfn, VMI_MEMACCESS_N, drakvuf->altp2m_idx)
|
Yea, don't do that. That disables the core functionality of DRAKVUF and it makes the breakpoints detectable by the guest. |
I always encounter the same problem when I use the apimon of drakvuf.
|
Hi, I ran Drakvuf with Procmon and Apimon plugins on a Windows 7 SP1 virtual machine with a sample malware that I found in MalwareBazaar. After a long while after default browser (IE) openned , the Xen virtual machine hung and froze, and even the
xl destroy
command did not work. So, I had to kill the QEMU process to force it to stop.xl list
result:Here is the time of execution of malware stderr log for both runs:
trace1
trace2
The text was updated successfully, but these errors were encountered: