[PATCH 4/7] test_user_copy: Check __copy_in_user()/copy_in_user()

2015-08-05 Thread James Hogan
Add basic success/failure checking of copy_in_user() which copies data from userspace to userspace (or kernel to kernel), and its unchecking cousin __copy_in_user() which assumes that access_ok() has already been used as appropriate. The following cases are checked: - __copy_in_user/copy_in_user

[PATCH 4/7] test_user_copy: Check __copy_in_user()/copy_in_user()

2015-08-05 Thread James Hogan
Add basic success/failure checking of copy_in_user() which copies data from userspace to userspace (or kernel to kernel), and its unchecking cousin __copy_in_user() which assumes that access_ok() has already been used as appropriate. The following cases are checked: - __copy_in_user/copy_in_user