Re: copy_from_user / copy_to_user with no swap space
From: Oliver Neukum
Date: Mon Oct 16 2006 - 15:28:10 EST
Am Montag, 16. Oktober 2006 21:19 schrieb mfbaustx:
> So, IF you MUST copy_from/to_user when in the context of the process, AND
> IF you have no virtual memory/swapping, THEN must it not be true that you
> can ALWAYS dereferences your user space pointers?
No. Your code may be only partially paged into RAM.
The same can happen for any mmaped data.
Regards
Oliver
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/