summaryrefslogtreecommitdiffstats
path: root/fs/char_dev.c
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2014-01-07 12:58:19 -0500
committerTheodore Ts'o <tytso@mit.edu>2014-01-07 12:58:19 -0500
commit09c455aaa8f47a94d5bafaa23d58365768210507 (patch)
tree7fb44f2b231481487f6076d10f09939167a95bc2 /fs/char_dev.c
parent65eddb56f465f314502679ceade6fc5848a53a50 (diff)
downloadtalos-op-linux-09c455aaa8f47a94d5bafaa23d58365768210507.tar.gz
talos-op-linux-09c455aaa8f47a94d5bafaa23d58365768210507.zip
ext4: avoid clearing beyond i_blocks when truncating an inline data file
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> Cc: stable@vger.kernel.org
Diffstat (limited to 'fs/char_dev.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud