[PATCH 3.16 109/134] metag/uaccess: Check access_ok in strncpy_from_user

2017-08-18 Thread Ben Hutchings
3.16.47-rc1 review patch. If anyone has any objections, please let me know. -- From: James Hogan commit 3a158a62da0673db918b53ac1440845a5b64fd90 upstream. The metag implementation of strncpy_from_user() doesn't validate the src pointer, which could

[PATCH 3.16 109/134] metag/uaccess: Check access_ok in strncpy_from_user

2017-08-18 Thread Ben Hutchings
3.16.47-rc1 review patch. If anyone has any objections, please let me know. -- From: James Hogan commit 3a158a62da0673db918b53ac1440845a5b64fd90 upstream. The metag implementation of strncpy_from_user() doesn't validate the src pointer, which could allow reading of arbitrary