From: Jens Axboe <axboe@suse.de>
To: Mario Hermann <ario@eikon.tum.de>
Cc: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: report bug: System reboots when accessing a loop-device over a second loop-device with 2.4.2-ac7
Date: Sat, 3 Mar 2001 04:19:22 +0100 [thread overview]
Message-ID: <20010303041922.C1535@suse.de> (raw)
In-Reply-To: <3A9E66BB.70FB0C75@eikon.tum.de> <20010301172145.T21518@suse.de> <3A9FADAB.F37E5449@eikon.tum.de> <20010302162824.H408@suse.de> <3A9FDD80.FD075386@eikon.tum.de>
In-Reply-To: <3A9FDD80.FD075386@eikon.tum.de>; from ario@eikon.tum.de on Fri, Mar 02, 2001 at 06:50:56PM +0100
[-- Attachment #1: Type: text/plain, Size: 429 bytes --]
On Fri, Mar 02 2001, Mario Hermann wrote:
> But with old 2.2 - Material stored on DVD-RAM.
>
> losetup -e blowfish /dev/loop0 /dev/sr3
> lsoetup -e serpent /dev/loop1 /dev/loop0
>
> it doesn't work.
(replied to Mario earlier, for reference here's the patch).
Yet another miscount and IV off, I apparently missed the latter
when the other IV calculations were fixed. I've verified block
crypto here now.
--
Jens Axboe
[-- Attachment #2: loop-ac10-1 --]
[-- Type: text/plain, Size: 561 bytes --]
--- /opt/kernel/linux-2.4.2-ac10/drivers/block/loop.c Sat Mar 3 04:16:23 2001
+++ drivers/block/loop.c Sat Mar 3 04:18:54 2001
@@ -345,8 +345,6 @@
struct buffer_head *rbh = bh->b_private;
rbh->b_end_io(rbh, uptodate);
- if (atomic_dec_and_test(&lo->lo_pending))
- up(&lo->lo_bh_mutex);
loop_put_buffer(bh);
} else
loop_add_bh(lo, bh);
@@ -479,6 +477,7 @@
IV = (bh->b_rsector / (bh->b_size >> 9));
IV += lo->lo_offset / bh->b_size;
+ IV >>= 2;
ret = lo_do_transfer(lo, READ, bh->b_data, rbh->b_data,
bh->b_size, IV);
prev parent reply other threads:[~2001-03-03 3:19 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-03-01 15:11 report bug: System reboots when accessing a loop-device over a second loop-device with 2.4.2-ac7 Mario Hermann
2001-03-01 15:22 ` Jens Axboe
2001-03-01 16:21 ` Jens Axboe
2001-03-01 17:00 ` Mario Hermann
2001-03-02 14:26 ` Mario Hermann
2001-03-02 15:07 ` Jens Axboe
2001-03-02 15:28 ` Jens Axboe
2001-03-02 17:50 ` Mario Hermann
2001-03-03 3:19 ` Jens Axboe [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20010303041922.C1535@suse.de \
--to=axboe@suse.de \
--cc=ario@eikon.tum.de \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox