[PATCH 19/19] dlm: Sanity check namelen before copying it

2008-01-24 Thread David Teigland
From: Patrick Caulfeld <[EMAIL PROTECTED]> 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).

[PATCH 19/19] dlm: Sanity check namelen before copying it

2008-01-24 Thread David Teigland
From: Patrick Caulfeld [EMAIL PROTECTED] 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).