linux-hardened/fs/dlm
Al Viro ef58bccab7 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 <viro@zeniv.linux.org.uk>
Signed-off-by: David Teigland <teigland@redhat.com>
2008-02-04 01:26:31 -06:00
..
ast.c [DLM] fs/dlm/ast.c should #include "ast.h" 2007-05-01 09:11:25 +01:00
ast.h [DLM] The core of the DLM for GFS2/CLVM 2006-01-18 09:30:29 +00:00
config.c configfs: Convert subsystem semaphore to mutex 2007-07-10 17:10:56 -07:00
config.h [DLM] add lock timeouts and warnings [2/6] 2007-07-09 08:22:33 +01:00
debug_fs.c [DLM] dump more lock values 2007-07-09 08:24:13 +01:00
dir.c dlm: validate data in dlm_recover_directory() 2008-02-04 01:24:52 -06:00
dir.h [DLM] The core of the DLM for GFS2/CLVM 2006-01-18 09:30:29 +00:00
dlm_internal.h dlm: use proper type for ->ls_recover_buf 2008-02-04 01:24:07 -06:00
Kconfig menuconfig: transform NLS and DLM menus 2007-10-17 08:43:00 -07:00
lock.c dlm: make find_rsb() fail gracefully when namelen is too large 2008-02-04 01:26:31 -06:00
lock.h dlm: dlm_process_incoming_buffer() fixes 2008-02-04 01:22:42 -06:00
lockspace.c dlm: use dlm prefix on alloc and free functions 2008-01-29 17:17:19 -06:00
lockspace.h [DLM] dlm: user locks 2006-07-13 09:25:34 -04:00
lowcomms.c dlm: close othercons 2008-01-29 17:17:32 -06:00
lowcomms.h [DLM] Clean up lowcomms 2006-12-07 09:25:13 -05:00
lvb_table.h [DLM] The core of the DLM for GFS2/CLVM 2006-01-18 09:30:29 +00:00
main.c dlm: proper prototypes 2008-01-29 17:16:52 -06:00
Makefile [DLM] add lock timeouts and warnings [2/6] 2007-07-09 08:22:33 +01:00
member.c dlm: reject messages from non-members 2008-01-30 11:04:42 -06:00
member.h dlm: reject messages from non-members 2008-01-30 11:04:42 -06:00
memory.c dlm: use dlm prefix on alloc and free functions 2008-01-29 17:17:19 -06:00
memory.h dlm: use dlm prefix on alloc and free functions 2008-01-29 17:17:19 -06:00
midcomms.c dlm: dlm_process_incoming_buffer() fixes 2008-02-04 01:22:42 -06:00
midcomms.h [DLM] The core of the DLM for GFS2/CLVM 2006-01-18 09:30:29 +00:00
netlink.c [DLM] timeout fixes 2007-07-09 08:22:52 +01:00
rcom.c dlm: verify that places expecting rcom_lock have packet long enough 2008-02-04 01:25:09 -06:00
rcom.h [DLM] block dlm_recv in recovery transition 2007-10-10 08:56:38 +01:00
recover.c dlm: use proper type for ->ls_recover_buf 2008-02-04 01:24:07 -06:00
recover.h [DLM] The core of the DLM for GFS2/CLVM 2006-01-18 09:30:29 +00:00
recoverd.c dlm: keep cached master rsbs during recovery 2008-01-30 11:04:43 -06:00
recoverd.h [DLM] The core of the DLM for GFS2/CLVM 2006-01-18 09:30:29 +00:00
requestqueue.c dlm: use proper C for dlm/requestqueue stuff (and fix alignment bug) 2008-02-04 01:21:32 -06:00
requestqueue.h dlm: use proper C for dlm/requestqueue stuff (and fix alignment bug) 2008-02-04 01:21:32 -06:00
user.c dlm: static initialization improvements 2008-01-30 11:04:43 -06:00
user.h [DLM] dlm: user locks 2006-07-13 09:25:34 -04:00
util.c dlm: do not byteswap rcom_config 2008-02-04 01:23:43 -06:00
util.h [DLM] The core of the DLM for GFS2/CLVM 2006-01-18 09:30:29 +00:00