All of lore.kernel.org
 help / color / mirror / Atom feed
From: "David S. Miller" <davem@redhat.com>
To: sparclinux@vger.kernel.org
Subject: Re: AIO syscall patch, and problem
Date: Sat, 07 Feb 2004 03:29:14 +0000	[thread overview]
Message-ID: <20040206192914.15bb375b.davem@redhat.com> (raw)
In-Reply-To: <1075876893.5035.60.camel@ori.thedillows.org>

On 04 Feb 2004 02:02:30 -0500
David Dillow <dave@thedillows.org> wrote:

> The attached patch fixes a mis-numbering of the AIO syscalls under sparc
> and sparc64. I would have simply moved them all down, but then
> io_getevents would be at 272, and the big WARNING comment says we cannot
> use numbers larger than 271, so there you are. I used the oldstat
> syscall, since it was commented out.

There must be more to your patch right?  Just changing the numbers
in the unistd.h files does not fix up the syscall table itself too.

I'll look into this and I may fix it differently.

> The problem is __copy_to_user() is being called with a size of 512, but
> is returning 576. size then underflows in the conditional, and
> aio_complete() eventually gets called with this as its return code,
> hence, -EHOSTDOWN.

I'll look into this too, that's a bad bug.

  reply	other threads:[~2004-02-07  3:29 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-02-04  7:02 AIO syscall patch, and problem David Dillow
2004-02-07  3:29 ` David S. Miller [this message]
2004-02-07  3:36 ` David S. Miller
2004-02-07  6:22 ` David Dillow

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=20040206192914.15bb375b.davem@redhat.com \
    --to=davem@redhat.com \
    --cc=sparclinux@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 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.