[OpenAFS] OpenAFS kernel module Linux/s390

Smith, Matt matt.smith@uconn.edu
Fri, 2 Nov 2007 15:56:18 -0400


--=-7KTE5EPK4Ed7ET6d6e4r
Content-Type: multipart/mixed; boundary="=-D51MntE50K7mAWPJyIH5"


--=-D51MntE50K7mAWPJyIH5
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

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=3D/usr/src/linux-headers-2.6.22-2-s390x

#> make only_libafs

#> make install_only_libafs=20

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=20

#>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:
>=20
>=20
> On 10/31/07, Smith, Matt <matt.smith@uconn.edu> 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.
>        =20
>           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 .=20
>        =20
>           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".
>=20
> that should have been fixed in 1.4.4; it hints that configure isn't
> working right detecting features in your kernel.
>=20
>  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.
>=20
--=20
Matt Smith
matt.smith@uconn.edu
University Information Technology Services (UITS)
University of Connecticut
PGP Key ID: 0xE9C5244E

--=-D51MntE50K7mAWPJyIH5
Content-Disposition: attachment; filename=snip_kern.log
Content-Type: text/x-log; name=snip_kern.log; charset=utf-8
Content-Transfer-Encoding: base64

Tm92ICAyIDE1OjMzOjA0IGxueHp2bTgyIGtlcm5lbDogbGliYWZzOiBtb2R1bGUgbGljZW5zZSAn
aHR0cDovL3d3dy5vcGVuYWZzLm9yZy9kbC9saWNlbnNlMTAuaHRtbCcgdGFpbnRzIGtlcm5lbC4N
Ck5vdiAgMiAxNTozMzowNCBsbnh6dm04MiBrZXJuZWw6IEZvdW5kIHN5c3RlbSBjYWxsIHRhYmxl
IGF0IDB4MjUzNzkwIChwYXR0ZXJuIHNjYW4pDQpOb3YgIDIgMTU6MzM6MDQgbG54enZtODIga2Vy
bmVsOiBVbmFibGUgdG8gaGFuZGxlIGtlcm5lbCBwb2ludGVyIGRlcmVmZXJlbmNlIGF0IHZpcnR1
YWwga2VybmVsIGFkZHJlc3MgMDAwMDAwMDAwMDI1MzAwMA0KTm92ICAyIDE1OjMzOjA0IGxueHp2
bTgyIGtlcm5lbDogT29wczogMDAwNCBbIzFdDQpOb3YgIDIgMTU6MzM6MDQgbG54enZtODIga2Vy
bmVsOiBNb2R1bGVzIGxpbmtlZCBpbjogbGliYWZzKFApIGxvb3AgcWV0aCBjY3dncm91cCBkbV9t
aXJyb3IgZG1fc25hcHNob3QgZG1fbW9kIGRhc2RfZmJhX21vZCBkYXNkX2Vja2RfbW9kIGRhc2Rf
bW9kDQpOb3YgIDIgMTU6MzM6MDQgbG54enZtODIga2VybmVsOiBDUFU6ICAgIDAgICAgVGFpbnRl
ZDogUCAgIC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0IGxueHp2bTgyIGtlcm5lbDogKFs8MDAwMDAwMDAyMWZiYmZlOD5dIG9zaV9z
eXNjYWxsX2luaXQrMHgzMC8weDE5NCBbbGliYWZzXSkNCk5vdiAgMiAxNTozMzowNCBsbnh6dm04
MiBrZXJuZWw6ICBbPDAwMDAwMDAwMjA4MTMwMzI+XSBpbml0X21vZHVsZSsweDMyLzB4MTEwIFts
aWJhZnNdDQpOb3YgIDIgMTU6MzM6MDQgbG54enZtODIga2VybmVsOiAgWzwwMDAwMDAwMDAwMDYw
YjgwPl0gc3lzX2luaXRfbW9kdWxlKzB4MTk4NC8weDFhZTQNCk5vdiAgMiAxNTozMzowNCBsbnh6
dm04MiBrZXJuZWw6ICBbPDAwMDAwMDAwMDAwMjE3NzA+XSBzeXNjX25vZW11KzB4MTAvMHgxNg0K
Tm92ICAyIDE1OjMzOjA0IGxueHp2bTgyIGtlcm5lbDogIFs8MDAwMDAwMDA3N2Y2NTFlZT5dIDB4
NzdmNjUxZWUNCg0K


--=-D51MntE50K7mAWPJyIH5--

--=-7KTE5EPK4Ed7ET6d6e4r
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQBHK4DiGP63pOnFJE4RAsLxAKCthNO2z4UWlMBnl9Yg0xim5EPemwCePWwv
dP7ETOLzz2NnPr5XwjTzHSA=
=Zqz1
-----END PGP SIGNATURE-----

--=-7KTE5EPK4Ed7ET6d6e4r--