dlm: Fix kernel memory disclosure
authorVlad Tsyrklevich <vlad@tsyrklevich.net>
Wed, 22 Feb 2017 21:31:45 +0000 (15:31 -0600)
committerDavid Teigland <teigland@redhat.com>
Mon, 7 Aug 2017 16:23:09 +0000 (11:23 -0500)
commit8286d6b14c7c0e2c52d565a8727f6028a487fcf0
tree23b540911b1e9c8a1df88ddc0a9796a17eb2b483
parentaae4e7a8bc44722fe70d58920a36916b1043195e
dlm: Fix kernel memory disclosure

Clear the 'unused' field and the uninitialized padding in 'lksb' to
avoid leaking memory to userland in copy_result_to_user().

Signed-off-by: Vlad Tsyrklevich <vlad@tsyrklevich.net>
Signed-off-by: David Teigland <teigland@redhat.com>
fs/dlm/user.c