From: Jari Ruusu <jari.ruusu@pp.inet.fi>
To: Mark Swanson <swansma@yahoo.com>
Cc: linux-kernel@vger.kernel.org, Stefan Traby <stefan@hello-penguin.com>
Subject: Re: loop device corruption in 2.4.6
Date: Thu, 05 Jul 2001 13:18:57 +0300 [thread overview]
Message-ID: <3B443F11.307A5F61@pp.inet.fi> (raw)
In-Reply-To: <01070417140200.03178@test.home2.mark>
Mark Swanson wrote:
> I get repeatable errors with 2.4.6 patched with the international encryption
> patch patch-int-2.4.3.1.bz2 when building loop device filesystems on top of
> Reiserfs.
International crypto patch assumes that block size never changes. Everyone
and their brother knows that it isn't true. And when block size does get
changed, international crypto patch gets the IV completely wrong, and
corrupts your data. To see block size changes in file systems alone, use
command something like this:
grep set_blocksize `find /usr/src/linux-2.4.6/fs -name "*.c" -print`
And the block size thing is not the only thing wrong with international
crypto patch. The whole cryptoapi thing is just bloat that does not belong
in kernel. Cipher name string to number code mappings should be done in user
space instead of kernel. And the ice on the cake is that cryptoapi ciphers
are non-re-entrant and are actually used in re-entrant code path. This
non-re-entrant code in re-entrant code path is another source of data
corruption.
Loop-AES is a superior replacement for international crypto patch, for more
information about loop-AES, see this announcement:
http://mail.nl.linux.org/linux-crypto/2001-06/msg00016.html
http://lwn.net/2001/0628/a/file-crypto.php3
Regards,
Jari Ruusu <jari.ruusu@pp.inet.fi>
next prev parent reply other threads:[~2001-07-05 10:21 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-07-04 21:14 loop device corruption in 2.4.6 Mark Swanson
2001-07-05 5:29 ` Stefan Traby
2001-07-05 10:18 ` Jari Ruusu [this message]
2001-07-05 11:39 ` Ian Stirling
2001-07-05 14:17 ` Mark Swanson
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=3B443F11.307A5F61@pp.inet.fi \
--to=jari.ruusu@pp.inet.fi \
--cc=linux-kernel@vger.kernel.org \
--cc=stefan@hello-penguin.com \
--cc=swansma@yahoo.com \
/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