diff options
author | Patrick Caulfeld <pcaulfie@redhat.com> | 2008-01-17 10:25:28 +0000 |
---|---|---|
committer | David Teigland <teigland@redhat.com> | 2008-01-30 11:04:43 -0600 |
commit | 2a79289e87f3b6487b5fd23c8569f32097057fb4 (patch) | |
tree | 3b099a7b7306ee99fcb272e260b7344d34fdc666 /fs/dlm/util.c | |
parent | 85f0379aa0f9366bb6918e2e898a915231176fbd (diff) | |
download | linux-3.10-2a79289e87f3b6487b5fd23c8569f32097057fb4.tar.gz linux-3.10-2a79289e87f3b6487b5fd23c8569f32097057fb4.tar.bz2 linux-3.10-2a79289e87f3b6487b5fd23c8569f32097057fb4.zip |
dlm: Sanity check namelen before copying it
The 32/64 compatibility code in the DLM does not check the validity of
the lock name length passed into it, so it can easily overwrite memory
if the value is rubbish (as early versions of libdlm can cause with
unlock calls, it doesn't zero the field).
This patch restricts the length of the name to the amount of data
actually passed into the call.
Signed-off-by: Patrick Caulfield <pcaulfie@redhat.com>
Signed-off-by: David Teigland <teigland@redhat.com>
Diffstat (limited to 'fs/dlm/util.c')
0 files changed, 0 insertions, 0 deletions