[lkml]   [2003]   [Aug]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
Subject[PATCH] loop: fixing cryptoloop troubles.
In loop_transfer_bio the initial vector has been computed only once. For any
situation where more than one bio_vec is present the initial vector will be
wrong. Here is the trivial but important fix.

This will fix the disk corruption problems of cryptoloop for block-backed
loop devices mentioned earlier this month on this list.

This should close

Please confirm.

Regards, Clemens
--- linux-2.6.0-test2/drivers/block/loop.c~ Sun Jul 27 19:03:16 2003
+++ linux-2.6.0-test2/drivers/block/loop.c Sun Aug 10 04:22:44 2003
@@ -513,6 +513,7 @@
from_bvec->bv_len, IV);
+ IV += from_bvec->bv_len >> 9;

return ret;[unhandled content-type:application/pgp-signature]
 \ /
  Last update: 2005-03-22 13:47    [W:0.035 / U:0.076 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site