From: Lars Ellenberg Date: Wed, 23 Oct 2013 08:59:18 +0000 (+0200) Subject: drbd: fix decoding of bitmap vli rle for device sizes > 64 TB X-Git-Tag: v3.13-rc1~100^2~25 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d2da5b0cb522c48f8e2f311e6e9b212535371b56;p=pandora-kernel.git 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 Signed-off-by: Lars Ellenberg Signed-off-by: Jens Axboe --- Reading git-diff-tree failed