after upgrading to gentoo-sources-2.4.22-r3 i had to emerge cryptoapi to get my cryptoloop device back however mounting an serpend-encoded filesystem wasnt possible doe to heavy file-system garbage, so I guessed the ciphers would be incompatible. but it seems the cryptoloop always messes up some 8 bytes about every 500 bytes, when mounted, i tried several ciphers and keysizes, and I get garbage as soon as i mount the image. mounting anything via /dev/loop without encryption works fine. mounting any cryptoloop stuff leads to data garbage. i tried both gentoo-sources-2.4.22-r3 and -r4 kernel integrated cryptoloop of gentoo-sources-2.4.20-r10 works fine. i didnt try to reproduce on a 2nd system though. Reproducible: Always Steps to Reproduce: 1. emerge gentoo-sources-2.4.22-r4 2. compile and start new kernel 3. emerge cryptoapi 4. mount encrypted file Actual Results: some bytes of garbaged data every at the beginning/end of every 500 bytes of file as soon as mounted Expected Results: the data as i saved them into the cryptodevice before Portage 2.0.49-r20 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r3, 2.4.20-gentoo-r10) ================================================================= System uname: 2.4.20-gentoo-r10 i686 AMD Athlon(tm) Processor Gentoo Base System version 1.4.3.10p1 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=athlon -O2 -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-march=athlon -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache fixpackages sandbox" GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo http://gentoo.oregonstate.edu/ http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j4" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X aalib apm avi cdr crypt dga doc dvd encode evo flash foomaticdb gd gdbm gif gpm gtk gtk2 gtkhtml guile imlib java jpeg kde libg++ libwww mad mikmod motif mozilla mpeg mysql ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime readline samba scanner sdl slang spell ssl svga tcltk tcpd tetex truetype x86 xml xml2 xmms xv zlib"
perhaps enabling --enable-iv-mode-sector in the ebuild will fix the problem
in addition, the cryptoapi was included in some kernel release. my 2.4.23 stock kernel source has the cryptoapi already included.
this isn't a genkernel bug, tryed to compile without genkernel and had the same problem
Sergio: Did you try enabling the --enable-iv-mode option?