From: Manfred Spraul <manfred@colorfullife.com>
To: Arnd Bergmann <arnd@bergmann-dalldorf.de>
Cc: linux-kernel@vger.kernel.org
Subject: Re: might_sleep() in copy_{from,to}_user and friends?
Date: Fri, 01 Nov 2002 14:47:00 +0100 [thread overview]
Message-ID: <3DC285D4.2040305@colorfullife.com> (raw)
Arnd wrote:
> I have been looking for more places in 2.5 that can be marked
> might_sleep() and noticed that all the functions in asm/uaccess.h
> are not marked although they sleep if the memory they access
> has to be paged in.
>
Good idea.
There is some abuse of __get_user to identify bad pointers:
show_registers in the oops codepath, mm/slab.c in the /proc/slabinfo code.
Could you omit the test from the __ versions?
--
Manfred
next reply other threads:[~2002-11-01 13:40 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-11-01 13:47 Manfred Spraul [this message]
2002-11-01 16:49 ` might_sleep() in copy_{from,to}_user and friends? Arnd Bergmann
-- strict thread matches above, loose matches on Subject: below --
2002-11-01 12:02 Arnd Bergmann
2002-11-01 10:10 ` Jaroslav Kysela
2002-11-01 10:51 ` Andrew Morton
2002-11-01 14:13 ` Dave Jones
2002-11-01 14:42 ` Arnd Bergmann
2002-11-01 22:34 ` Randy.Dunlap
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3DC285D4.2040305@colorfullife.com \
--to=manfred@colorfullife.com \
--cc=arnd@bergmann-dalldorf.de \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox