[SRU][Precise][Quantal][PATCH 0/1] ocfs2: fix NULL pointer dereferrence in __ocfs2_change_file_space
Luis Henriques
luis.henriques at canonical.com
Thu Jun 28 16:29:58 UTC 2012
BugLink: http://bugs.launchpad.net/bugs/1006012
== SRU Justification ==
A NULL pointer will be triggered by ocfs2_fallocate() as it will
invoke __ocfs2_change_file_space() with a NULL as the file argument.
This may result in filesystem corruption.
== Fix ==
This patch has already been submitted upstreams and has been added to
the -mm tree (https://lkml.org/lkml/2012/6/20/686). The fix is a
simple NULL check in the __ocfs2_change_file_space() function.
== Impact ==
Possible filesystem corruption when using fallocate operation.
== Test Case ==
After setting up an ocfs2 node, mount a filesystem and simply execute:
$ fallocate -l 1600m /mnt/test
Luis Henriques (1):
ocfs2: Fix NULL pointer dereferrence in __ocfs2_change_file_space
fs/ocfs2/file.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--
1.7.9.5
More information about the kernel-team
mailing list