dlm: dlm/user.c input validation fixes
commitcb79f1998d89821a4dbac47f59a46ee3fbbf3c61
authorAl Viro <viro@zeniv.linux.org.uk>
Sat, 26 Jan 2008 21:49:44 +0000 (26 16:49 -0500)
committerDavid Teigland <teigland@redhat.com>
Mon, 4 Feb 2008 07:30:19 +0000 (4 01:30 -0600)
tree1d1f953a43d1b3aa6bd9a786637ab2c4d2c7ab19
parent043b19cdc081f586a8f4e1c93ce6c03b63c26284
dlm: dlm/user.c input validation fixes

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 <viro@zeniv.linux.org.uk>
Signed-off-by: David Teigland <teigland@redhat.com>
fs/dlm/user.c