Bug 234073 - xorg should not expand legacy mmap area
xorg should not expand legacy mmap area
Product: Fedora
Classification: Fedora
Component: xorg-x11-server (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Adam Jackson
Depends On:
  Show dependency treegraph
Reported: 2007-03-26 17:03 EDT by Bjorn Helgaas
Modified: 2007-11-30 17:12 EST (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-04-10 16:32:02 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
don't expand legacy mmap (expanded range might span incompatible attrs) (1.30 KB, patch)
2007-04-04 12:38 EDT, Bjorn Helgaas
no flags Details | Diff
check for mmap failure (1.29 KB, patch)
2007-04-04 12:39 EDT, Bjorn Helgaas
no flags Details | Diff

  None (edit)
Description Bjorn Helgaas 2007-03-26 17:03:59 EDT
If we're mapping something in the "legacy range" (0-1Mb), we shouldn't
expand the requested range to the entire 0-1Mb range.  Typically this
is for mapping the VGA frame buffer, and some platforms support mmap of
the frame buffer but not the entire 0-1Mb range.

For example, HP sx1000 and sx2000 ia64 platforms can have memory from
0-0x9ffff, VGA frame buffer from 0xa0000-0xbffff, and memory from
0xc0000-0xfffff.  On these platforms, we can't map the entire 0-1Mb
range with the same attribute because the memory only supports WB,
while the frame buffer supports only UC.  But an mmap of just the
frame buffer should work fine.

Please incorporate the xorg patches here:

Comment 1 Bjorn Helgaas 2007-03-26 17:07:44 EDT
This is related to:

The xorg patches are safe even without the kernel patches from 234069.

If the kernel patches in 234069 are applied without the xorg patches,
the X server will start failing because the 0-1MB mmap fails.
Comment 2 Bjorn Helgaas 2007-04-04 12:38:54 EDT
Created attachment 151676 [details]
don't expand legacy mmap (expanded range might span incompatible attrs)

Copying patch here from issue tracker (davej wanted this for the kernel
patches, so I'll do it for the xorg patches as well).
Comment 3 Bjorn Helgaas 2007-04-04 12:39:56 EDT
Created attachment 151677 [details]
check for mmap failure
Comment 4 Adam Jackson 2007-04-09 16:30:54 EDT
Comment on attachment 151676 [details]
don't expand legacy mmap (expanded range might span incompatible attrs)

Already present in 1.3 branch.
Comment 5 Adam Jackson 2007-04-10 16:32:02 EDT
Fixed in, thanks!

Note You need to log in before you can comment on or make changes to this bug.