From: Liu Bo Date: Tue, 19 Aug 2014 15:33:13 +0000 (+0800) Subject: Btrfs: fix crash on endio of reading corrupted block X-Git-Tag: omap-fixes-against-v3.17-rc3~41^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=38c1c2e44bacb37efd68b90b3f70386a8ee370ee;p=pandora-kernel.git Btrfs: fix crash on endio of reading corrupted block The crash is ------------[ cut here ]------------ kernel BUG at fs/btrfs/extent_io.c:2124! [...] Workqueue: btrfs-endio normal_work_helper [btrfs] RIP: 0010:[] [] end_bio_extent_readpage+0xb45/0xcd0 [btrfs] This is in fact a regression. It is because we forgot to increase @offset properly in reading corrupted block, so that the @offset remains, and this leads to checksum errors while reading left blocks queued up in the same bio, and then ends up with hiting the above BUG_ON. Reported-by: Chris Murphy Signed-off-by: Liu Bo Signed-off-by: Chris Mason --- Reading git-diff-tree failed