diff options
| author | Liu Bo <[email protected]> | 2014-08-19 15:33:13 +0000 |
|---|---|---|
| committer | Chris Mason <[email protected]> | 2014-08-21 14:55:30 +0000 |
| commit | 38c1c2e44bacb37efd68b90b3f70386a8ee370ee (patch) | |
| tree | bbd9745859fd71b54b0d07707554f973a3f00d40 /fs/btrfs/async-thread.h | |
| parent | btrfs: fix leak in qgroup_subtree_accounting() error path (diff) | |
| download | kernel-38c1c2e44bacb37efd68b90b3f70386a8ee370ee.tar.gz kernel-38c1c2e44bacb37efd68b90b3f70386a8ee370ee.zip | |
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:[<ffffffffa02d6055>] [<ffffffffa02d6055>] 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 <[email protected]>
Signed-off-by: Liu Bo <[email protected]>
Signed-off-by: Chris Mason <[email protected]>
Diffstat (limited to 'fs/btrfs/async-thread.h')
0 files changed, 0 insertions, 0 deletions
