Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 37902 - app-crypt/cryptoapi-2.4.7.0 garbages data on gentoo-sources-2.4.22...
Summary: app-crypt/cryptoapi-2.4.7.0 garbages data on gentoo-sources-2.4.22...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: x86 Linux
: High critical
Assignee: Ryan Phillips (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-11 11:57 UTC by Corvus
Modified: 2005-02-06 17:15 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Corvus 2004-01-11 11:57:26 UTC
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"
Comment 1 Ryan Phillips (RETIRED) gentoo-dev 2004-01-12 10:19:17 UTC
perhaps enabling --enable-iv-mode-sector in the ebuild will fix the problem
Comment 2 Ryan Phillips (RETIRED) gentoo-dev 2004-01-12 10:22:36 UTC
in addition, the cryptoapi was included in some kernel release.  my 2.4.23 stock kernel source has the cryptoapi already included.
Comment 3 Sérgio Curto 2005-01-20 18:01:34 UTC
this isn't a genkernel bug, tryed to compile without genkernel and had the same problem
Comment 4 Ryan Phillips (RETIRED) gentoo-dev 2005-02-06 17:15:46 UTC
Sergio: Did you try enabling the --enable-iv-mode option?