summaryrefslogtreecommitdiffstats
path: root/Documentation/padata.txt
diff options
context:
space:
mode:
authorColin Ian King2018-10-30 23:06:35 +0100
committerLinus Torvalds2018-10-31 16:54:13 +0100
commit6c9a3f843a29d6894dfc40df338b91dbd78f0ae3 (patch)
tree82da08ad2019ceaa7e078fb5f595290950a08bca /Documentation/padata.txt
parenthfs: update timestamp on truncate() (diff)
downloadkernel-qcow2-linux-6c9a3f843a29d6894dfc40df338b91dbd78f0ae3.tar.gz
kernel-qcow2-linux-6c9a3f843a29d6894dfc40df338b91dbd78f0ae3.tar.xz
kernel-qcow2-linux-6c9a3f843a29d6894dfc40df338b91dbd78f0ae3.zip
fs/hfs/extent.c: fix array out of bounds read of array extent
Currently extent and index i are both being incremented causing an array out of bounds read on extent[i]. Fix this by removing the extraneous increment of extent. Ernesto said: : This is only triggered when deleting a file with a resource fork. I : may be wrong because the documentation isn't clear, but I don't think : you can create those under linux. So I guess nobody was testing them. : : > A disk space leak, perhaps? : : That's what it looks like in general. hfs_free_extents() won't do : anything if the block count doesn't add up, and the error will be : ignored. Now, if the block count randomly does add up, we could see : some corruption. Detected by CoverityScan, CID#711541 ("Out of bounds read") Link: http://lkml.kernel.org/r/20180831140538.31566-1-colin.king@canonical.com Signed-off-by: Colin Ian King <colin.king@canonical.com> Reviewed-by: Ernesto A. Fernndez <ernesto.mnd.fernandez@gmail.com> Cc: David Howells <dhowells@redhat.com> Cc: Al Viro <viro@zeniv.linux.org.uk> Cc: Hin-Tak Leung <htl10@users.sourceforge.net> Cc: Vyacheslav Dubeyko <slava@dubeyko.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'Documentation/padata.txt')
0 files changed, 0 insertions, 0 deletions