lkml.org 
[lkml]   [2005]   [Apr]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: insmod segfault in pci_find_subsys()
Greg KH wrote:

>On Tue, Mar 29, 2005 at 04:15:37PM +0200, Toralf Lund wrote:
>
>
>>Greg KH wrote:
>>
>>
>>
>>>On Fri, Mar 18, 2005 at 10:12:05AM +0100, Toralf Lund wrote:
>>>
>>>
>>>
>>>
>>>>Am I seeing an issue with the PCI functions here, or is it just that I
>>>>fail to spot an obvious mistake in the module itself?
>>>>
>>>>
>>>>
>>>>
>>>I think it's a problem in your code. I built and ran the following
>>>example module just fine (based on your example, which wasn't the
>>>smallest or cleanest...), with no oops. Does this code work for you?
>>>
>>>
>>>
>>>
>>OK, I've finally been able to test this, and no, it does not work.
>>insmod segfaults and the system log says
>>
>>kernel: Unable to handle kernel paging request at virtual address 533e3762
>>
>>
>
>Then I think you have a broken build system or makefile or gcc. It
>works fine here.
>
>
Yes. You are right. I actually mentioned this on a different thread: I
eventually found out that the kernel was compiled with -mregparam=3, and
the module was not. This option seems to have been added to the default
config and/or Red Hat's build setup sometime before the current kernel
release, but after the start of the 2.6 series...

- Toralf

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-04-13 13:04    [W:0.041 / U:0.016 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site