All- I have successfully compiled the OpenAFS module 1.4.5 (final) for Linux s390x, against the Debian Etch (backports) kernel headers package "linux-headers-2.6.22-2-s390x". However, an insmod of the module causes a segmentation fault.
uname -a: Linux lnxzvm82 2.6.22-2-s390x #1 SMP Fri Aug 31 00:23:26 UTC 2007 s390x GNU/Linux To compile, I am using the following: #> ./configure --enable-debug-kernel --with-linux-kernel-headers=/usr/src/linux-headers-2.6.22-2-s390x #> make only_libafs #> make install_only_libafs Then, I issue the insmod: #> insmod /usr/local/lib/openafs/libafs-2.6.22-2-s390x.mp.ko This generates a segfault. Attached (snip_kern.log) is the relevant snippet from syslog. And, at this point, lsmod shows the module is loaded, and I cannot rmmod it. A full reboot is needed. #> lsmod | grep libafs libafs 5430876 1 #>rmmod -f libafs ERROR: Removing 'libafs': Device or resource busy Any suggestions? Is there better debugging info I can supply? Thank you all, -Matt On Wed, 2007-10-31 at 14:07 -0400, Derrick Brashear wrote: > > > On 10/31/07, Smith, Matt <[EMAIL PROTECTED]> wrote: > All- > Can anyone recommend an OpenAFS module version and Linux > kernel > version that are known to work on Linux/s390x? I am using > Debian Etch > on s390x, and have tried both the 2.6.18 and 2.6.22 (from > etch-backports) kernels, with the OpenAFS module 1.4.2-6 > package and > 1.4.5pre2 from source, with no success. > > To avoid excessive debugging info until requested, I'll > simply state > that the above combos fail with references to conflicting > types for > 'lockIdcmp2', 'HandleFlock' and 'lockIdSet', within > afs_vnop_flock.c . > > If it is useful, I can send whatever output is requested. I > just > didn't want to flood the list if it is known that it "just > won't work". > > that should have been fixed in 1.4.4; it hints that configure isn't > working right detecting features in your kernel. > > you might put config.log somewhere, as well as the log messages. you > don't have to mail it. AFS or on the web is fine. > -- Matt Smith [EMAIL PROTECTED] University Information Technology Services (UITS) University of Connecticut PGP Key ID: 0xE9C5244E
Nov 2 15:33:04 lnxzvm82 kernel: libafs: module license 'http://www.openafs.org/dl/license10.html' taints kernel. Nov 2 15:33:04 lnxzvm82 kernel: Found system call table at 0x253790 (pattern scan) Nov 2 15:33:04 lnxzvm82 kernel: Unable to handle kernel pointer dereference at virtual kernel address 0000000000253000 Nov 2 15:33:04 lnxzvm82 kernel: Oops: 0004 [#1] Nov 2 15:33:04 lnxzvm82 kernel: Modules linked in: libafs(P) loop qeth ccwgroup dm_mirror dm_snapshot dm_mod dasd_fba_mod dasd_eckd_mod dasd_mod Nov 2 15:33:04 lnxzvm82 kernel: CPU: 0 Tainted: P Nov 2 15:33:04 lnxzvm82 kernel: Process insmod (pid: 18420, task: 000000001794e348, ksp: 000000000b587a10) Nov 2 15:33:04 lnxzvm82 kernel: Krnl PSW : 0704100180000000 0000000021fbc12e (osi_syscall_init+0x176/0x194 [libafs]) Nov 2 15:33:04 lnxzvm82 kernel: R:0 T:1 IO:1 EX:1 Key:0 M:1 W:0 P:0 AS:0 CC:1 PM:0 EA:3 Nov 2 15:33:04 lnxzvm82 kernel: Krnl GPRS: 0000000000000fd9 00000000224867e0 0000000000253790 0000000021fc5adc Nov 2 15:33:04 lnxzvm82 kernel: 0000000021fbbfe8 0000000000000000 0000000000000032 00000000210be188 Nov 2 15:33:04 lnxzvm82 kernel: 0000000000000000 000000000a43f648 000000000a43f000 00000000224867f8 Nov 2 15:33:04 lnxzvm82 kernel: 0000000021f59000 0000000021fd1f40 0000000021fbbfe8 000000000b587be0 Nov 2 15:33:04 lnxzvm82 kernel: Krnl Code: 0000000021fbc120: e32010000004^Ilg^I%%r2,0(%%r1) Nov 2 15:33:04 lnxzvm82 kernel: 0000000021fbc126: 50302338^I^Ist^I%%r3,824(%%r2) Nov 2 15:33:04 lnxzvm82 kernel: 0000000021fbc12a: a7f4ff97^I^Ibrc^I15,121fbc058 Nov 2 15:33:04 lnxzvm82 kernel: >0000000021fbc12e: 50302224^I^Ist^I%%r3,548(%%r2) Nov 2 15:33:04 lnxzvm82 kernel: 0000000021fbc132: a7f4ffba^I^Ibrc^I15,121fbc0a6 Nov 2 15:33:04 lnxzvm82 kernel: 0000000021fbc136: c0200000d683^Ilarl^I%%r2,21fd6e3c Nov 2 15:33:04 lnxzvm82 kernel: 0000000021fbc13c: c0e5fffcedc6^Ibrasl^I%%r14,121f59cc8 Nov 2 15:33:04 lnxzvm82 kernel: 0000000021fbc142: a748fff0^I^Ilhi^I%%r4,-16 Nov 2 15:33:04 lnxzvm82 kernel: Call Trace: Nov 2 15:33:04 lnxzvm82 kernel: ([<0000000021fbbfe8>] osi_syscall_init+0x30/0x194 [libafs]) Nov 2 15:33:04 lnxzvm82 kernel: [<0000000020813032>] init_module+0x32/0x110 [libafs] Nov 2 15:33:04 lnxzvm82 kernel: [<0000000000060b80>] sys_init_module+0x1984/0x1ae4 Nov 2 15:33:04 lnxzvm82 kernel: [<0000000000021770>] sysc_noemu+0x10/0x16 Nov 2 15:33:04 lnxzvm82 kernel: [<0000000077f651ee>] 0x77f651ee
signature.asc
Description: This is a digitally signed message part