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
| ||
|
Date: Tue, 30 Sep 2008 17:57:35 +0200 From: Rene Herman <rene.herman@...access.nl> To: Linus Torvalds <torvalds@...ux-foundation.org> CC: Bjorn Helgaas <bjorn.helgaas@...com>, Jesse Barnes <jbarnes@...tuousgeek.org>, Len Brown <lenb@...nel.org>, Frans Pop <elendil@...net.nl>, "Rafael J. Wysocki" <rjw@...k.pl>, linux-kernel@...r.kernel.org, linux-pci@...r.kernel.org, linux-acpi@...r.kernel.org, Adam Belay <abelay@....edu>, Avuton Olrich <avuton@...il.com>, Karl Bellve <karl.bellve@...ssmed.edu>, Willem Riede <wriede@...de.org>, Matthew Hall <mhall@...omputing.net> Subject: Re: [patch 2/2] PNP: don't check disabled PCI BARs for conflicts in quirk_system_pci_resources() On 30-09-08 16:48, Linus Torvalds wrote: > I think you got the logic the wrong way around: > > + /* have we been registered already? */ > + if (pci_res->parent) > + continue; > > This ignores resources that are _registered_, but it should be the other > way around - we should ignore resources that aren't (because they may be > invalid or they may move around) Arr. Yes, ofcourse. Okay... that ain't working: > Of course, it may be that the PnP code runs too early, and we have > only parsed the PCI resources, not inserted them into the resource > tree yet. If so, none of this will work, of course. It doesn't. With the test negated it triggers for all PCI resources (and ofcourse my soundcard driver fails again). If the simple res->start == 0/SOME_ARCH_DEFINE definitely won't do and the issue with Bjorn's approach is the bus hammering the solution might be to set a per resource flag in pci_dev at parse time? (that's PCI though and I can't really be here at the moment so over to someone else). Rene. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@...r.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists