diff options
author | Lars Ellenberg <[email protected]> | 2013-10-23 10:59:18 +0200 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2013-11-08 09:10:28 -0700 |
commit | d2da5b0cb522c48f8e2f311e6e9b212535371b56 (patch) | |
tree | b2d883aa031c9ed894a0dc797400e312226e8251 /lib/mpi/mpi-internal.h | |
parent | 57737adc965e45fcb03662fe6f93f6efb19e2c0a (diff) |
drbd: fix decoding of bitmap vli rle for device sizes > 64 TB
Symptoms: disconnect after bitmap exchange due to
bitmap overflow (e:49731075554) while decoding bm RLE packet
In the decoding step of the variable length integer run length encoding
there was potentially an uncatched bitshift by wordsize (variable >> 64).
The result of which is "undefined" :(
(only "sometimes" the result is the desired 0)
Fix: don't do any bit shift magic for shift == 64, just assign.
Signed-off-by: Philipp Reisner <[email protected]>
Signed-off-by: Lars Ellenberg <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-internal.h')
0 files changed, 0 insertions, 0 deletions