FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.

» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Ubuntu Kernel Team

LinkBack Thread Tools
Old 06-28-2012, 04:29 PM
Luis Henriques
Default 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(-)


kernel-team mailing list

Thread Tools

All times are GMT. The time now is 01:53 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org