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.