[Cluster-devel] [PATCH] dlm: Sanity check namelen before copying it

Patrick Caulfeld pcaulfie at redhat.com
Thu Jan 17 10:25:28 UTC 2008


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 at redhat.com>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ppcdiff.upstream
URL: <http://listman.redhat.com/archives/cluster-devel/attachments/20080117/e4517c22/attachment.ksh>


More information about the Cluster-devel mailing list