From: Patrick Caulfeld Date: Thu, 17 Jan 2008 10:25:28 +0000 (+0000) Subject: dlm: Sanity check namelen before copying it X-Git-Tag: v2.6.25-rc1~1139^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2a79289e87f3b6487b5fd23c8569f32097057fb4;p=pandora-kernel.git 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 Signed-off-by: David Teigland --- Reading git-diff-tree failed