Did you build with the correct headers for your kernel?  The bit definitions
of these flags changed many times during the 2.4.X series and I know for a
fact you will have a problem similar to the one you mention if you try to
use modules built for a 2.4.2 kernel that use kmalloc with a 2.4.9 kernel.
 - Larry

-----Original Message-----
From: Russell King - ARM Linux
To: Chien-Min Lee
Cc: [EMAIL PROTECTED]
Sent: 1/30/02 9:03 AM
Subject: Re: kmalloc() related question

On Wed, Jan 30, 2002 at 09:56:43PM +0800, Chien-Min Lee wrote:
>   I encounter a weird situation when I am building a module.
>   I use kmalloc(.., GFP_KERNEL) to require memory resource.
>   However, if I try to use 'insmod' to load my module.
>   'insmod' just segmentation fault and get following in 'dmesg'
> 
>  invalid operand: 0000
>  CPU:    0
>  EIP:    0010:[<c012451b>]    Not tainted
>  EFLAGS: 00010206
>  Process insmod (pid: 971, stackpage=c1f07000)
>  Stack: c10f3118 c10f3110 00000202 00000007 c01
>         c10f3110 00000007 c4cdfb80 00000014 c4c
>         00000007 c4cdfb80 0000000f c4cdfa9c c1f
>  Call Trace: [<c01110b4>] [<c012486f>] [<c4cdfb
>              [<c4cdfb80>] [<c4cdfa9c>] [<c4ccf8fc>] [<c4
>  ..........

Please read linux/REPORTING-BUGS and follow the guidelines within that
file.


************************************ 
If this email is not intended for you, or you are not responsible for the
delivery of this message to the addressee, please note that this message may
contain ITT Privileged/Proprietary Information.  In such a case, you may not
copy or deliver this message to anyone.  You should destroy this message and
kindly notify the sender by reply email.  Information contained in this
message that does not relate to the business of ITT is neither endorsed by
nor attributable to ITT. 
************************************ 


_______________________________________________
http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm
Please visit the above address for information on this list.

Reply via email to