[go: up one dir, main page]

|
|
Log in / Subscribe / Register

unsafe_put_user() turns out to be unsafe

unsafe_put_user() turns out to be unsafe

Posted Oct 14, 2017 4:58 UTC (Sat) by dark_knight (subscriber, #47846)
In reply to: unsafe_put_user() turns out to be unsafe by sorokin
Parent article: unsafe_put_user() turns out to be unsafe

I was about to make a similar comment.

In C++, one could even build an object to emulate user_access_begin/end in RAII style. Then, all calls to unsafe_*_user are made in the scope where such object is defined.


to post comments


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds