Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 67487 - bestcrypt-1.5_p7 emerges, but won't load kernel modules correctly
Summary: bestcrypt-1.5_p7 emerges, but won't load kernel modules correctly
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Crypto team [DISABLED]
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-13 17:20 UTC by Stefan Behte (RETIRED)
Modified: 2005-01-04 06:02 UTC (History)
0 users

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 Stefan Behte (RETIRED) gentoo-dev Security 2004-10-13 17:20:49 UTC
Kernel: 2.6.8-gentoo-r4
bestcrypt: bestcrypt-1.5_p7

emerging works, then I did modules-update, and rebooted; then I startet bestcrypt:
[root@nuw ~]# /etc/init.d/bcrypt start
 * Initializing BestCrypt...                                             [ ok ]
[root@nuw ~]# lsmod
Module                  Size  Used by
bc_cast                18596  0 
bc_rijn                34468  0 
bc_idea                 8548  0 
bc_3des                15972  0 
bc_bf128               10916  0 
bc_bf448               11044  0 
bc_twofish             18624  0 
bc_gost                 6564  0 
bc_des                 15332  0 
bc_blowfish            10916  0 
bc                     15880  10 bc_cast,bc_rijn,bc_idea,bc_3des,bc_bf128,bc_bf448,bc_twofish,bc_gost,bc_des,bc_blowfish

[root@nuw ~]# bctool
Kernel modules not loaded

