]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ext4: Make sure the MOVE_EXT ioctl can't overwrite append-only files
authorTheodore Ts'o <tytso@mit.edu>
Thu, 3 Jun 2010 02:04:39 +0000 (22:04 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 5 Jul 2010 18:22:54 +0000 (11:22 -0700)
commit94f98453eab3c95eaa40132b2e78cc4edc1bf48f
tree03850faf2d774d4b09dc1c0d53d140533091b6bf
parent5ea7d8ced3cb5376b6089ccc2213465e853da71f
ext4: Make sure the MOVE_EXT ioctl can't overwrite append-only files

commit 1f5a81e41f8b1a782c68d3843e9ec1bfaadf7d72 upstream.

Dan Roseberg has reported a problem with the MOVE_EXT ioctl.  If the
donor file is an append-only file, we should not allow the operation
to proceed, lest we end up overwriting the contents of an append-only
file.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Cc: Dan Rosenberg <dan.j.rosenberg@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/ext4/move_extent.c