forked fromtorvalds/linux
- Notifications
You must be signed in to change notification settings - Fork0
Commit1e1132e
dm writecache: fix a crash due to reading past end of dirty_bitmap
wc->dirty_bitmap_size is in bytes so must multiply it by 8, not byBITS_PER_LONG, to get number of bitmap_bits.Fixes crash in find_next_bit() that was reported:https://bugzilla.kernel.org/show_bug.cgi?id=200819Reported-by: edo.rus@gmail.comFixes:48debaf ("dm: add writecache target")Cc: stable@vger.kernel.org # 4.18Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>Signed-off-by: Mike Snitzer <snitzer@redhat.com>1 parentbc9e9cf commit1e1132e
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
457 | 457 | | |
458 | 458 | | |
459 | 459 | | |
460 | | - | |
| 460 | + | |
461 | 461 | | |
462 | 462 | | |
463 | 463 | | |
| |||
0 commit comments
Comments
(0)