linux/fs/ocfs2
dann frazier 226291aa46 ocfs2_connection_find() returns pointer to bad structure
If ocfs2_live_connection_list is empty, ocfs2_connection_find() will return
a pointer to the LIST_HEAD, cast as a ocfs2_live_connection. This can cause
an oops when ocfs2_control_send_down() dereferences c->oc_conn:

Call Trace:
  [<ffffffffa00c2a3c>] ocfs2_control_message+0x28c/0x2b0 [ocfs2_stack_user]
  [<ffffffffa00c2a95>] ocfs2_control_write+0x35/0xb0 [ocfs2_stack_user]
  [<ffffffff81143a88>] vfs_write+0xb8/0x1a0
  [<ffffffff8155cc13>] ? do_page_fault+0x153/0x3b0
  [<ffffffff811442f1>] sys_write+0x51/0x80
  [<ffffffff810121b2>] system_call_fastpath+0x16/0x1b

Fix by explicitly returning NULL if no match is found.

Signed-off-by: dann frazier <dann.frazier@canonical.com>
Signed-off-by: Joel Becker <joel.becker@oracle.com>
2010-11-18 15:41:41 -08:00
..
cluster ocfs2: fix memory leak 2010-11-18 14:10:56 -08:00
dlm fs/ocfs2/dlm: Use GFP_ATOMIC under spin_lock 2010-11-18 14:10:55 -08:00
dlmfs convert get_sb_nodev() users 2010-10-29 04:16:31 -04:00
acl.c
acl.h
alloc.c
alloc.h
aops.c fs: kill block_prepare_write 2010-10-25 21:18:20 -04:00
aops.h fs: kill block_prepare_write 2010-10-25 21:18:20 -04:00
blockcheck.c
blockcheck.h
buffer_head_io.c
buffer_head_io.h
dcache.c Ocfs2: Stop tracking a negative dentry after dentry_iput(). 2010-11-18 14:10:56 -08:00
dcache.h
dir.c
dir.h
dlmglue.c
dlmglue.h
export.c
export.h
extent_map.c
extent_map.h
file.c fs: kill block_prepare_write 2010-10-25 21:18:20 -04:00
file.h
heartbeat.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
heartbeat.h
inode.c
inode.h Track negative entries v3 2010-09-10 09:18:15 -07:00
ioctl.c Ocfs2: Add new OCFS2_IOC_INFO ioctl for ocfs2 v8. 2010-09-10 08:35:41 -07:00
ioctl.h
journal.c
journal.h
Kconfig
localalloc.c
localalloc.h
locks.c
locks.h
Makefile
mmap.c
mmap.h
namei.c new helper: ihold() 2010-10-25 21:26:11 -04:00
namei.h
ocfs1_fs_compat.h
ocfs2.h ocfs2: char is not always signed 2010-11-18 14:10:56 -08:00
ocfs2_fs.h
ocfs2_ioctl.h
ocfs2_lockid.h
ocfs2_lockingver.h
quota.h
quota_global.c
quota_local.c
refcounttree.c
refcounttree.h
reservations.c
reservations.h
resize.c ocfs2: ocfs2_group_bitmap_size has to handle old volume. 2010-04-13 14:38:06 +08:00
resize.h
slot_map.c
slot_map.h
stack_o2cb.c
stack_user.c ocfs2_connection_find() returns pointer to bad structure 2010-11-18 15:41:41 -08:00
stackglue.c
stackglue.h
suballoc.c
suballoc.h
super.c BKL: remove extraneous #include <smp_lock.h> 2010-11-17 08:59:32 -08:00
super.h ocfs2: Wrap signal blocking in void functions. 2010-05-10 11:50:10 -07:00
symlink.c
symlink.h
sysfile.c ocfs2: Cache system inodes of other slots. 2010-09-10 08:56:24 -07:00
sysfile.h
uptodate.c
uptodate.h
ver.c
ver.h [PATCH] OCFS2: The Second Oracle Cluster Filesystem 2006-01-03 11:45:47 -08:00
xattr.c
xattr.h