public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* atomic copy_from_user?
@ 2003-12-22  0:48 Albert Cahalan
  2003-12-22  4:31 ` Linus Torvalds
  2003-12-22 15:00 ` William Lee Irwin III
  0 siblings, 2 replies; 17+ messages in thread
From: Albert Cahalan @ 2003-12-22  0:48 UTC (permalink / raw)
  To: linux-kernel mailing list

Surely I'm not the only one wanting such a beast...?

>From some naughty place in the code where might_sleep
would trigger, I'd like to read from user memory.
I'll pretty much assume that mlockall() has been
called. Suppose that "current" is correct as well.
I'd just use a pointer directly, except that:

a. it isn't OK for the 4g/4g feature, s390, or sparc64
b. it causes the "sparse" type checker to complain
c. it will oops or worse if the user screwed up

If the page is swapped out, I want a failed copy.



^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2003-12-22 22:59 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-12-22  0:48 atomic copy_from_user? Albert Cahalan
2003-12-22  4:31 ` Linus Torvalds
2003-12-22  9:36   ` Andrew Morton
2003-12-22 15:00 ` William Lee Irwin III
2003-12-22 18:26   ` Joe Korty
2003-12-22 20:55     ` Rob Love
2003-12-22 21:22       ` Joe Korty
2003-12-22 21:40         ` Rob Love
2003-12-22 21:59           ` Joe Korty
2003-12-22 22:14             ` Rob Love
2003-12-22 22:24             ` Andrew Morton
2003-12-22 22:06       ` Joe Korty
2003-12-22 22:18         ` Rob Love
2003-12-22 22:14       ` Andrew Morton
2003-12-22 22:19         ` Rob Love
2003-12-22 22:35           ` Joe Korty
2003-12-22 22:59             ` Rob Love

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox