Thread (2 messages) 2 messages, 2 authors, 2006-04-27

Re: do_mmap_pgoff issue...

From: Paul Mackerras <hidden>
Date: 2006-04-27 22:47:09

Gerhard Jaeger writes:
The facts:
- mmap the last page @ 0xFFFFF000, len 4K
- result: mmap says EOVERFLOW...
- the function that failed was do_mmap_pgoff()

Here's the pice of code

/* offset overflow? */
if ((pgoff + (len >> PAGE_SHIFT)) < pgoff)
    return -EOVERFLOW;

It's quite clear why it fails in my case:
pgoff + (len >> PAGE_SHIFT) will be 0
No, pgoff will be 0xfffff, len will be 1, the sum is 0x100000.  You
need to look elsewhere for the problem.

Paul.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help