Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 135622 - BestCrypt Modules fail to load, or bctool crashes/hangs on AMD64
Summary: BestCrypt Modules fail to load, or bctool crashes/hangs on AMD64
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Crypto team [DISABLED]
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-05 06:01 UTC by William Arlofski
Modified: 2006-10-11 16:50 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 William Arlofski 2006-06-05 06:01:01 UTC
app-crypt/bestcrypt-1.6_p5 now compiles OK on amd64 2.6.16-gentoo-r1,  but modules fail to load. 


dmesg:
--[snip]--
overflow in relocation type 10 val ffffffff8865ba20
`bc' likely not compiled with -mcmodel=kernel
overflow in relocation type 10 val ffffffff8865ba20
`bc' likely not compiled with -mcmodel=kernel
"bc_blowfish": Unknown symbol unregister_bc_algo
"bc_blowfish": Unknown symbol register_bc_algo
...[for each module]...
--[snip]--


By emerging bestcrypt like so the modules seem to load properly:

CFLAGS="-mcmodel=kernel"  emerge -va bestcrypt

BUT bctool appears to hang when run, and dmesg now shows:


--[snip]--
Unable to handle kernel NULL pointer dereference at 0000000000000098 RIP:
<ffffffff8865a230>{:bc:bc_open+46}
PGD 599cc067 PUD 362bc067 PMD 0
Oops: 0000 [1] PREEMPT SMP
CPU 0
Modules linked in: "bc_bf128" "bc_bf448" "bc_twofish" "bc_gost" "bc_des"
"bc_blow
fish" bc it87 hwmon_vid eeprom i2c_isa lp vmnet parport_pc parport vmmon
ohci1394
 ieee1394 aic7xxx sky2 i2c_nforce2 raid5 md_mod xor st sg nvidia i2c_core
Pid: 29625, comm: vol_id Tainted: P      2.6.16-gentoo-r1 #2
RIP: 0010:[<ffffffff8865a230>] <ffffffff8865a230>{:bc:bc_open+46}
RSP: 0018:ffff81004c35fdb8  EFLAGS: 00010282
RAX: 0000000000000000 RBX: ffff81006e4b6b80 RCX: ffff8100792a3000
RDX: ffff8100792a30a8 RSI: ffff810006c58e80 RDI: ffff81006e4b6c40
RBP: ffff81004c35fdf8 R08: ffff81005f3c1cd8 R09: ffff81005f3c1cd8
R10: 0000000000000286 R11: 0bc0000079c7f598 R12: 00000000fffffffa
R13: ffff810006c58e80 R14: ffff8100792a3000 R15: ffffffff8865cc80
FS:  00002b34b01e7b00(0000) GS:ffffffff805bb000(0000) knlGS:00000000f7e5f6c0
CS:  0010 DS: 0000 ES: 0000 CR0: 000000008005003b
CR2: 0000000000000098 CR3: 0000000056538000 CR4: 00000000000006e0
Process vol_id (pid: 29625, threadinfo ffff81004c35e000, task ffff8100370f8fe0)
Stack: ffff81004c35fe1c ffff81006e4b6b80 ffff810006c58e80 00000000fffffffa
       ffff810006c58e80 ffffffff8017c437 ffff810006c58e80 ffff81006e4b6c40
       ffff810006c58e80 ffffffff8017c083
Call Trace: <ffffffff8017c437>{blkdev_open+0} <ffffffff8017c083>{do_open+158}
       <ffffffff8017c437>{blkdev_open+0} <ffffffff8017c458>{blkdev_open+33}
       <ffffffff801741dd>{__dentry_open+285}
<ffffffff80174327>{nameidata_to_filp
+34}
       <ffffffff80174360>{do_filp_open+42}
<ffffffff803c8161>{__lock_text_start+1
7}
       <ffffffff80174527>{get_unused_fd+227} <ffffffff8017464c>{do_sys_open+68}
       <ffffffff8010a88a>{system_call+126}

Code: 48 8b 80 98 00 00 00 48 8b 40 48 48 89 45 e8 48 8b 45 e8 48
RIP <ffffffff8865a230>{:bc:bc_open+46} RSP <ffff81004c35fdb8>
CR2: 0000000000000098
 <1>Unable to handle kernel NULL pointer dereference at 0000000000000098 RIP:
