[PATCH 0/2] metag/uaccess: Some more user access fixes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Here are a couple more user access fixes for metag. The first fixes
access_ok() which was flawed in a number of ways (including ignoring the
size of the copy and so allowing a copy crossing the user/kernel
boundary). The second adds missing access_ok() checking to
strncpy_from_user(). Thanks to Al for spotting some of the issues.

Both are tagged for stable.

Cc: Al Viro <viro@xxxxxxxxxxxxxxxxxx>
Cc: linux-metag@xxxxxxxxxxxxxxx
Cc: stable@xxxxxxxxxxxxxxx

James Hogan (2):
  metag/uaccess: Fix access_ok()
  metag/uaccess: Check access_ok in strncpy_from_user

 arch/metag/include/asm/uaccess.h | 49 ++++++++++++++++++++-------------
 1 file changed, 31 insertions(+), 18 deletions(-)

-- 
git-series 0.8.10



[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]