From: Al Viro Date: Sat, 26 Jan 2008 04:22:26 +0000 (-0500) Subject: dlm: make find_rsb() fail gracefully when namelen is too large X-Git-Tag: v2.6.25-rc1~42^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ef58bccab7c7ef34451aa4ceea39545ef126b666;p=pandora-kernel.git dlm: make find_rsb() fail gracefully when namelen is too large We *can* get there from receive_request() and dlm_recover_master_copy() with namelen too large if incoming request is invalid; BUG() from DLM_ASSERT() in allocate_rsb() is a bit excessive reaction to that and in case of dlm_recover_master_copy() we would actually oops before that while calculating hash of up to 64Kb worth of data - with data actually being 64 _bytes_ in kmalloc()'ed struct. Signed-off-by: Al Viro Signed-off-by: David Teigland --- Reading git-diff-tree failed