Skip to content
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

How to send buffer to driver while the hypervisor is running? #52

Open
danyhm opened this issue Nov 18, 2022 · 0 comments
Open

How to send buffer to driver while the hypervisor is running? #52

danyhm opened this issue Nov 18, 2022 · 0 comments

Comments

@danyhm
Copy link

danyhm commented Nov 18, 2022

Hello,

I've been struggling with this issue for days and I've looked everywhere I knew would help, however, I'm still having a problem with this

I want to send a small buffer (~1KB) to the driver while the hypervisor is running.
I tried creating an IOCTL code specific for this along with the ioctl_enable_io_debugbreak_t::code which is already present.
I also tried implementing the on_write() driver function to get the buffer.

no matter the method, the buffer from the user app is always corrupted and the expected data is not present. (the correct size is passed) the buffer is mostly filled with 0xcccccccc along with some other random numbers.
I also tried the routine in copy_from_user function where IoAllocateMdl is used then MmProbeAndLockPages. the same kind of garbage is always returned.

any ideas?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant