* IA-32 support patch: mmap should return ENOMEM
@ 2003-06-24 22:21 Arun Sharma
2003-06-30 16:30 ` Bjorn Helgaas
0 siblings, 1 reply; 2+ messages in thread
From: Arun Sharma @ 2003-06-24 22:21 UTC (permalink / raw)
To: linux-ia64
[-- 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;
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-06-30 16:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-06-24 22:21 IA-32 support patch: mmap should return ENOMEM Arun Sharma
2003-06-30 16:30 ` Bjorn Helgaas
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox