Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 71091 - util-linux 2.12i can't mount my crypto fs
Summary: util-linux 2.12i can't mount my crypto fs
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High critical (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-13 14:06 UTC by Rene Gass
Modified: 2005-01-17 14:28 UTC (History)
2 users (show)

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


Attachments
Preprocessed source file (ccWsxUyh.out,55.64 KB, text/plain)
2005-01-12 19:02 UTC, Rene Gass
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rene Gass 2004-11-13 14:06:42 UTC
I've updated from util-linux-2.12b-r1 to 2.12i today. Now I get
"Error: Password must be at least 20 characters." when mounting my crypto filesystem. Reverting to 2.12b-r1 resolved the issue. I've found on Google that losetup seems to be responsible for this. The filesystem was created under Linux 2.4.24 and is not using dm-crypt, if that is of any relevance. It is declared in fstab like this:

/dev/hda2 /mnt/mountpoint ext3 noauto,noatime,loop,encryption=twofish-256,user 0 0

Reproducible: Always
Steps to Reproduce:
mount /mnt/mountpoint
Actual Results:  
"Error: Password must be at least 20 characters."

Expected Results:  
The filesystem should be mounted.
Comment 1 Sebastian Gruessing 2004-11-14 05:25:18 UTC
I got antother problem with the 2.12i ebuild. After installing it i could not mount my aes-256 crypto filesystem. 
i tried it with: "mount /dev/hda2 /home -o encryption=aes-256" as usual.
i got following error:
ioctl: LOOP_CLR_FD: Device or resource busy
mount: you must specify the filesystem type

With util-linux-2.12b-r1 it was ok, after emerging the old  util-linux-2.12b-r1 back I could mount my partition again.

i am using ~86 as keyword and using the gcc-3.4.3 compiler.
Comment 2 Marcin Kryczek (RETIRED) gentoo-dev 2004-11-14 16:32:32 UTC
to devs:
i saw, you've enabled loop-aes support in 2.12i and disabled it in 2.12i-r1. i'm wondering if there's possibility to modify ebuild to chose the correct patch by some USE flag? what do you think about it?
Comment 3 SpanKY gentoo-dev 2004-11-16 06:06:32 UTC
use 2.12i-r1
Comment 4 Rene Gass 2004-11-16 16:47:40 UTC
Works for me now, thanks!
Comment 5 Rene Gass 2005-01-11 13:25:37 UTC
I've updated to util-linux-2.12p today and this bug has reappeared. Going back to 2.12i-r1 again has solved the problem.
Comment 6 SpanKY gentoo-dev 2005-01-11 14:57:17 UTC
USE=old-crypto emerge util-linux
Comment 7 Rene Gass 2005-01-12 18:57:25 UTC
This is what I get now:

make[1]: Entering directory `/var/tmp/portage/util-linux-2.12p/work/util-linux-2.12p/lib'
i686-pc-linux-gnu-gcc -c -pipe -O2 -mtune=i486 -fomit-frame-pointer -I../lib -Wall -Wmissing-prototypes -Wstrict-prototypes-DNCH=1   -D_FILE_OFFSET_BITS=64 -DSBINDIR=\"/sbin\" -DUSRSBINDIR=\"/usr/sbin\" -DLOGDIR=\"/var/log\" -DVARPATH=\"/var\" -DLOCALEDIR=\"/usr/share/locale\" -O3 -march=pentium4 -funroll-loops -fprefetch-loop-arrays -pipe err.c -o err.o
i686-pc-linux-gnu-gcc -c -pipe -O2 -mtune=i486 -fomit-frame-pointer -I../lib -Wall -Wmissing-prototypes -Wstrict-prototypes-DNCH=1   -D_FILE_OFFSET_BITS=64 -DSBINDIR=\"/sbin\" -DUSRSBINDIR=\"/usr/sbin\" -DLOGDIR=\"/var/log\" -DVARPATH=\"/var\" -DLOCALEDIR=\"/usr/share/locale\" -O3 -march=pentium4 -funroll-loops -fprefetch-loop-arrays -pipe my_reboot.c -o my_reboot.o
i686-pc-linux-gnu-gcc -c -pipe -O2 -mtune=i486 -fomit-frame-pointer -I../lib -Wall -Wmissing-prototypes -Wstrict-prototypes-DNCH=1   -D_FILE_OFFSET_BITS=64 -DSBINDIR=\"/sbin\" -DUSRSBINDIR=\"/usr/sbin\" -DLOGDIR=\"/var/log\" -DVARPATH=\"/var\" -DLOCALEDIR=\"/usr/share/locale\" -O3 -march=pentium4 -funroll-loops -fprefetch-loop-arrays -pipe setproctitle.c -o setproctitle.o
setproctitle.c: In function `initproctitle':
setproctitle.c:58: internal compiler error: Floating point exception
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugs.gentoo.org/> for instructions.
Preprocessed source stored into /var/tmp/portage/util-linux-2.12p/temp/ccWsxUyh.out file, please attach this to your bugreport.
make[1]: *** [setproctitle.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/util-linux-2.12p/work/util-linux-2.12p/lib'
make: *** [all] Error 1


emerge --info
Portage 2.0.51-r10 (default-linux/x86/2004.0, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.10-gentoo-r4 i686)
=================================================================
System uname: 2.6.10-gentoo-r4 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz
Gentoo Base System version 1.6.8
Python:              dev-lang/python-2.3.4 [2.3.4 (#1, Sep 26 2004, 23:08:28)]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.4
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.5, 1.9.4, 1.4_p6, 1.8.5-r2, 1.6.3, 1.7.9
sys-devel/binutils:  2.15.92.0.2-r2
sys-devel/libtool:   1.5.10-r2
virtual/os-headers:  2.6.8.1-r1, 2.6.8.1-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=pentium4 -funroll-loops -fprefetch-loop-arrays -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=pentium4 -funroll-loops -fprefetch-loop-arrays -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X alsa apm arts artswrappersuid audiofile avi berkdb bitmap-fonts cdparanoia cdr crypt cups divx4linux dvd dvdread esdfaac faad fam flac font-server foomaticdb gdbm gif gpm gtk gtk2 imagemagick imlib jpeg kde libg++ libwww lzw-tiff mad mikmod mmx mmx2 mng monkey motif mozilla moznomail mozsvg mpeg ncurses nls nptl nptlonly nvidia oggvorbis old-crypt opengl pam pdflib perl pic png ppds python qt quicktime readline rtc sdl slang spell sse sse2 ssl svg tcltk tcpd tetex theora tiff truetype truetype-fonts type1-fonts userlocales wmf x86 xml xml2 xv xvid xvmc zlib"
Unset:  LDFLAGS
Comment 8 Rene Gass 2005-01-12 19:02:01 UTC
Created attachment 48364 [details]
Preprocessed source file
Comment 9 SpanKY gentoo-dev 2005-01-12 20:08:09 UTC
dont post unrelated bugs
Comment 10 Rene Gass 2005-01-13 15:10:08 UTC
Mike,

I am aware that this is an ICE. But the current version of util-linux is neither compilable nor usable by me and probably others as well. IIRC other packages have patches that correct compiler bugs, especially WRT mmx/sse, so I thought that was the way to go here, too. Should I rather file a bug report for gcc at bugs.gentoo.org? Should I file no bug report here at all?
Comment 11 Rene Gass 2005-01-17 14:28:58 UTC
Ok, I've updated to gcc-3.4.3.20050110 today, and util-linux-2.12p compiles with USE="old-crypto". Nevertheless, I'm getting "Error: Password must be at least 20 characters."

Any ideas?