Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 28571 - IPSEC initialiezes before CryptoAPI with gentoo-sources-2.4.20-r6
Summary: IPSEC initialiezes before CryptoAPI with gentoo-sources-2.4.20-r6
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High minor
Assignee: Tim Yamin (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-12 19:36 UTC by bdonlan
Modified: 2004-02-08 08:18 UTC (History)
0 users

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


Attachments
dmesg output (dmesg,13.67 KB, text/plain)
2003-09-12 19:37 UTC, bdonlan
Details
Kernel configuration (.config,27.93 KB, text/plain)
2003-09-12 19:37 UTC, bdonlan
Details
Patch (gentoo-sources-2.4.20-r11-fix-cryptoOrder.patch,559 bytes, patch)
2004-01-15 13:54 UTC, Tim Yamin (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description bdonlan 2003-09-12 19:36:43 UTC
When my kernel, which has ipsec and cryptoapi compiled-in boots, ipsec
initialized before cryptoapi. As such, it fails to find the cryptoapi ciphers.

Reproducible: Always
Steps to Reproduce:
1. Compile kernel with attached .config
2. boot
Actual Results:  
[...]
cryptoapi: trying cipher-aes-cbc
kmod: failed to exec /sbin/modprobe -s -k cipher-aes-cbc, errno = 2
cryptoapi: trying cipher-aes
kmod: failed to exec /sbin/modprobe -s -k cipher-aes, errno = 2
cryptoapi: trying cipher
kmod: failed to exec /sbin/modprobe -s -k cipher, errno = 2
cipher "aes-cbc" not found
[...]
cryptoapi: loaded
cryptoapi: Registered aes-ecb (0)
cryptoapi: Registered aes-cbc (65536)
cryptoapi: Registered aes-cfb (131072)
cryptoapi: Registered aes-ctr (262144)
cryptoapi: Registered aes-rtc (524288)
[...]

Expected Results:  
cryptoapi should have initalized first, allowing ipsec to find the ciphers.

Portage 2.0.49-r3 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1, 2.4.20-gentoo-r6)
=================================================================
System uname: 2.4.20-gentoo-r6 i686 Celeron (Coppermine)
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=i686 -O3 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config
/usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config
/usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O2 -mcpu=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="sandbox ccache autoaddcvs"
GENTOO_MIRRORS="ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo ftp://gentoo.noved.org/
ftp://ftp.ussg.iu.edu/pub/linux/gentoo http://gentoo.noved.org/"
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="x86 oss apm avi foomaticdb gif jpeg libg++ mad mikmod mpeg ncurses nls
pdflib png quicktime spell xml2 xmms xv gdbm berkdb slang readline tetex svga
java guile sdl gpm tcpd pam libwww ssl python esd imlib qt motif opengl mozilla
cdr -arts mysql cups tcltk X gtk -gnome alsa kde crypt emacs encode ipv6 mmx
oggvorbis perl truetype zlib apache2 mng"
Comment 1 bdonlan 2003-09-12 19:37:09 UTC
Created attachment 17610 [details]
dmesg output
Comment 2 bdonlan 2003-09-12 19:37:42 UTC
Created attachment 17611 [details]
Kernel configuration
Comment 3 Tim Yamin (RETIRED) gentoo-dev 2004-01-15 13:54:36 UTC
Created attachment 23876 [details, diff]
Patch

Patch attached - can you please confirm that this works and I'll add this to
-r11?
Comment 4 bdonlan 2004-02-04 12:55:47 UTC
Seems to work, thanks
Comment 5 Tim Yamin (RETIRED) gentoo-dev 2004-02-08 08:18:20 UTC
Patch is in gentoo-sources-2.4.20-r11. Thanks!