lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:	Wed, 21 Jan 2009 21:12:49 +0000 (GMT)
From:	Hugh Dickins <hugh@...itas.com>
To:	Ben Herrenschmidt <benh@...nel.crashing.org>
cc:	Jesse Barnes <jbarnes@...tuousgeek.org>,
	"Rafael J. Wysocki" <rjw@...l.pl>, linuxppc-dev@...abs.org,
	linux-kernel@...r.kernel.org
Subject: 2.6.29-rc powerpc G5 Xorg legacy_mem regression

I've a PowerMac G5 here on which the openSUSE 11.1 Xorg dislikes your
d3a54014e2a94bd37b7dee5e76e03f7bc4fab49a PCI: Add legacy_io/mem to all busses

startx fails with xf86MapDomainMem(): mmap() failure,
the relevant lines from an strace being:
open("/sys/class/pci_bus/0000:0a/legacy_mem", O_RDWR) = 6
mmap(NULL, 65536, PROT_READ|PROT_WRITE, MAP_SHARED, 6, 0xa0000) =
     -1 ENXIO (No such device or address)
Whereas if I back out your pci_create_legacy_files(),
it'll happily mmap /dev/mem instead and work with that.

The ENXIO comes from arch/powerpc/kernel/pci-common.c:
pci_mmap_legacy_page_range() finds hose->isa_mem_size 0.

That's as far as I took it: I can see there's code to set up
"Legacy VGA memory" but it looks like that's not coming into play.
dmesg and .config attached: I think you'll get to the point much
quicker than I would.

Though I bet you're busy at the moment: no hurry, I can comment
out the pci_create_legacy_files() from drivers/pci/bus.c for now.

Hugh
View attachment "dmesg.thorn" of type "TEXT/PLAIN" (31231 bytes)

View attachment "config.thorn" of type "TEXT/PLAIN" (41016 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