[root@nuw ~]# strace bctool
execve("/usr/bin/bctool", ["bctool"], [/* 46 vars */]) = 0
brk(0)                                  = 0x805e000
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40017000
open("/etc/ld.so.preload", O_RDONLY)    = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=63033, ...}) = 0
old_mmap(NULL, 63033, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40018000
close(3)                                = 0
open("/usr/lib/gcc-lib/i686-pc-linux-gnu/3.4.2/libstdc++.so.6", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\360\264"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=834572, ...}) = 0
old_mmap(NULL, 851092, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x40028000
old_mmap(0x400ee000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xc6000) = 0x400ee000
old_mmap(0x400f3000, 19604, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x400f3000
close(3)                                = 0
open("/lib/libm.so.6", O_RDONLY)        = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\0005\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=156744, ...}) = 0
old_mmap(NULL, 138560, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x400f8000
old_mmap(0x40119000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x20000) = 0x40119000
close(3)                                = 0
open("/usr/lib/gcc-lib/i686-pc-linux-gnu/3.4.2/libgcc_s.so.1", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\200\25"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=36132, ...}) = 0
old_mmap(NULL, 34496, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x4011a000
old_mmap(0x40122000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x7000) = 0x40122000
close(3)                                = 0
open("/lib/libc.so.6", O_RDONLY)        = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0@U\1\000"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1201760, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40123000
old_mmap(NULL, 1128004, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x40124000
old_mmap(0x40232000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x10e000) = 0x40232000
old_mmap(0x40235000, 9796, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40235000
close(3)                                = 0
munmap(0x40018000, 63033)               = 0
open("/dev/urandom", O_RDONLY)          = 3
read(3, "<\215\t\366", 4)               = 4
close(3)                                = 0
getuid32()                              = 0
geteuid32()                             = 0
open("/dev/bcrypt/disc0/disc", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/dev/bcrypt0", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
close(-1)                               = -1 EBADF (Bad file descriptor)
write(2, "Kernel modules not loaded\n", 26Kernel modules not loaded
) = 26
exit_group(-1)                          = ?


Well, it seems that the modules get loaded, but somehow do not create /dev/bcrypt0 !


The strange thing is, that downloading the file from jetico and installing it by hand works just fine! There MUST be a mistake in the ebuild!!



Reproducible: Always
Steps to Reproduce:
1. emerge bestcrypt
2. /etc/init.d/bcrypt start
3. bctool

Actual Results:  
[root@nuw ~]# bctool
Kernel modules not loaded


Expected Results:  
This: ;)
[root@nuw ~/bcrypt]# bctool
Missed command
Usage:
bctool command [options] arguments

commands:
   new         - create container   (-a alg_name -s size [-d description] filename)
   format      - format container   ([-t fstype] filename)
   mount       - mount container    ([-t fstype] [-m mode] [-u user] [-g group]
[-r] filename mountpoint)
   umount      - unmount container  (mountpoint)
   info        - get info on container (filename)
   passwd      - change container's password (filename)
   add_passwd  - add additional password for container (filename)
   del_passwd  - delete additional password (filename)
   fsck        - filesystem check (filename [-t fstype])
   reencrypt   - reencrypt container (-a alg_name filename)
   make_hidden - make hidden part in container (filename size_of_hidden_part)
                 where: size_of_hidden_part may be xxx - in bytes; xxxK - in Kb;
xxxM - in Mb; xx% - in percents of container size
   link        - link container to BestCrypt device (filename devicename)
   unlink      - unlink container from device (devicename)

options:
   -t fstype   - to specify filesystem type (default: msdos)
   -a alg_name - to specify algorithm name
   -s size     - to specify container size
        example: -s xxx - in bytes; -s xxxK - in Kb; -s xxxM - in Mb; -s xxxG -
in Gb
   -d desc     - to specify description of container (up to 64 symbols)
   -r          - to mount read only
   -m mode     - to specify mountpoint mode in octal (default 0700)
   -u user     - to specify mountpoint's owner (root only can do it)
   -g group    - to specify mountpoint's group



Portage 2.0.51_rc7 (default-x86-2004.0, gcc-3.4.2, glibc-2.3.4.20040808-r0,
2.6.8-gentoo-r4 i686)
=================================================================
System uname: 2.6.8-gentoo-r4 i686 AMD Athlon(tm) XP 2600+
Gentoo Base System version 1.5.3
distcc 2.17 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.92.0.2
Headers:  sys-kernel/linux-headers-2.4.22
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=athlon-xp -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.2/share/config
/usr/kde/3.3/share/config:/usr/kde/3.3/env:/usr/kde/3.3/shutdown
/usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=athlon-xp -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache distlocks sandbox"
GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo
ftp://gd.tuwien.ac.at/opsys/linux/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dfx 3dnow 3dnowext X aalib alsa apm arts avi berkdb bitmap-fonts cdr crypt
cups encode esd f77 foomaticdb gdbm gif gpm gtk gtk2 imlib java jpeg libg++
libwww mad mikmod mmx motif mozilla mpeg ncurses nls oggvorbis opengl oss pam
pdflib perl png python qt quicktime readline samba sdl slang snmp socks5 spell
sse ssl svga tcpd tiff truetype usb x86 xinerama xml2 xmms xprint xv zlib"
Comment 1 Daniel Black (RETIRED) gentoo-dev 2004-12-14 13:04:52 UTC
looks like it just needs the /dev/bcrypt/disc0/disc or /dev/bcrypt0 nodes. Did the hand install create these? If so please prove a ls -la of them.
Comment 2 Stefan Behte (RETIRED) gentoo-dev Security 2004-12-14 15:19:24 UTC
Yes it seems the manual install created it:

[root@lato ~]# ls -la /dev/bcrypt/disc0/disc             
brw-rw-rw-  1 root root 188, 0  1. Jan 1970  /dev/bcrypt/disc0/disc

/dev/bcrypt0 still does not exist!
Comment 3 Daniel Black (RETIRED) gentoo-dev 2004-12-16 04:55:05 UTC
note to self/fellow devs - 1.5-8 exists upstream.
Comment 4 Daniel Black (RETIRED) gentoo-dev 2005-01-02 20:28:30 UTC
I just commited bestcrypt-1.5_p9. This includes the same init script as 1.5_p7-r1 that creates nodes on startup. I'm not sure I like that solution but it may work for you.

Any problems let me know.
Comment 5 Stefan Behte (RETIRED) gentoo-dev Security 2005-01-03 15:12:40 UTC
Thanks for your effort, but the bug did not vanish with bestcrypt-1.5_p9!
See http://bugs.gentoo.org/show_bug.cgi?id=76567
Comment 6 Stefan Behte (RETIRED) gentoo-dev Security 2005-01-04 06:02:00 UTC
It's stimm there in bestcrypt-1.5_p9-r1: http://bugs.gentoo.org/show_bug.cgi?id=76630