ocfs2: fix NULL pointer dereferrence in __ocfs2_change_file_space
== 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(-)
kernel-team mailing list