copy_from_user problem

Nathan Lynch ntl at pobox.com
Wed Feb 27 02:30:24 EST 2008


Nathan Lynch wrote:
> Maynard Johnson wrote:
> > 
> > static long lib_addr;
> > module_param(lib_addr, long, 0);
>                          ^^^^
> Should be unsigned long?

ulong, rather, but that doesn't fix it.

In any case, lib_addr is a user virtual address; doesn't the kernel
need to do get_user_pages or some such to get at arbitrary process
memory?



More information about the Linuxppc-dev mailing list