Linux Archive

Linux Archive (
-   Ubuntu Kernel Team (
-   -   ocfs2: fix NULL pointer dereferrence in __ocfs2_change_file_space (

Luis Henriques 06-28-2012 04:29 PM

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 ( 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

All times are GMT. The time now is 10:48 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.