[PATCH 13/16] dlm: dlm/user.c input validation fixes

2008-02-06 Thread David Teigland
From: Al Viro <[EMAIL PROTECTED]> a) in device_write(): add sentinel NUL byte, making sure that lspace.name will be NUL-terminated b) in compat_input() be keep it simple about the amounts of data we are copying. Signed-off-by: Al Viro <[EMAIL PROTECTED]> Signed-off-by: David Teigland <[EMAIL

[PATCH 13/16] dlm: dlm/user.c input validation fixes

2008-02-06 Thread David Teigland
From: Al Viro [EMAIL PROTECTED] a) in device_write(): add sentinel NUL byte, making sure that lspace.name will be NUL-terminated b) in compat_input() be keep it simple about the amounts of data we are copying. Signed-off-by: Al Viro [EMAIL PROTECTED] Signed-off-by: David Teigland [EMAIL