ocfs2: fix NULL pointer dereferrence in __ocfs2_change_file_space
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 -- kernel-team mailing list kernel-team@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/kernel-team |
| All times are GMT. The time now is 06:33 PM. |
VBulletin, Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.