[OpenAFS] OpenAFS with gentoo and 2.6.19/20

Gert Burger gburger@cs.up.ac.za
Tue, 13 Mar 2007 10:59:41 +0200


I would like to know if anyone has actually gotten that combination to 
work? I have tried the tasklist patches etc but to no avail.

Another thing is, which might be related, is that aklog fails like so:

nix g # aklog -d
Authenticating to cell cs.up.ac.za (server apiary.cs.up.ac.za).
We've deduced that we need to authenticate to realm CS.UP.AC.ZA.
Getting tickets: afs/cs.up.ac.za@CS.UP.AC.ZA
Principal not found, trying alternate service name: afs@CS.UP.AC.ZA
Using Kerberos V5 ticket natively
About to resolve name admin.admin to id in cell cs.up.ac.za.
Id 32766
Set username to admin.admin
Setting tokens. admin.admin /  @ CS.UP.AC.ZA
aklog: unable to obtain tokens for cell cs.up.ac.za (status: 11862788).

a strace of that gives:
open("/proc/fs/openafs/afs_ioctl", O_RDWR) = 4
ioctl(4, CAPI_REGISTER or SNDCTL_COPR_LOAD, 0xbff7b1e4) = -1 EIO 
(Input/output error)

This is when libafs is loaded successfully(On a 2.6.19 machine), but a 
cat /proc/fs/openafs/CellServDB on that same machine yields a seg fault 
with this in dmesg:

BUG: unable to handle kernel NULL pointer dereference at virtual address 
 printing eip:
*pde = 00000000
Oops: 0000 [#2]
Modules linked in: libafs(P) afspag(P) e1000
CPU:    0
EIP:    0060:[<f8e8c436>]    Tainted: P      VLI
EFLAGS: 00010246   (2.6.19-gentoo-r5 #3)
EIP is at c_start+0x46/0xa0 [libafs]
eax: 00000000   ebx: 00000000   ecx: 00000000   edx: d2109f64
esi: 00000001   edi: 00000000   ebp: 00000400   esp: d2109f2c
ds: 007b   es: 007b   ss: 0068
Process cat (pid: 24203, ti=d2108000 task=c215d550 task.ti=d2108000)
Stack: cc241c14 d2109f64 f5f1eea0 00000000 00000400 c0179365 00000400 
       f7e252c0 f5f1eec0 00000000 00000002 cc241c1c cc241c14 00000000 
       f7e252c0 0804e000 d2109fa4 00000400 c015f871 d2109fa4 d2109fbc 
Call Trace:
 [<c0179365>] seq_read+0xd5/0x2b0
 [<c015f871>] vfs_read+0xa1/0x160
 [<c0179290>] seq_read+0x0/0x2b0
 [<c015fde1>] sys_read+0x41/0x70
 [<c0102fb1>] sysenter_past_esp+0x56/0x79
 [<c032007b>] svc_pool_map_alloc_arrays+0x8b/0xb0
Code: a3 62 6a eb f8 89 e0 25 00 e0 ff ff 8b 00 a3 70 6a eb f8 a1 7c 6a 
eb f8 3d 7c 6a eb f8 74 41 8b 0b 31 ff be 01 00 00 00 8b 5b 04 <8b> 28 
89 da 09 ca 75 0b eb 25 8b 2c 24 83 c6 01 83 d7 00 81 fd
EIP: [<f8e8c436>] c_start+0x46/0xa0 [libafs] SS:ESP 0068:d2109f2c

Any ideas?

Gert Burger
Computer Science Department
University of Pretoria