On 24/03/2023 16:20, Kevin Brodsky wrote:
+bool check_user_ptr_read(void __user *ptr, size_t len); +bool check_user_ptr_write(void __user *ptr, size_t len); +bool check_user_ptr_rw(void __user *ptr, size_t len);
Hi Kevin,
I've been testing your patch with some explicit checking and I see that this may not work in every situation. In some cases the capability to be checked has a const qualifier, resulting in a compiler error when passsing it along to one of these.
Best, Luca