aboutsummaryrefslogtreecommitdiff
path: root/fs/ext4/mballoc.h
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2014-01-07 12:58:19 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-02-06 11:08:16 -0800
commit209bd086e423d98ddf2fd52a6f1afda15b5758b1 (patch)
treec60f41a3bab6b4077e1216aed4ceab2b294c9670 /fs/ext4/mballoc.h
parentf07b772da47ad954573b1ffe6ebd4df1b59bf656 (diff)
ext4: avoid clearing beyond i_blocks when truncating an inline data file
commit 09c455aaa8f47a94d5bafaa23d58365768210507 upstream. A missing cast means that when we are truncating a file which is less than 60 bytes, we don't clear the correct area of memory, and in fact we can end up truncating the next inode in the inode table, or worse yet, some other kernel data structure. Addresses-Coverity-Id: #751987 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/ext4/mballoc.h')
0 files changed, 0 insertions, 0 deletions