All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Stephen C. Tweedie" <sct@redhat.com>
To: PRASENJIT CHAKRABORTY <pras_chakra@yahoo.com>
Cc: linux-mm@kvack.org, arund@bellatlantic.net
Subject: Re: can i call copy_to_user with interrupts masked
Date: Mon, 27 Aug 2001 16:05:32 +0100	[thread overview]
Message-ID: <20010827160532.H5970@redhat.com> (raw)
In-Reply-To: <20010827145640.79597.qmail@web14201.mail.yahoo.com>; from pras_chakra@yahoo.com on Mon, Aug 27, 2001 at 07:56:40AM -0700

Hi,

On Mon, Aug 27, 2001 at 07:56:40AM -0700, PRASENJIT CHAKRABORTY wrote:

>      This is in continuation with my previous mail.
> While debugging I've noticed that __copy_to_user()
> fails when I stop the Bottom Half before the call to
> __copy_to_user(), so if the page in not currently
> mapped then it forbids do_page_fault() to get invoked
> and hence the failure.

You're doing copy_to_user from a bottom half??????  You cannot do
that.  *Ever*.  It's illegal to take page faults from an interrupt of
any sort.

Cheers,
 STephen
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/

  reply	other threads:[~2001-08-27 15:05 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-08-27 14:56 can i call copy_to_user with interrupts masked PRASENJIT CHAKRABORTY
2001-08-27 15:05 ` Stephen C. Tweedie [this message]
  -- strict thread matches above, loose matches on Subject: below --
2001-08-27 15:09 Viju

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=20010827160532.H5970@redhat.com \
    --to=sct@redhat.com \
    --cc=arund@bellatlantic.net \
    --cc=linux-mm@kvack.org \
    --cc=pras_chakra@yahoo.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.