You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Dropping chrdev/miscdev::Registration and similar #233
The current setup of chrdev and miscdev will lead to UAF if the returned Registration is dropped, but there's nothing that prevents the device driver from doing that. It's pretty clear from the examples, but it'd just be a shame if someone trying this out for the first time writes a very simple driver in totally safe Rust and gets a UAF error because they miss this point.
I also introduced a new type like this in #232 so if we end up with a bunch then maybe there should at least be some documentation/warnings about them? Not sure if we can do anything better than.
Activity
wedsonaf commentedon Apr 28, 2021
How can one trigger this UAF?
adamrk commentedon Apr 28, 2021
Ah, you're right. I was just forgetting to de-register in the
Dropwhen following a similar pattern. Sorry for the confusion.tracing: Do not allow mmap() of persistent ring buffer
tracing: Do not allow mmap() of persistent ring buffer
drm/amd/display: Fix slab-use-after-free in hdcp