-
Notifications
You must be signed in to change notification settings - Fork 11
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
Sporadic crashes in the vmware_fs driver #36
Comments
Looking at the code, I would say it requires a major refactoring in a few places like |
What kind of refactoring is needed?
It's actually too much work as open-vm-tools has a lot of components to port. |
First of all, there's a use-after-free bug somewhere in the code, which I wasn't able to find. |
There seems to be a working driver from open-vm-tools ported to Haiku here https://github.com/trungnt2910/open-vm-tools |
The FUSE driver from that port is known to work. That said, there are some certain quirks (I can't remember what since it's been quite a while since I used that driver myself). The port itself has a few stubs here and there, for example in scripts/haiku/network. There may be some other stubs I have forgotten that might or might not affect the |
The filesystem driver doesn't appear to use any locking at all. That's probably the source of the crashes. |
Well done! Would you be up for upstreaming it? The open-vm-tool team welcomes porting the project to new operating systems. |
Would @trungnt2910's port be recommended over these add-ons in general at this point? Is a recipe available? |
The current vmware_fs implementation seems to be quite buggy, and fails under extensive usage:
Crash 1:
Crash 2:
Crash 3:
The problem seems to be in the VMWNode children management logic, it looks like some nodes are used after their memory has been freed.
The text was updated successfully, but these errors were encountered: