linux/fs/ocfs2
Luis Henriques a4e08d001f ocfs2: fix NULL pointer dereference in __ocfs2_change_file_space()
As ocfs2_fallocate() will invoke __ocfs2_change_file_space() with a NULL
as the first parameter (file), it may trigger a NULL pointer dereferrence
due to a missing check.

Addresses http://bugs.launchpad.net/bugs/1006012

Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
Reported-by: Bret Towe <magnade@gmail.com>
Tested-by: Bret Towe <magnade@gmail.com>
Cc: Sunil Mushran <sunil.mushran@oracle.com>
Acked-by: Joel Becker <jlbec@evilplan.org>
Acked-by: Mark Fasheh <mfasheh@suse.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2012-07-11 16:04:43 -07:00
..
cluster sock: Introduce named constants for sk_reuse 2012-04-21 15:52:25 -04:00
dlm ocfs2: trivial endianness misannotations 2012-05-29 23:28:34 -04:00
dlmfs vfs: Rename end_writeback() to clear_inode() 2012-05-06 13:43:41 +08:00
Kconfig
Makefile
acl.c
acl.h
alloc.c ocfs2: ->l_next_free_req breakage on big-endian 2012-04-13 12:31:37 -04:00
alloc.h
aops.c ocfs2: remove the second argument of k[un]map_atomic() 2012-03-20 21:48:25 +08:00
aops.h
blockcheck.c ocfs2: kill endianness abuses in blockcheck.c 2012-05-29 23:28:35 -04:00
blockcheck.h
buffer_head_io.c
buffer_head_io.h
dcache.c
dcache.h
dir.c
dir.h
dlmglue.c ocfs2: use spinlock irqsave for downconvert lock.patch 2012-07-03 23:27:15 -07:00
dlmglue.h
export.c ->encode_fh() API change 2012-05-29 23:28:33 -04:00
export.h
extent_map.c ocfs2: for SEEK_DATA/SEEK_HOLE, return internal error unchanged if ocfs2_get_clusters_nocache() or ocfs2_inode_lock() call failed. 2012-07-03 23:27:16 -07:00
extent_map.h
file.c ocfs2: fix NULL pointer dereference in __ocfs2_change_file_space() 2012-07-11 16:04:43 -07:00
file.h
heartbeat.c
heartbeat.h
inode.c ocfs: simplify symlink handling 2012-05-29 23:28:40 -04:00
inode.h
ioctl.c ocfs2: deal with __user misannotations 2012-05-29 23:28:35 -04:00
ioctl.h
journal.c
journal.h
localalloc.c
localalloc.h
locks.c
locks.h
mmap.c
mmap.h
move_extents.c ocfs2: deal with __user misannotations 2012-05-29 23:28:35 -04:00
move_extents.h
namei.c ocfs: simplify symlink handling 2012-05-29 23:28:40 -04:00
namei.h
ocfs1_fs_compat.h
ocfs2.h
ocfs2_fs.h
ocfs2_ioctl.h
ocfs2_lockid.h
ocfs2_lockingver.h
ocfs2_trace.h
quota.h
quota_global.c ocfs2: Fix bogus error message from ocfs2_global_read_info 2012-07-03 23:27:17 -07:00
quota_local.c
refcounttree.c ocfs2: ->rl_count endianness breakage 2012-04-13 12:31:41 -04:00
refcounttree.h
reservations.c
reservations.h
resize.c
resize.h
slot_map.c
slot_map.h
stack_o2cb.c
stack_user.c
stackglue.c
stackglue.h
suballoc.c ocfs2: ->e_leaf_clusters endianness breakage 2012-04-13 12:31:43 -04:00
suballoc.h
super.c ocfs2: fix leaks on failure exits in module_init 2012-03-20 21:29:49 -04:00
super.h
symlink.c ocfs: simplify symlink handling 2012-05-29 23:28:40 -04:00
symlink.h ocfs: simplify symlink handling 2012-05-29 23:28:40 -04:00
sysfile.c
sysfile.h
uptodate.c
uptodate.h
ver.c
ver.h
xattr.c
xattr.h