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 handle when a device driver panics? #475

Open
tomaka opened this issue Jun 27, 2020 · 1 comment
Open

How to handle when a device driver panics? #475

tomaka opened this issue Jun 27, 2020 · 1 comment

Comments

@tomaka
Copy link
Owner

tomaka commented Jun 27, 2020

Imagine the situation: a device driver allocates buffers in RAM, then configures a hardware device to write in these buffers, then the driver panics.
The hardware device might continue writing to the allocated buffers, meaning that it would be a bad idea to reclaim these buffers for something else.

A simple solution would be to leak these buffers forever, but a better one might exist.

@tomaka
Copy link
Owner Author

tomaka commented Jun 27, 2020

For PCI, this could probably be solved by writing the COMMAND register when a crash happens while a device was still locked, to deny the hardware device access to the memory.

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