Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 160270 - net-fs/openafs-kernel-1.4.3_pre20061220 fails to locate system call table in kernel 2.6.19-gentoo-r2
Summary: net-fs/openafs-kernel-1.4.3_pre20061220 fails to locate system call table in ...
Status: VERIFIED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: High minor (vote)
Assignee: Stefaan De Roeck (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-05 07:08 UTC by Volkmar Glauche
Modified: 2007-01-10 10:05 UTC (History)
0 users

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


Attachments
strace output (fs.strace.txt,2.92 KB, text/plain)
2007-01-05 07:08 UTC, Volkmar Glauche
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Volkmar Glauche 2007-01-05 07:08:08 UTC
The libafs kernel module loads into kernel 2.6.19-gentoo-r2, but with some warnings:

 # tail -5 /var/log/kern.log 
Jan  5 15:52:56 localhost Warning: failed to find address of system call table
Jan  5 15:52:56 localhost System call hooks will not be installed; proceeding anyway
Jan  5 15:52:56 localhost Warning: failed to find address of 32-bit system call table
Jan  5 15:52:56 localhost System call hooks will not be installed; proceeding anyway

Consequently, the "fs" openafs utility fails when trying to use /proc/fs/openafs/afs_ioctl. See also bugzilla bug #158537



Portage 2.1.2_rc4-r5 (default-linux/amd64/2006.1, gcc-4.1.1, glibc-2.5-r0, 2.6.19-gentoo-r2 x86_64)
=================================================================
System uname: 2.6.19-gentoo-r2 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 3800+
Gentoo Base System version 1.12.8
Last Sync: Thu, 04 Jan 2007 01:47:01 +0000
dev-java/java-config: 1.3.7, 2.0.31
dev-lang/python:     2.4.4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.19
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=athlon64 -I/usr/include/openssl"
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/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf
/web2c"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distcc distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.rz.ruhr-uni-bochum.de/gentoo-mirror/ ftp://distfiles.gentoo.org ftp://ftp.ibiblio.org/pub/Linux/dist
ributions/gentoo"
LINGUAS="en de it fr"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after -
-stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X Xaw3d a52 aac aalib acl acpi adns alsa amd64 ao arts audiofile bash-completion bcmath berkdb bindist bitmap-fonts blas 
bonobo bzip2 cairo calendar caps cdparanoia cdr clamav cli cracklib crypt cscope ctype cups curl curlwrappers dba dbase dbm db
us dga dio dlloader doc dri dts dv dvb dvd dvdr dvdread eds emacs emacs-w3 emboss encode esd evo exif expat fam fbcon ffmpeg f
ftw firebird firefox flac flash flatfile fltk fortran ftp gb gcj gd gdbm geoip ggi gif ginac glut gmp gnome gnustep gnutls gph
oto2 gpm graphviz gstreamer gtk gtk2 gtkhtml guile hal hardened hardenedphp howl iconv idn ieee1394 imagemagick imap imlib ini
file ipod ipv6 isdnlog java javascript jbig jikes jpeg jpeg2k kde kerberos ladcca ladspa lapack lash lcms ldap leim libcaca li
bedit libg++ libgda libnotify libsamplerate libwww lirc lm_sensors lua m17n-lib mad maildir mailwrapper matroska mbox mcal mem
limit mhash migemo mikmod mime ming mmap mng mnogosearch mono motif mozilla mp3 mpeg mplayer msession mule musepack nas ncurse
s neXt netboot netcdf nls nntp nptl nptlonly nsplugin offensive ogg openal openexr opengl pam pcntl pcre pda pdf perl php plot
utils png portaudio posix ppds pppd prelude profile python qt3 qt4 quicktime rdesktop readline recode reflection ruby sasl sca
nner sdl session sharedext sharedmem shorten simplexml skey slang slp smartcard sndfile soap sockets sox speex spell spl sqlit
e sqlite3 ssl startup-notification svg symlink sysvipc szip tcl tcltk tcpd tetex theora threads tidy tiff tk tokenizer truetyp
e truetype-fonts type1-fonts udev unicode usb vcd verbose vim-syntax vorbis wmf wxwindows xine xinetd xml xmlrpc xorg xpm xpri
nt xsl xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es196
8 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asy
m copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route s
hare shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LINGUAS="en de it fr" USERLAND="GNU" VIDEO
_CARDS="dummy fbdev nv vesa vga vmware"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Volkmar Glauche 2007-01-05 07:08:57 UTC
Created attachment 105533 [details]
strace output
Comment 2 Volkmar Glauche 2007-01-08 13:48:07 UTC
OK - this was due to some changes in my kernel config where I somehow lost the AFS config line

CONFIG_AFS_FS=m

If this is unset, then the kernel symbol table is not accessible to the libafs.ko module. Perhaps this could be checked in the openafs-kernel ebuild?
Comment 3 Stefaan De Roeck (RETIRED) gentoo-dev 2007-01-10 07:10:34 UTC
I have tried both 2.6.19-gentoo-r3 and -r2 without the CONFIG_AFS_FS option (I've never had it enabled, because it only activates the very limited in-kernel afs-client).  In both cases, I got the following kernel log:
Found system call table at 0xffffffff805822e0 (pattern scan)
Found 32-bit system call table at 0xffffffff80583130 (pattern scan)
Starting AFS cache scan...found 6182 non-empty cache files (12%).

Are you sure this is the only thing that changed between the error and a working configuration afterwards?  
Could you attach your kernel configuration?

For completeness, I must note that I tested on an otherwise stable amd64 tree (i.e. glibc 2.4-r2, portage-2.1.1-r2, etc.), though I don't think it should really matter.  
Comment 4 Volkmar Glauche 2007-01-10 09:01:16 UTC
Sorry, but I can't reproduce this for now :-( I am pretty sure I did not change anything else during the last trial, but perhaps I was still booting an older kernel. The other options I changed between a definitely non-working kernel and my current config were (all were turned off, now turned on)
CONFIG_KALLSYMS
CONFIG_AUDIT
CONFIG_AUDITSYSCALL
Once I get around to reboot again, I will try a kernel with these options switched off.
Comment 5 Stefaan De Roeck (RETIRED) gentoo-dev 2007-01-10 09:57:19 UTC
I took my kernel config, disabled CONFIG_KALLSYMS, didn't have CONFIG_AUDIT or CONFIG_AUDITSYSCALL, and the system call table is still found.  Could it be you did an etc-update in the meanwhile, and replaced the /etc/init.d/openafs-client file only just now with its newer version?
Comment 6 Volkmar Glauche 2007-01-10 10:05:49 UTC
No, I did the etc-update right after emerging net-fs/openafs-kernel-1.4.3_pre20061220. I am closing this bug for now until I find some new evidence.