summaryrefslogtreecommitdiffstats
path: root/fs/hfsplus/super.c
diff options
context:
space:
mode:
authorNaohiro Aota <naota@elisp.net>2011-07-11 19:54:13 +0200
committerChristoph Hellwig <hch@lst.de>2011-07-22 16:36:56 +0200
commitaac4e4198eff7f9551d586c55342403d49249d95 (patch)
tree9fadb2150044176f1585133d0cf2711c737ddd99 /fs/hfsplus/super.c
parenthfsplus: Add error propagation for hfsplus_ext_write_extent_locked (diff)
downloadlinux-aac4e4198eff7f9551d586c55342403d49249d95.tar.xz
linux-aac4e4198eff7f9551d586c55342403d49249d95.zip
hfsplus: Add additional range check to handle on-disk corruptions
'recoff' is read from disk and used for an argument to memcpy, so if the value read from disk is larger than the page size, it result to "general protection fault". This patch add additional range check for the value, so that disk fuzz won't cause such fault. Signed-off-by: Naohiro Aota <naota@elisp.net> Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'fs/hfsplus/super.c')
0 files changed, 0 insertions, 0 deletions