RE: help...

Dunlap, Randy (randy.dunlap@intel.com)
Thu, 8 Jul 1999 09:47:50 -0700


I've had this problem with "bad_user_access_length" also.

In my experience it came from not compiling the module with
-O2 so that inline functions are actually placed inline,
so try
gcc -O2 yourmodule.c
and see if that helps.

~Randy

> -----Original Message-----
> From: Elena Lazkano Ortega [mailto:ccplaore@si.ehu.es]
> Sent: Thursday, July 08, 1999 5:52 AM
> To: linux-kernel@vger.rutgers.edu
> Subject: help...
>
>
>
> Hello,
>
> I'm trying to understand how Linux modules work basically reading a
> documentation I got in Internet which has some gradually increasing
> complexity examples. The examples are about how to communicate with a
> character device and they use a function named "put_user" (to put the
> message
> in the kernel address space in the user address space).
> When I try to insert the module using this function I get an
> error message
> like
> "bad_user_access_length" that I believe comes from a file called
> "panic.c".
>
> I know that the function is a macro defined in the file
> "segment.h" but I
> don't know exactly how it works.
> Can somebody help me or give a little explanation or some
> reference books
> that I could use?
>
> Thans in advance!
>
>
> -
> To unsubscribe from this list: send the line "unsubscribe
> linux-kernel" in
> the body of a message to majordomo@vger.rutgers.edu
> Please read the FAQ at http://www.tux.org/lkml/
>

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