RE: mmap broken?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> There is a libunwind test-case that used to work fine but fails with
> recent kernels (e.g., 2.6.23-rc2).  The problem is exhibited by the
> attached test program.  It attempts to map the page right after the
> register-backing-store area with a no-access page.  The mmap call
> succeeds, but the kernel incorrectly maps the no-access page not at
> the desired location, but at the next page.  If I specify MAP_FIXED,
> the mmap() call succeeds, but I don't think MAP_FIXED should be
> necessary here.  Anybody can think of any patches that would explain
> this change of behavior?

It's perfectly legal for the OS to ignore the address if you don't
specify the MAP_FIXED flag.  The "start" argument to mmap is just a
hint.

Possibly some code is trying to leave a red-zone between mapped
areas?  Or perhaps we just have an off-by-one error when computing
the address.

-Tony
-
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel]     [Sparc Linux]     [DCCP]     [Linux ARM]     [Yosemite News]     [Linux SCSI]     [Linux x86_64]     [Linux for Ham Radio]

  Powered by Linux