]> git.baikalelectronics.ru Git - kernel.git/commit
hfsplus: Add additional range check to handle on-disk corruptions
authorNaohiro Aota <naota@elisp.net>
Mon, 11 Jul 2011 17:54:13 +0000 (02:54 +0900)
committerChristoph Hellwig <hch@lst.de>
Fri, 22 Jul 2011 14:36:56 +0000 (16:36 +0200)
commit5a34c59e021848c9a335559d51b557f92f5b8331
tree9fadb2150044176f1585133d0cf2711c737ddd99
parent5f4f7d5ab335a0463f214e4b24df716d5d1e3bbf
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>
fs/hfsplus/brec.c