public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Al Viro <viro@ftp.linux.org.uk>
To: liyu <liyu@ccoss.com.cn>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [WTF?] sys_tas() on m32r
Date: Fri, 23 Dec 2005 07:54:52 +0000	[thread overview]
Message-ID: <20051223075452.GS27946@ftp.linux.org.uk> (raw)
In-Reply-To: <43ABAC48.20004@ccoss.com.cn>

On Fri, Dec 23, 2005 at 03:50:32PM +0800, liyu wrote:
> >in arch/m32r/kernel/sys_m32r.c.  Trivial oops *AND* ability to trigger
> >IO with interrupts disabled.

> The memory that parameter addr pointer is in user-space.
> To access these memory, you should use function like copy_from_user().

... which is deadly with interrupts disabled/under a spinlock.  Exactly.

  reply	other threads:[~2005-12-23  7:54 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-23  6:15 [WTF?] sys_tas() on m32r Al Viro
2005-12-23  7:50 ` liyu
2005-12-23  7:54   ` Al Viro [this message]
2005-12-23 13:55 ` Andrew Morton
2005-12-23 19:10   ` Lee Revell
2005-12-27  6:36     ` Hirokazu Takata
2005-12-27  9:34     ` Jesper Juhl
2005-12-27  5:27   ` Hirokazu Takata
2005-12-27 13:22     ` Andrew Morton
2005-12-28  0:36       ` Hirokazu Takata

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=20051223075452.GS27946@ftp.linux.org.uk \
    --to=viro@ftp.linux.org.uk \
    --cc=linux-kernel@vger.kernel.org \
    --cc=liyu@ccoss.com.cn \
    /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