Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 37438

Summary: XFS Sources 2.4.23: IPv6 / GRSec: Unresolved symbols in ipv6.o
Product: Gentoo Linux Reporter: Sebastian Werner <blackwing>
Component: [OLD] Core systemAssignee: x86-kernel (DEPRECATED) <x86-kernel>
Status: VERIFIED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Sebastian Werner 2004-01-06 17:41:54 UTC
Trying to get xfs-sources 2.4.23 running with both grsecurity and ipv6 failed by loading the ipv6 module causing unresolved symbols although "make dep" and the whole compile process ran properly:

/lib/modules/2.4.23-xfs/kernel/net/ipv6/ipv6.o: unresolved symbol ip_randomid
/lib/modules/2.4.23-xfs/kernel/net/ipv6/ipv6.o: unresolved symbol grsec_enable_randid
/lib/modules/2.4.23-xfs/kernel/net/ipv6/ipv6.o: insmod /lib/modules/2.4.23-xfs/kernel/net/ipv6/ipv6.o failed
/lib/modules/2.4.23-xfs/kernel/net/ipv6/ipv6.o: insmod ipv6 failed

complete .config is at http://blackwing.de/files/2.4.23-xfs-config

Reproducible: Always
Steps to Reproduce:
1. get xfs-sources-2.4.23.ebuild
2. config kernel with CONFIG_IPV6=m and CONFIG_GRKERNSEC_RANDID=y
3. compile and install as suggested.

Actual Results:  
/lib/modules/2.4.23-xfs/kernel/net/ipv6/ipv6.o: unresolved symbol ip_randomid
/lib/modules/2.4.23-xfs/kernel/net/ipv6/ipv6.o: unresolved symbol
grsec_enable_randid
/lib/modules/2.4.23-xfs/kernel/net/ipv6/ipv6.o: insmod
/lib/modules/2.4.23-xfs/kernel/net/ipv6/ipv6.o failed
/lib/modules/2.4.23-xfs/kernel/net/ipv6/ipv6.o: insmod ipv6 failed

Expected Results:  
Working IPv6 with Random tcp ids and all other features of GRSecurity!

Portage 2.0.49-r15 (default-x86-1.4, gcc-3.2.3, glibc-2.2.5-r7,2.3.2-r3, 2.4.23-xfs)
=================================================================
System uname: 2.4.23-xfs i686 AMD Athlon(tm) processor
Gentoo Base System version 1.4.3.10
distcc 2.11.1 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-tbird -fomit-frame-pointer -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 /var/bind /usr/X11R6/lib/X11/xkb
/usr/kde/3.1/share/config /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/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.hawo.stw.uni-erlangen.de/pub/gentoo
ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo http://gentoo.oregonstate.edu
http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="x86 oss apm avi crypt cups encode foomaticdb gif gtk2 jpeg gnome libg++ mad
mikmod mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib
gtkhtml gdbm berkdb slang readline arts tetex aalib bonobo svga tcltk java guile
mysql X sdl gpm tcpd pam libwww ssl perl python esd imlib oggvorbis gtk qt kde
motif opengl mozilla cdr acl apache2 dga ethereal gd imap ipv6 lirc maildir
moznocompose moznoirc moznomail samba socks5 transcode usagi usb v4l xfs"
Comment 1 Sebastian Werner 2004-01-06 18:14:52 UTC
Recompiling several times with different CONFIG's en/disabled showed, that everythings works great, if you just disable CONFIG_GRKERNSEC_RANDID.

seems like the random id patch is broken in ipv6 somehow.
Comment 2 Jason Cox (RETIRED) gentoo-dev 2004-04-08 21:45:37 UTC
Closing. User fixed it himself. Good for him :)
Comment 3 Jason Cox (RETIRED) gentoo-dev 2004-04-08 21:45:56 UTC
Closed. Fixed.