From: Matthew Wilcox <willy@debian.org>
To: linux-ia64@vger.kernel.org
Subject: Re: [Linux-ia64] mremap and "negative" addresses
Date: Fri, 01 Nov 2002 12:21:28 +0000 [thread overview]
Message-ID: <marc-linux-ia64-105590709805323@msgid-missing> (raw)
In-Reply-To: <marc-linux-ia64-105590709805322@msgid-missing>
On Fri, Nov 01, 2002 at 07:08:10PM +1100, Matt Chapman wrote:
> mremap, like mmap, can return addresses in region 4 which
> are "negative" (when interpreted as signed values) and thus
> interpreted as syscall failure. The following patch
> implements the same workaround as for mmap and other such
> syscalls.
hmm.. x86 handles this kind of thing by comparing against (unsigned
long)-125 instead. any reason we can't do the same?
i also notice that sys_fcntl has no workaround:
case F_GETOWN:
/*
* XXX If f_owner is a process group, the
* negative return value will get converted
* into an error. Oops. If we keep the
* current syscall conventions, the only way
* to fix this will be in libc.
*/
err = filp->f_owner.pid;
break;
or is the workaround for this in libc?
--
Revolutions do not require corporate support.
next prev parent reply other threads:[~2002-11-01 12:21 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-11-01 8:08 [Linux-ia64] mremap and "negative" addresses Matt Chapman
2002-11-01 12:21 ` Matthew Wilcox [this message]
2002-11-01 12:58 ` David Mosberger
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=marc-linux-ia64-105590709805323@msgid-missing \
--to=willy@debian.org \
--cc=linux-ia64@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.