<ffffffff8865a230>{:bc:bc_open+46}
PGD 6064b067 PUD 604c5067 PMD 0
Oops: 0000 [2] PREEMPT SMP
CPU 1
Modules linked in: "bc_3des" "bc_bf128" "bc_bf448" "bc_twofish" "bc_gost"
"bc_des
" "bc_blowfish" bc it87 hwmon_vid eeprom i2c_isa lp vmnet parport_pc parport
vmmo
n ohci1394 ieee1394 aic7xxx sky2 i2c_nforce2 raid5 md_mod xor st sg nvidia
i2c_co
re
Pid: 29626, comm: vol_id Tainted: P      2.6.16-gentoo-r1 #2
RIP: 0010:[<ffffffff8865a230>] <ffffffff8865a230>{:bc:bc_open+46}
RSP: 0000:ffff81002be49db8  EFLAGS: 00010282
RAX: 0000000000000000 RBX: ffff81006e4b6480 RCX: ffff8100792a3600
RDX: ffff8100792a36a8 RSI: ffff81003c120580 RDI: ffff81006e4b6540
RBP: ffff81002be49df8 R08: ffff8100499cd5d8 R09: ffff8100499cd5d8
R10: 0000000000000286 R11: 0bc00001785b4550 R12: 00000000fffffffa
R13: ffff81003c120580 R14: ffff8100792a3600 R15: ffffffff8865cc80
FS:  00002b977d5e4b00(0000) GS:ffff81007ff27ac0(0000) knlGS:00000000f7e086c0
CS:  0010 DS: 0000 ES: 0000 CR0: 000000008005003b
CR2: 0000000000000098 CR3: 0000000036ff8000 CR4: 00000000000006e0
Process vol_id (pid: 29626, threadinfo ffff81002be48000, task ffff81006ba61060)
Stack: ffff81002be49e1c ffff81006e4b6480 ffff81003c120580 00000000fffffffa
       ffff81003c120580 ffffffff8017c437 ffff81003c120580 ffff81006e4b6540
       ffff81003c120580 ffffffff8017c083
Call Trace: <ffffffff8017c437>{blkdev_open+0} <ffffffff8017c083>{do_open+158}
       <ffffffff8017c437>{blkdev_open+0} <ffffffff8017c458>{blkdev_open+33}
       <ffffffff801741dd>{__dentry_open+285}
<ffffffff80174327>{nameidata_to_filp
+34}
       <ffffffff80174360>{do_filp_open+42}
<ffffffff803c8161>{__lock_text_start+1
7}
       <ffffffff80174527>{get_unused_fd+227} <ffffffff8017464c>{do_sys_open+68}
       <ffffffff8010a88a>{system_call+126}

Code: 48 8b 80 98 00 00 00 48 8b 40 48 48 89 45 e8 48 8b 45 e8 48
RIP <ffffffff8865a230>{:bc:bc_open+46} RSP <ffff81002be49db8>
CR2: 0000000000000098
--[snip]--

Can not kill the crashed/hung bctool process(es), a reboot appears to be the only way to clear them. 

I will be reporting this to Jetico, and as requested by "dragonheart", I will also be attempting this on a vanilla-kernel and will report back here. Am using gentoo-sources currently. 

Is there anything else I can provide to help to get bestcrypt to load/run/work
on my AMD Athlon64 X2?

Thanks for the help.

--
Bill Arlofski
Comment 1 William Arlofski 2006-06-05 06:03:02 UTC
Oops! forgot to add this info to this "new" bug...


# emerge --info
Portage 2.0.54-r2 (default-linux/amd64/2006.0, gcc-3.4.5, glibc-2.3.6-r3, 2.6.16-gentoo-r1 x86_64)
=================================================================
System uname: 2.6.16-gentoo-r1 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 3800+
Gentoo Base System version 1.6.14
dev-lang/python:     2.3.5-r2, 2.4.2
dev-python/pycrypto: [Not Present]
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib/X11/xkb /usr/lib/fax /usr/share/config /var/spool/fax/etc"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon64 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X a52 aac alsa arts audiofile avi berkdb bidi bitmap-fonts bzip2 cdr cli crypt cups curl dbus divx4linux dri dvd eds emboss encode ethereal exif expat faad fam ffmpeg flac foomaticdb fortran gdbm gif glut gmp gpm gstreamer gtk gtk2 hal idn ieee1394 imagemagick imlib ipv6 isdnlog java jpeg junit kde kdeenablefinal lcms ldap lm_sensors logrotate lzw lzw-tiff mad matroska mng mozilla mp3 mpeg mplayer ncurses nls nptl nvidia ogg opengl pam pcre pdflib perl png postgres ppds pppd python qt quicktime readline reflection ruby sdl session spell spl sqlite ssl tcpd tiff truetype truetype-fonts type1-fonts udev usb vorbis wxwindows xine xml2 xmms xorg xpm xv xvid zlib userland_GNU kernel_linux elibc_glibc"
Unset:  CTARGET, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS, PORTAGE_RSYNC_OPTS, PORTDIR_OVERLAY
Comment 2 Daniel Black (RETIRED) gentoo-dev 2006-06-05 06:32:20 UTC
please let us know how you go with the email to jetico
Comment 3 Alon Bar-Lev (RETIRED) gentoo-dev 2006-10-11 16:50:02 UTC
Please reopen when you have some news, thanks!