diff options
| author | Konstantin Khlebnikov <[email protected]> | 2016-02-05 23:37:01 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2016-02-06 02:10:40 +0000 |
| commit | 732042821cfa106b3c20b9780e4c60fee9d68900 (patch) | |
| tree | 9e825128f3807b51449536a3301984857db5e412 /fs/btrfs/dev-replace.c | |
| parent | MAINTAINERS: trim the file triggers for ABI/API (diff) | |
| download | kernel-732042821cfa106b3c20b9780e4c60fee9d68900.tar.gz kernel-732042821cfa106b3c20b9780e4c60fee9d68900.zip | |
radix-tree: fix oops after radix_tree_iter_retry
Helper radix_tree_iter_retry() resets next_index to the current index.
In following radix_tree_next_slot current chunk size becomes zero. This
isn't checked and it tries to dereference null pointer in slot.
Tagged iterator is fine because retry happens only at slot 0 where tag
bitmask in iter->tags is filled with single bit.
Fixes: 46437f9a554f ("radix-tree: fix race in gang lookup")
Signed-off-by: Konstantin Khlebnikov <[email protected]>
Cc: Matthew Wilcox <[email protected]>
Cc: Hugh Dickins <[email protected]>
Cc: Ohad Ben-Cohen <[email protected]>
Cc: Jeremiah Mahler <[email protected]>
Cc: <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
0 files changed, 0 insertions, 0 deletions
