[Drbd-dev] [PATCH] initialize tconn->peer_integrity_tfm in drbd_adm_connect()

Andreas Gruenbacher agruen at linbit.com
Mon Jul 25 11:39:45 CEST 2011


Thomas,

On Monday 25 July 2011 01:38:48 Thomas Zeitlhofer wrote:
> The support for data-integrity-alg seems to be broken with drbd-8.4.0.
> E.g., when trying to resync, the SyncTarget hits:
> 
>    ASSERTION IS_ALIGNED(data_size, 512) FAILED in read_in_block
>    error receiving RSDataReply, e: -5 l: 126996! read_in_block
> 
> This is caused by an uninitialized tconn->peer_integrity_tfm. Therefore,
> the digest data is not used/removed at the receiver which leads to
> additional 20 bytes that trigger the assertion above.

thanks for tracking this down.  Your analysis and the fix are correct.  As it 
happens, we also ran into this bug here meanwhile.  Here is what we did to 
address it:

  http://git.drbd.org/?p=drbd-8.4.git;a=commit;h=4811eceb393c274f94bfd8926e714d6271cf1f57

The two fixes are slightly different, but both should do the job.  Sorry for 
not letting you know of our fix in time.

The master branch in http://git.drbd.org/?p=drbd-8.4.git contains a few 
additional minor fixes.

Thanks,
Andreas


More information about the drbd-dev mailing list