aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_timer.c
diff options
context:
space:
mode:
authorLogan Gunthorpe <[email protected]>2022-07-07 13:15:32 -0600
committerJens Axboe <[email protected]>2022-08-02 17:22:41 -0600
commitb9f91d80dec9369294a8df4e4c8850a339a32576 (patch)
treed9197ce5497c39b88174c2adc912dec16a98421d /net/lapb/lapb_timer.c
parent640c46a21f89364f04445cdd43b61eb46bd49b5d (diff)
md/raid5: Fix sectors_to_do bitmap overflow in raid5_make_request()
For unaligned IO that have nearly maximum sectors, the number of stripes will end up being one greater than the size of the bitmap. When this happens, the last stripe in the IO will not be processed as it should be, resulting in data corruption. However, this is not normally seen when the backing block devices have 4K physical block sizes since the block layer will split the request before that happens. To fix this increase the bitmap size by one bit and ensure the full number of stripes are checked when calling find_first_bit(). Reported-by: David Sloan <[email protected]> Fixes: 7e55c60acfbb ("md/raid5: Pivot raid5_make_request()") Signed-off-by: Logan Gunthorpe <[email protected]> Signed-off-by: Song Liu <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions