Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Reply
 
Thread Tools
Old 03-04-12, 12:44 PM   #1
phil@elrepo
Registered User
 
Join Date: Mar 2010
Location: UK
Posts: 16
Default Legacy 96.43.20 kernel module fails to load on RHEL6 - Module failed ELF checks

Hi,

I package nvidia Linux drivers at elrepo.org for Red Hat Enterprise Linux (and clones).

I would like to report an issue reported by our users here:

http://elrepo.org/bugs/view.php?id=208
https://www.centos.org/modules/newbb...34654&forum=57

The kernel module fails to load on RHEL6 kernels. Affected drivers include 96.43.19 and 96.43.20 legacy drivers.

Quote:
Verify ELF error [sec 33 note 12] (assertion 286)
Module failed ELF checks
ERROR: Installation has failed. Please see the file
'/var/log/nvidia-installer.log' for details. You may find suggestions
on fixing installation problems in the README available on the Linux
A user has identified what appears to be the problem and provided a patch that fixes/works around the issue (please see above bug reports).

Quote:
After a bit of prodding around with Google I discovered that this error is being reported by the module_verify_elf () function in the kernel (see http://rhkernel.org/#RHEL6+2.6.32-71...e-verify-elf.c). The assertion failure is on line 286 in module-verify-elf.c:

notecheck(*q != '\0');

On examination of the .note section in the module (nvidia.ko) it seems that the all the "n_namesz" strings in the notes are '\0' padded and are therefore causing this assertion check to fail; the n_namesz fields in the elf32_note structures have the value 8 but the actual string being referenced is "01.01", which is only 6 characters in length (including trailing \0). This can be observed by dumping the .note section with objdump -j .note -s.

The actual offending file is usr/src/nv/nv-kernel.o (from the original NVIDIA package NVIDIA-Linux-x86-96.43.20-pkg1.run). I wonder, could the problem be fixed by either removing the .note section (using strip -R .note) or by binary editing it ? Alternatively the check being performed by module_verify_elf () could be relaxed (but I do not know what its purpose is so this could be undesirable).
However, the fix involves patching the binary kernel driver object file and as the License terms and conditions explicitly deny permission to modify binary files I refer the matter upstream to yourselves for a fix.

Thanks.

Phil
__________________
http://elrepo.org The Community Enterprise Linux Repository
phil@elrepo is offline   Reply With Quote
Old 03-30-12, 01:07 PM   #2
Rixasha
Registered User
 
Join Date: Oct 2011
Posts: 5
Default Re: Legacy 96.43.20 kernel module fails to load on RHEL6 - Module failed ELF checks

(sent this post to the wrong thread. please delete)
Rixasha is offline   Reply With Quote
Old 05-27-12, 01:13 AM   #3
joerg.sigle
Registered User
 
Join Date: Aug 2006
Posts: 16
Default Re: Legacy 96.43.20 kernel module fails to load on RHEL6 - Module failed ELF checks

I just described how I successfully downgraded my machine to use xserver-xorg 1.10 with ABI 10 in under this thread/title under www.nvnews.net:

"Re: 96.43.20 does still not support new X.Org ABI 11 - How I downgraded my Debian box"

Kind regards, Joerg
joerg.sigle is offline   Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 05:59 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.