[OpenAFS-devel] module load failed on fedora core 4

Alexander Bergolth leo@strike.wu-wien.ac.at
Tue, 30 Aug 2005 12:24:29 +0200


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 08/26/2005 04:51 PM, Roland Friedwagner (by way of Roland Friedwagner
<roland.friedwagner@wu-wien.ac.at>) wrote:
> has someone tested the openafs-1.4.0rc1 on an Fedora Core 4:
> downloaded
>  http://www-personal.engin.umich.edu/~wingc/openafs/dist/1.4.0-rc1/SRPMS/open
> afs-1.4.0rc1-rhel4.0.src.rpm
> 
> with some (minor) changes for fedora ...
> [...]
> got this ...
> 
> # service afs start
> insmod: error inserting
>  '/usr/vice/etc/modload/libafs-2.6.12-1.1398_FC4smp-i686.ko': -1 Accessing a
>  corrupted shared library Failed to load AFS client, not starting AFS
>  services.
> 
> console log shows up:
> Verify ELF error (assertion 110)
> Module failed ELF checks

OK, we've finally solved the problem:
It was a bug in Redhat's module-verification-patch, which has been fixed
in kernel-2.6.12-1.1398_FC4 (and 2.6.12-1.1376_FC3):

- ---------- snipp! ----------
* Mon Aug 15 2005 Dave Jones <davej@redhat.com>
- - 2.6.11.5
- - Fix module_verify_elf check that rejected valid .ko files. (#165528)
- ---------- snipp! ----------

# diff
2.6.12-1.1398_FC4/BUILD/kernel-2.6.12/linux-2.6.12/kernel/module-verify.c
2.6.12-1.1447_FC4/BUILD/kernel-2.6.12/linux-2.6.12/kernel/module-verify.c
110,110c110
<       elfcheck(tmp < size - hdr->e_shoff);
- ---
>       elfcheck(tmp <= size - hdr->e_shoff);

With the new kernel openafs compiles and works like a charm.

Cheers,
- --leo
- --
- -----------------------------------------------------------------------
Alexander.Bergolth@wu-wien.ac.at                Fax: +43-1-31336-906050
Zentrum fuer Informatikdienste - Wirtschaftsuniversitaet Wien - Austria

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFDFDPcsYaksEkoAQMRAicsAJ9NIZsi1SguGitFRBbeCkKFtPRMkQCcCucF
Ub4YVZBBsLNzvCzhyFlPugk=
=P35s
-----END PGP SIGNATURE-----