From: Arun Sharma <arun.sharma@intel.com>
To: linux-ia64@vger.kernel.org
Subject: IA-32 support patch: mmap should return ENOMEM
Date: Tue, 24 Jun 2003 22:21:56 +0000 [thread overview]
Message-ID: <marc-linux-ia64-105649349511116@msgid-missing> (raw)
[-- Attachment #1: Type: text/plain, Size: 271 bytes --]
Single Unix Specification says:
[ENOMEM] MAP_FIXED was specified, and the range [addr, addr + len) exceeds that allowed for the address space of a process.
Therefore if addr + len > IA32_PAGE_OFFSET, we should return ENOMEM.
Please apply to both 2.4 and 2.5.
-Arun
[-- Attachment #2: mmap-enomem.24.txt --]
[-- Type: text/plain, Size: 392 bytes --]
--- linux/arch/ia64/ia32/sys_ia32.c- 2003-05-27 18:49:43.000000000 -0700
+++ linux/arch/ia64/ia32/sys_ia32.c 2003-05-28 23:37:02.000000000 -0700
@@ -448,7 +448,12 @@
return addr;
if (len > IA32_PAGE_OFFSET || addr > IA32_PAGE_OFFSET - len)
+ {
+ if (flags & MAP_FIXED)
+ return -ENOMEM;
+ else
return -EINVAL;
+ }
if (OFFSET4K(offset))
return -EINVAL;
next reply other threads:[~2003-06-24 22:21 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-06-24 22:21 Arun Sharma [this message]
2003-06-30 16:30 ` IA-32 support patch: mmap should return ENOMEM Bjorn Helgaas
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-105649349511116@msgid-missing \
--to=arun.sharma@intel.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox